AP Calculus BC

Parametric Derivatives: dy/dx and the Second Derivative

For a curve x = f(t), y = g(t), the slope is dy/dx = (dy/dt) / (dx/dt) wherever dx/dt is not zero. The second derivative is the t-derivative of dy/dx, divided by dx/dt again. Dividing the second derivative of y by the second derivative of x is a common error and gives a wrong answer.

The slope of a parametric curve

A parametric curve gives xx and yy separately as functions of a third variable tt, called the parameter. The slope of the curve is still dydx\frac{dy}{dx}, the rate at which yy changes compared with xx. You get it by dividing the two rates you can compute directly. This is CED Topic 9.1, Defining and Differentiating Parametric Equations.

dydx=dydtdxdt,dxdt≠0\frac{dy}{dx} = \frac{\frac{dy}{dt}}{\frac{dx}{dt}}, \qquad \frac{dx}{dt} \neq 0

The formula is the chain rule rearranged. If yy depends on xx and xx depends on tt, then dydt=dydx⋅dxdt\frac{dy}{dt} = \frac{dy}{dx} \cdot \frac{dx}{dt}. Divide both sides by dxdt\frac{dx}{dt} and the slope formula appears.

The result is a function of tt. To find the slope at a point, substitute the value of tt that produces that point. If a problem gives the point as (x,y)(x, y), first solve for the tt that lands there.

Horizontal and vertical tangents

Because the slope is a fraction, its numerator and denominator tell you where the tangent line is flat or upright.

ConditionTangent line
dydt=0\frac{dy}{dt} = 0 and dxdt≠0\frac{dx}{dt} \neq 0Horizontal
dxdt=0\frac{dx}{dt} = 0 and dydt≠0\frac{dy}{dt} \neq 0Vertical
dydt=0\frac{dy}{dt} = 0 and dxdt=0\frac{dx}{dt} = 0No conclusion from the formula; the slope has the form 00\frac{0}{0} and needs a limit

Always check the other derivative at each candidate value of tt. A value where dydt=0\frac{dy}{dt} = 0 gives a horizontal tangent only if dxdt\frac{dx}{dt} is nonzero there.

The signs of the two rates also describe the motion. When dxdt>0\frac{dx}{dt} > 0 the point moves right as tt increases, and when dydt>0\frac{dy}{dt} > 0 it moves up.

The second derivative

The second derivative d2ydx2\frac{d^2y}{dx^2} is the derivative of the slope with respect to xx. The slope dydx\frac{dy}{dx} is a function of tt, so you apply the same parametric rule to it: differentiate with respect to tt, then divide by dxdt\frac{dx}{dt}. This is CED Topic 9.2, Second Derivatives of Parametric Equations.

d2ydx2=ddt(dydx)dxdt\frac{d^2y}{dx^2} = \frac{\frac{d}{dt}\left(\frac{dy}{dx}\right)}{\frac{dx}{dt}}

The work comes in three steps.

  1. Find dydx\frac{dy}{dx} and simplify it as a function of tt.
  2. Differentiate that expression with respect to tt.
  3. Divide the result by dxdt\frac{dx}{dt}.

A check you can run by hand

Take x=ln⁡tx = \ln t and y=t2+ty = t^2 + t for t>0t > 0. Then dxdt=1t\frac{dx}{dt} = \frac{1}{t} and dydt=2t+1\frac{dy}{dt} = 2t + 1, so dydx=2t2+t\frac{dy}{dx} = 2t^2 + t. Its tt-derivative is 4t+14t + 1, and dividing by 1t\frac{1}{t} gives d2ydx2=4t2+t\frac{d^2y}{dx^2} = 4t^2 + t. Eliminating the parameter confirms it: t=ext = e^x, so y=e2x+exy = e^{2x} + e^x and the ordinary second derivative is 4e2x+ex=4t2+t4e^{2x} + e^x = 4t^2 + t.

Tangent lines and concavity

A tangent line needs a point and a slope. The point comes from substituting tt into x(t)x(t) and y(t)y(t). The slope comes from dydx\frac{dy}{dx} at the same tt. Then use point-slope form.

y−y(t0)=dydx∣t=t0⋅(x−x(t0))y - y(t_0) = \frac{dy}{dx}\bigg|_{t = t_0} \cdot \left(x - x(t_0)\right)

Concavity reads the same way it does for any curve. Where d2ydx2>0\frac{d^2y}{dx^2} > 0 the curve is concave up, and where d2ydx2<0\frac{d^2y}{dx^2} < 0 it is concave down. The sign has to be checked in terms of tt, since that is the variable your formula uses.

Common mistakes

  • Computing d2y/dt2d2x/dt2\frac{d^2y/dt^2}{d^2x/dt^2} for the second derivative. That quotient is a different quantity. The second derivative needs the tt-derivative of dydx\frac{dy}{dx} on top and dxdt\frac{dx}{dt} on the bottom.
  • Forgetting the final division by dxdt\frac{dx}{dt}. Differentiating dydx\frac{dy}{dx} with respect to tt is only step two of three.
  • Flipping the fraction. The yy rate goes on top: dydt\frac{dy}{dt} over dxdt\frac{dx}{dt}.
  • Calling a tangent horizontal without checking that dxdt≠0\frac{dx}{dt} \neq 0 at that value of tt.
  • Substituting an xx-coordinate where a tt-value belongs. Every formula here is written in tt.

Worked examples

Worked example

Slope and tangent line at a given t

A curve is defined by x=t3+tx = t^3 + t and y=t2−4ty = t^2 - 4t. Find dydx\frac{dy}{dx} at t=1t = 1 and write the equation of the tangent line there.

  1. Differentiate each coordinate with respect to tt: dxdt=3t2+1\frac{dx}{dt} = 3t^2 + 1 and dydt=2t−4\frac{dy}{dt} = 2t - 4.
  2. Form the slope: dydx=2t−43t2+1\frac{dy}{dx} = \frac{2t - 4}{3t^2 + 1}.
  3. Evaluate at t=1t = 1: dydx=2−43+1=−12\frac{dy}{dx} = \frac{2 - 4}{3 + 1} = -\frac{1}{2}.
  4. Find the point: x(1)=1+1=2x(1) = 1 + 1 = 2 and y(1)=1−4=−3y(1) = 1 - 4 = -3, so the point is (2,−3)(2, -3).
  5. Use point-slope form: y+3=−12(x−2)y + 3 = -\frac{1}{2}(x - 2), which simplifies to y=−12x−2y = -\frac{1}{2}x - 2.

The slope is −12-\frac{1}{2} and the tangent line is y+3=−12(x−2)y + 3 = -\frac{1}{2}(x - 2).

Worked example

Horizontal and vertical tangents

Find every point where the curve x=t3−3tx = t^3 - 3t, y=t2−4ty = t^2 - 4t has a horizontal or vertical tangent line.

  1. Differentiate: dxdt=3t2−3=3(t−1)(t+1)\frac{dx}{dt} = 3t^2 - 3 = 3(t - 1)(t + 1) and dydt=2t−4\frac{dy}{dt} = 2t - 4.
  2. Horizontal tangents need dydt=0\frac{dy}{dt} = 0, which happens at t=2t = 2. There dxdt=3(4)−3=9≠0\frac{dx}{dt} = 3(4) - 3 = 9 \neq 0, so the tangent is horizontal.
  3. The point at t=2t = 2 is x=8−6=2x = 8 - 6 = 2, y=4−8=−4y = 4 - 8 = -4, so (2,−4)(2, -4).
  4. Vertical tangents need dxdt=0\frac{dx}{dt} = 0, which happens at t=1t = 1 and t=−1t = -1. There dydt\frac{dy}{dt} equals −2-2 and −6-6, both nonzero, so both tangents are vertical.
  5. The point at t=1t = 1 is (1−3, 1−4)=(−2,−3)(1 - 3,\ 1 - 4) = (-2, -3). The point at t=−1t = -1 is (−1+3, 1+4)=(2,5)(-1 + 3,\ 1 + 4) = (2, 5).

Horizontal tangent at (2,−4)(2, -4); vertical tangents at (−2,−3)(-2, -3) and (2,5)(2, 5).

Worked example

Second derivative and concavity on an ellipse

For x=2cos⁡tx = 2\cos t, y=3sin⁡ty = 3\sin t with 0<t<π0 < t < \pi, find d2ydx2\frac{d^2y}{dx^2} in terms of tt, evaluate it at t=π6t = \frac{\pi}{6}, and state the concavity of this part of the curve.

  1. Differentiate: dxdt=−2sin⁡t\frac{dx}{dt} = -2\sin t and dydt=3cos⁡t\frac{dy}{dt} = 3\cos t.
  2. Find the slope: dydx=3cos⁡t−2sin⁡t=−32cot⁡t\frac{dy}{dx} = \frac{3\cos t}{-2\sin t} = -\frac{3}{2}\cot t.
  3. Differentiate the slope with respect to tt: ddt(−32cot⁡t)=32csc⁡2t\frac{d}{dt}\left(-\frac{3}{2}\cot t\right) = \frac{3}{2}\csc^2 t.
  4. Divide by dxdt\frac{dx}{dt}: d2ydx2=32csc⁡2t−2sin⁡t=−34sin⁡3t\frac{d^2y}{dx^2} = \frac{\frac{3}{2}\csc^2 t}{-2\sin t} = -\frac{3}{4\sin^3 t}.
  5. Evaluate at t=π6t = \frac{\pi}{6}, where sin⁡t=12\sin t = \frac{1}{2} and sin⁡3t=18\sin^3 t = \frac{1}{8}: d2ydx2=−34⋅18=−6\frac{d^2y}{dx^2} = -\frac{3}{4 \cdot \frac{1}{8}} = -6.
  6. For 0<t<π0 < t < \pi, sin⁡t>0\sin t > 0, so d2ydx2<0\frac{d^2y}{dx^2} < 0 on the whole interval. This is the top half of the ellipse, and it is concave down.

d2ydx2=−34sin⁡3t\frac{d^2y}{dx^2} = -\frac{3}{4\sin^3 t}, which equals −6-6 at t=π6t = \frac{\pi}{6}. The curve is concave down for 0<t<π0 < t < \pi.

Frequently asked questions

Why is the second derivative not d2y/dt2d2x/dt2\frac{d^2y/dt^2}{d^2x/dt^2}?

The second derivative measures how the slope dydx\frac{dy}{dx} changes as xx changes. The slope is a function of tt, so its rate of change with respect to xx is its tt-derivative divided by dxdt\frac{dx}{dt}. Dividing the two second tt-derivatives compares accelerations in yy and xx, which is a different quantity. In the ellipse example above that quotient would be 32tan⁡t\frac{3}{2}\tan t, while the true second derivative is −34sin⁡3t-\frac{3}{4\sin^3 t}.

What happens when dx/dt and dy/dt are both zero?

The slope formula gives 00\frac{0}{0}, so it tells you nothing by itself. The curve may have a cusp, a horizontal tangent, a vertical tangent, or something else at that value of tt. To decide, take the limit of dydx\frac{dy}{dx} as tt approaches the value.

Do I need to eliminate the parameter first?

No. The parametric formulas give dydx\frac{dy}{dx} and d2ydx2\frac{d^2y}{dx^2} directly in terms of tt, and many parametric curves cannot be solved for yy as a function of xx at all. Eliminating the parameter is useful mainly as a check on simple curves.