Slope & Direction Fields on a TI-89
A slope field draws a short line segment at grid points showing the slope dy/dt given by a differential equation. On the TI-89 and TI-89 Titanium you draw one in DIFF EQUATIONS graph mode with the Fields setting turned to SLPFLD.
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: it has no graph screen.
Step by step
Example: dy⁄dt = t − y
- MODE → Graph → DIFF EQUATIONS → ENTER.
- ♦ F1 (Y= editor). The equations are written in terms of t and y1 (not x and y):
y1'=t-y1- leave
yi1(the initial value) blank for now.
- Open the Y= editor's Format dialog and set Fields to SLPFLD. (DIRFLD is for systems of two equations; FLDOFF turns fields off.)
- ♦ F2 (Window): for example xmin = −1, xmax = 5, ymin = −2, ymax = 5.
- ♦ F3 to graph. The slope field appears.
Add a solution curve
Give an initial value and the calculator draws the solution through it, on top of the field:
- In the Y= editor, set yi1 = 1 (so y = 1 at the starting time t0, which is 0 by default).
- Graph again.
For this example the exact solution is y = t − 1 + 2e−t. Trace along it with F3 to check a value: at t = 2, y ≈ 1.2707.
To draw several solution curves at once, enter the initial values as a list: yi1={-1,0,1,2}.
You can also choose starting points interactively on the graph screen, using the tool for initial conditions in the graph toolbar. See the guidebook's differential-equations chapter for the key.
Which numerical method?
The curve is calculated numerically. In the Format dialog:
| Solution Method | Notes |
|---|---|
| RK | Runge-Kutta, more accurate (the default) |
| EULER | Euler's method, which is what many textbooks use for hand calculations |
With EULER, the step size is tstep in the Window editor. Smaller is more accurate. See differential equations for a worked Euler comparison.
Slope fields for AP Calculus
AP Calculus BC questions often show a slope field and ask you to match it to an equation or sketch a solution. Drawing the field on the TI-89 is a good way to check your sketch while practising. For the exact solution, use deSolve(: deSolve(y'=t-y and y(0)=1,t,y) → y=t-1+2·e^(-t).
Common problems
| Problem | Fix |
|---|---|
| No field, just a curve | Fields is set to FLDOFF. Change it to SLPFLD |
| Field missing for a system | SLPFLD works for a single first-order equation. Use DIRFLD for two equations |
| "Undefined variable" | write the equation in terms of t and y1, not x and y |
| Field looks too sparse or dense | change the x and y ranges in the Window editor |
| Curve stops early | increase tmax |
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.