Curl, Magnitude & Vector Calculus on a TI-89
The TI-89 has built-in commands for a vector's magnitude (norm() and unit vector (unitV(). For gradient, divergence and curl there's no single command, but each is one line of partial derivatives with d(.
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: entering a matrix stops its maths engine, which restarts itself and clears the screen.
Magnitude of a vector
norm( is in 2ND 5 (MATH) → Matrix → Norms:
norm([3,4,12]) → 13
norm([1,2]) → √5
For a vector, norm( gives the ordinary length √(x2+y2+z2). (For a matrix it gives the Frobenius norm. For example, Texas Instruments' reference shows norm([1,2;3,4]) = √30.)
You can also use the formula directly: √(dotP(v,v)) for a stored vector v.
Unit vector
unitV( is in MATH → Matrix → Vector ops:
unitV([3,4,12]) → [3/13, 4/13, 12/13]
Angle between two vectors
cosθ = (u·v)⁄(|u||v|)
cos⁻¹(dotP(u,v)/(norm(u)*norm(v)))
Gradient
∇ f = ((∂ f)⁄(∂ x), (∂ f)⁄(∂ y), (∂ f)⁄(∂ z))
[d(x^2*y+z,x), d(x^2*y+z,y), d(x^2*y+z,z)] → [2·x·y, x², 1]
Divergence
∇·F = (∂ F1)⁄(∂ x)+(∂ F2)⁄(∂ y)+(∂ F3)⁄(∂ z)
For F = (x2, y2, z2):
d(x^2,x)+d(y^2,y)+d(z^2,z) → 2·x+2·y+2·z
Curl
∇×F = ((∂ F3)⁄(∂ y)−(∂ F2)⁄(∂ z), (∂ F1)⁄(∂ z)−(∂ F3)⁄(∂ x), (∂ F2)⁄(∂ x)−(∂ F1)⁄(∂ y))
Save it as a function so you can reuse it (F4 → Define):
Define curl(p,q,r)=[d(r,y)-d(q,z), d(p,z)-d(r,x), d(q,x)-d(p,y)]
| Field | Entry | Curl |
|---|---|---|
| (−y, x, 0) | curl(-y,x,0) |
(0, 0, 2) |
| (yz, xz, xy) | curl(y*z,x*z,x*y) |
(0, 0, 0), so the field is conservative |
Make sure x, y and z have no stored values first (2ND F1 → Clear a–z). Type products with *: y*z, not yz.
Line and surface integrals
There are no dedicated commands. Parametrise the curve or surface and use ∫(. For the work done by F = (−y, x) around the unit circle (cos t, sin t):
∫(-sin(t)*d(cos(t),t)+cos(t)*d(sin(t),t),t,0,2π) → 2·π
See double integrals and arc length.
Common problems
| Problem | Fix |
|---|---|
| Dimension error | vectors in crossP( must both have 2 or 3 elements |
| Curl result has numbers instead of x, y, z | those variables have stored values. Clear a–z |
yz treated as one variable |
type y*z |
| Want a decimal length | press ♦ ENTER |
Related tutorials
- Matrix operations
- Dot and cross products
- Entering matrices and vectors
- All matrix and vector 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.