The green curve (r(t),θ(t),0) is shown in the horizontal plane (2D graph window). At the point (r(t0),θ(t0)) on this curve, three vectors are drawn: the purple tangent vector (r'(t0),θ'(t0),0), the red r-component (r'(t0),0,0), and the blue θ-component (0,θ'(t0),0).

We then introduce a function f(r,θ) and show its graph (r,θ,f(r,θ)) in the 3D graph window. The image of (r(t),θ(t)) under f produces a green curve (r(t),θ(t),z(t)) that runs along the surface of the graph. The curve (r(t),θ(t),z(t)) has its own velocity vector (r'(t),θ'(t),z'(t)) = (r'(t),θ'(t),fr(r(t),θ(t))r'(t) + fθ(r(t),θ(t))θ'(t)) which is given by the chain rule. This tangent vector is drawn at the point z(t0) on the surface as well as its components in the r- and θ-directions. Observe that these three vectors are essentially an orthogonal projection of the three vectors in the domain onto the tangent plane at (r(t0),θ(t0),f(r(t0),θ(t0)).

Clicking the checkbox will display tangent vectors calculated not using the chain rule to illustrate the importance of the chain rule.