← Back to calculus 3

Calculus of the Curves

Tangent to a Parametric Curve

Let a parametric curve be given by

x=x(t),y=y(t).x = x(t), \quad y = y(t).

At t=t0t=t_0, the curve passes through the point

P=(x(t0),y(t0)).P = \big(x(t_0), y(t_0)\big).

If x(t0)0x'(t_0) \neq 0, then the tangent slope is

dydx=dy/dtdx/dt=y(t0)x(t0).\frac{dy}{dx} = \frac{dy/dt}{dx/dt} = \frac{y'(t_0)}{x'(t_0)}.

Method 1: Chain rule via a local graph

Suppose locally the curve can be written as a function y=F(x)y = F(x). Then by the chain rule,

dydt=dydxdxdt.\frac{dy}{dt} = \frac{dy}{dx} \cdot \frac{dx}{dt}.

So when x(t0)0x'(t_0) \neq 0,

dydx=dy/dtdx/dt.\frac{dy}{dx} = \frac{dy/dt}{dx/dt}.

This is the usual tangent formula for a parametric curve.

The formula breaks down when x(t0)=0x'(t_0)=0. In that case we cannot divide by dx/dtdx/dt, and the curve may fail to be a local graph y=F(x)y=F(x).

For example, consider the heart-shaped curve

x=16sin3t,y=13cost5cos(2t)2cos(3t)cos(4t).x = 16\sin^3 t, \quad y = 13\cos t - 5\cos(2t) - 2\cos(3t) - \cos(4t).

At t=π/2t=\pi/2,

x=16,y=4,x(π/2)=0,x = 16, \quad y = 4, \quad x'(\pi/2)=0,

so the tangent line is vertical.

Heart curve with a vertical tangent

Method 2: Right-triangle approximation

Now take two nearby parameter values t0t_0 and t0+Δtt_0 + \Delta t.

The change in position is approximately

Δxx(t0)Δt,Δyy(t0)Δt.\Delta x \approx x'(t_0)\,\Delta t, \quad \Delta y \approx y'(t_0)\,\Delta t.

Those two changes form the legs of a small right triangle, so the secant slope is approximately

ΔyΔxy(t0)Δtx(t0)Δt=y(t0)x(t0).\frac{\Delta y}{\Delta x} \approx \frac{y'(t_0)\Delta t}{x'(t_0)\Delta t} = \frac{y'(t_0)}{x'(t_0)}.

As Δt0\Delta t \to 0, the secant line becomes the tangent line.

For the same heart curve, choose t0=π/4t_0 = \pi/4. Then

P(5.6569,11.6066),dydx0.2976.P \approx (5.6569, 11.6066), \quad \frac{dy}{dx} \approx 0.2976.

So the tangent line is approximately

y11.6066=0.2976(x5.6569),y - 11.6066 = 0.2976(x - 5.6569),

or equivalently

y0.2976x+9.9232.y \approx 0.2976x + 9.9232.

Tangent line from a local secant approximation


Second Derivative and Concavity

The first derivative of a parametric curve is

dydx=y(t)x(t),x(t)0.\frac{dy}{dx} = \frac{y'(t)}{x'(t)}, \quad x'(t) \neq 0.

To differentiate again with respect to xx, use

ddx=1x(t)ddt.\frac{d}{dx} = \frac{1}{x'(t)}\frac{d}{dt}.

Therefore,

d2ydx2=1x(t)ddt(y(t)x(t))=x(t)y(t)y(t)x(t)(x(t))3.\frac{d^2y}{dx^2} = \frac{1}{x'(t)}\frac{d}{dt}\left(\frac{y'(t)}{x'(t)}\right) = \frac{x'(t)y''(t) - y'(t)x''(t)}{(x'(t))^3}.

This is the standard second-derivative formula for a parametric curve.

Concavity

For example, take

x=t,y=t33t.x = t, \quad y = t^3 - 3t.

Here x(t)=1x'(t)=1, so the formula reduces to the usual calculus rule:

d2ydx2=6t.\frac{d^2y}{dx^2} = 6t.

So the curve is concave downward for t<0t<0, concave upward for t>0t>0, and changes concavity at t=0t=0.

Second derivative and concavity


Arc Length

For a tiny piece of curve, the change in position can be approximated by a right triangle.

If the small changes are Δx\Delta x and Δy\Delta y, then by the Pythagorean theorem,

(Δs)2(Δx)2+(Δy)2.(\Delta s)^2 \approx (\Delta x)^2 + (\Delta y)^2.

So the small arc length is approximately

Δs(Δx)2+(Δy)2.\Delta s \approx \sqrt{(\Delta x)^2 + (\Delta y)^2}.

If the curve is written as y=f(x)y=f(x), then

ΔydydxΔx,\Delta y \approx \frac{dy}{dx}\Delta x,

so

Δs1+(dydx)2Δx.\Delta s \approx \sqrt{1 + \left(\frac{dy}{dx}\right)^2}\,\Delta x.

Passing to the limit gives the arc length formula

L=ab1+(dydx)2dx.L = \int_a^b \sqrt{1 + \left(\frac{dy}{dx}\right)^2}\,dx.

For a parametric curve x=x(t)x=x(t), y=y(t)y=y(t),

dx=x(t)dt,dy=y(t)dt.dx = x'(t)\,dt, \quad dy = y'(t)\,dt.

Then the same Pythagorean idea gives

ds=(x(t))2+(y(t))2dt,ds = \sqrt{(x'(t))^2 + (y'(t))^2}\,dt,

and therefore

L=ab(x(t))2+(y(t))2dt.L = \int_a^b \sqrt{(x'(t))^2 + (y'(t))^2}\,dt.

A curve used to visualize tiny arc segments

Exercises

For the heart curve

x=16sin3t,y=13cost5cos(2t)2cos(3t)cos(4t),x=16\sin^3 t, \quad y=13\cos t - 5\cos(2t) - 2\cos(3t) - \cos(4t),

find the tangent line at t=π/4t=\pi/4.

Hint: compute x(t)x'(t) and y(t)y'(t), then use dydx=yx\dfrac{dy}{dx}=\dfrac{y'}{x'}.

Answer: dydx0.2976\dfrac{dy}{dx} \approx 0.2976, so the tangent line is

y0.2976x+9.9232.y \approx 0.2976x + 9.9232.

On the same heart curve, what happens at t=π/2t=\pi/2?

Hint: compute x(π/2)x'(\pi/2).

Answer: x(π/2)=0x'(\pi/2)=0, so the quotient yx\dfrac{y'}{x'} is not usable there. The tangent is vertical, and the curve is not locally a graph y=F(x)y=F(x).

Let x=tx=t and y=t33ty=t^3-3t. Compute d2ydx2\dfrac{d^2y}{dx^2} and determine where the curve is concave upward and concave downward.

Answer: Since x(t)=1x'(t)=1 and y(t)=6ty''(t)=6t,

d2ydx2=6t.\frac{d^2y}{dx^2}=6t.

The curve is concave downward for t<0t<0 and concave upward for t>0t>0.

Let x=3tx=3t and y=4ty=4t for 0t10\le t\le 1. Find the arc length.

Hint: use L=01(x)2+(y)2dtL=\int_0^1\sqrt{(x')^2+(y')^2}\,dt.

Answer: x=3x'=3 and y=4y'=4, so

L=0132+42dt=015dt=5.L=\int_0^1\sqrt{3^2+4^2}\,dt=\int_0^1 5\,dt=5.

Summary

  1. For a parametric curve, the tangent slope is dydx=yx\dfrac{dy}{dx}=\dfrac{y'}{x'} when x0x'\neq 0.
  2. The chain rule explains the formula, but it fails when x=0x'=0.
  3. The second derivative is d2ydx2=xyyx(x)3.\dfrac{d^2y}{dx^2}=\dfrac{x'y''-y'x''}{(x')^3}.
  4. Concavity is determined by the sign of d2ydx2\dfrac{d^2y}{dx^2}.
  5. Arc length comes from a tiny right triangle and the Pythagorean theorem.