Differential Equations & deSolve on a TI-89
The TI-89 solves many first- and second-order ordinary differential equations symbolically with deSolve(. It can also graph solutions numerically using Euler's method or Runge-Kutta.
deSolve(equation [and initial conditions], independent variable, dependent variable)
deSolve( is in F3 (Calc).
These steps are for the TI-89 / TI-89 Titanium handheld, from Texas Instruments' guidebook. Our online TI-89 calculator runs PedroM, a free third-party operating system and doesn't support every handheld feature. Handheld only — not available in the online edition:
d(,∫(andlimit(come back unevaluated.
Typing derivatives: the prime symbol
Write y' as y' and y'' as y''. The prime symbol ′ is a second function on the TI-89 keyboard (2ND =). Don't use d(y,x) inside deSolve.
First-order equations
| Problem | Entry | Result |
|---|---|---|
| y' = 2y | deSolve(y'=2y,x,y) |
y=@1·e^(2·x) |
| y' = xy | deSolve(y'=x*y,x,y) |
y=@1·e^(x²/2) |
| y' = 2y, y(0)=3 | deSolve(y'=2y and y(0)=3,x,y) |
y=3·e^(2·x) |
@1 is an arbitrary constant (your textbook's C). Later constants appear as @2, @3 and so on.
Join the equation and the initial condition with and (in 2ND 5 (MATH) → Test, or typed letter by letter).
Second-order equations
| Problem | Entry | Result |
|---|---|---|
| y''+y=0 | deSolve(y''+y=0,x,y) |
y=@1·cos(x)+@2·sin(x) |
| y''+y=0, y(0)=0, y'(0)=1 | deSolve(y''+y=0 and y(0)=0 and y'(0)=1,x,y) |
y=sin(x) |
For a second-order equation, give two conditions, often a value and a slope, or two boundary values.
When the answer is implicit
Some equations can't be solved for y explicitly. The TI-89 then returns an equation relating x and y. Texas Instruments' reference shows this example:
deSolve(y''=y^(-1/2) and y(0)=0 and y'(0)=0,t,y)
→ 2·y^(3/4)/3=t
If you need y on its own, try solve( on the result.
Check a solution
Substitute it back. For y=3e2x:
d(3e^(2x),x)-2*3e^(2x) → 0
Graph a numerical solution (Euler / Runge-Kutta)
When there's no symbolic solution, or you want to see it:
- MODE → Graph → DIFF EQUATIONS.
- ♦ F1: enter
y1'=y1(the variables are t and y1) and the initial value yi1 = 1. - In the Y= editor's Format dialog, set Solution Method to RK (Runge-Kutta, more accurate) or EULER, and Fields to SLPFLD to draw a slope field.
- ♦ F2: set t0 = 0, tmax = 1, tstep = 0.1, and the x and y ranges.
- ♦ F3.
With Euler's method and a step of 0.1, y'=y, y(0)=1 gives y(1) ≈ 1.110 ≈ 2.5937, while the exact value is e ≈ 2.71828. A smaller step, or RK, gets closer. See slope fields.
Common problems
| Problem | Fix |
|---|---|
Result is false or deSolve returns itself |
the equation is outside the types deSolve can solve. Graph it numerically instead |
| Too few arguments | include both variables: deSolve(…, x, y) |
| Wrong variable in the answer | the order is independent variable first, then dependent |
| x or y already has a value | 2ND F1 (Clean Up) → Clear a–z |
| Initial condition ignored | join conditions with and, not a comma |
Related tutorials
Review note: the handheld keystrokes on this page come from Texas Instruments' TI-89 Titanium guidebook and knowledge base. They have not yet been checked on a physical calculator.