Educerie

Educerie · AP · Calculus

AP Calculus AB and BC 3.2

Implicit Differentiation

How do you differentiate a function that is not written in a simple, ready-made form, one that is nested, defined implicitly, or defined as an inverse?

What you will learn

  • Understand why a y term gets a factor dy over dx
  • Know the four-step method for solving for dy over dx
  • Understand that horizontal tangents need a zero numerator and vertical ones a zero denominator
  • Know that numbers go in after differentiating

You must be able to

  1. Find dy over dx from an implicit equation, with product and chain rules
  2. Evaluate the slope at a point after checking the point is on the curve
  3. Find the points of horizontal and vertical tangents using the original equation
  4. Write a tangent line and use it to estimate
  5. Link rates in time on an implicit curve

In the exam. Section I multiple choice: "if x3+xy=y2x^{3} + xy = y^{2}, then dydx=\dfrac{dy}{dx} =" and a slope at a point on the curve. In Section II it is a standard Question 5 or 6 (AB): show that dydx\dfrac{dy}{dx} equals a given expression, find the tangent line at a point, find where the tangent is horizontal or vertical, and use a rate dxdt\dfrac{dx}{dt} to find dydt\dfrac{dy}{dt}. Most of the justification points are about vertical and horizontal tangents.

1Why yy brings a factor of dydx\dfrac{dy}{dx}

On the curve x2+y2=25x^{2} + y^{2} = 25, the value of yy depends on xx. So y2y^{2} is a composite: the inner function is y(x)y(x) and the outer function is "square it".

ddx[y2]=2y⋅dydxouter derivative 2y, times the inner derivative dy/dx\frac{d}{dx}\bigl[y^{2}\bigr] = 2y\cdot\frac{dy}{dx} \qquad \textcolor{#838c91}{\text{outer derivative 2y, times the inner derivative dy/dx}}
  • This is exactly the chain rule of 3.1, with u=yu = y.
  • A term in xx alone has no such factor: ddx[x2]=2x\dfrac{d}{dx}\bigl[x^{2}\bigr] = 2x.
  • The factor is the only new idea. Everything else is Unit 2.

Here is the same pattern for common yy terms. Each one is the outer derivative with yy left inside, times dydx\dfrac{dy}{dx}.

ddx[y3]=3y2dydx\frac{d}{dx}\bigl[y^{3}\bigr] = 3y^{2}\frac{dy}{dx}ddx[sin⁡y]=cos⁡y⋅dydx\frac{d}{dx}\bigl[\sin y\bigr] = \cos y\cdot\frac{dy}{dx}ddx[ey]=eydydx\frac{d}{dx}\bigl[e^{y}\bigr] = e^{y}\frac{dy}{dx}ddx[ln⁡y]=1ydydx\frac{d}{dx}\bigl[\ln y\bigr] = \frac{1}{y}\frac{dy}{dx}

2The method

  1. Differentiate every term on both sides with respect to xx. A yy term gets a factor dydx\dfrac{dy}{dx}. A product of xx and yy needs the product rule.
  2. Move every term containing dydx\dfrac{dy}{dx} to one side and everything else to the other.
  3. Factor out dydx\dfrac{dy}{dx}.
  4. Divide to solve for it.

A circle. Example: x2+y2=25x^{2} + y^{2} = 25.

2x+2ydydx=02x + 2y\frac{dy}{dx} = 0dydx=−xy\frac{dy}{dx} = -\frac{x}{y}At (3,4):    dydx=−34the slope depends on both x and y\text{At } (3, 4):\;\; \frac{dy}{dx} = -\frac{3}{4} \qquad \textcolor{#838c91}{\text{the slope depends on both x and y}}
  • The answer is written in terms of both xx and yy. That is normal for an implicit derivative.
  • To use it you need a point (x,y)(x, y) on the curve, with both coordinates.

A product of xx and yy. Example: x2+xy+y2=7x^{2} + xy + y^{2} = 7, the curve in Figure 1.

2x+(y+xdydx)+2ydydx=0product rule on xy: derivative of x times y, plus x times dy/dx2x + \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0 \qquad \textcolor{#838c91}{\text{product rule on xy: derivative of x times y, plus x times dy/dx}}xdydx+2ydydx=−2x−ydy/dx terms on one sidex\frac{dy}{dx} + 2y\frac{dy}{dx} = -2x - y \qquad \textcolor{#838c91}{\text{dy/dx terms on one side}}dydx(x+2y)=−(2x+y)factor\frac{dy}{dx}(x + 2y) = -(2x + y) \qquad \textcolor{#838c91}{\text{factor}}dydx=−2x+yx+2y\frac{dy}{dx} = -\frac{2x + y}{x + 2y}

The point (1,2)(1, 2) is on the curve, since 1+2+4=71 + 2 + 4 = 7.

dydx∣(1, 2)=−2+21+4=−45\frac{dy}{dx}\bigg|_{(1,\,2)} = -\frac{2 + 2}{1 + 4} = -\frac{4}{5}y−2=−45(x−1)the tangent line at (1, 2)y - 2 = -\frac{4}{5}(x - 1) \qquad \textcolor{#838c91}{\text{the tangent line at (1, 2)}}
The curve x squared plus xy plus y squared equals 7, a tilted ellipse. At the point (1, 2) the tangent has slope minus 4 over 5. Tangents are horizontal at the top and bottom points where y = -2x and vertical at the left and right points where x = -2y −2 −1 1 2 −2 −1 1 2 y x (1, 2) slope −4/5 slope 0 vertical
Figure 1 · The curve x² + xy + y² = 7 with its tangents: slope −4 ÷ 5 at (1, 2), horizontal at the top and bottom, vertical at the left and right

3Equations where dydx\dfrac{dy}{dx} turns up twice

Example: x2y+y3=10x^{2}y + y^{3} = 10.

2xy+x2dydx+3y2dydx=0product rule on x2y2xy + x^{2}\frac{dy}{dx} + 3y^{2}\frac{dy}{dx} = 0 \qquad \textcolor{#838c91}{\text{product rule on }x^{2}y}dydx(x2+3y2)=−2xy\frac{dy}{dx}\left(x^{2} + 3y^{2}\right) = -2xydydx=−2xyx2+3y2\frac{dy}{dx} = -\frac{2xy}{x^{2} + 3y^{2}}At (1,2):    dydx=−413\text{At } (1, 2):\;\; \frac{dy}{dx} = -\frac{4}{13}
  • Check the point first: 12(2)+23=101^{2}(2) + 2^{3} = 10.
  • Factor dydx\dfrac{dy}{dx} out of every term that has it. Missing one term gives a wrong denominator.

Trigonometric terms. Example: sin⁡(xy)=x\sin(xy) = x.

cos⁡(xy)⋅(y+xdydx)=1chain rule on sin(xy), then product rule inside\cos(xy)\cdot\left(y + x\frac{dy}{dx}\right) = 1 \qquad \textcolor{#838c91}{\text{chain rule on sin(xy), then product rule inside}}ycos⁡(xy)+xcos⁡(xy)dydx=1y\cos(xy) + x\cos(xy)\frac{dy}{dx} = 1dydx=1−ycos⁡(xy)xcos⁡(xy)\frac{dy}{dx} = \frac{1 - y\cos(xy)}{x\cos(xy)}

Terms with a yy in a product. Example: x2y3=8x^{2}y^{3} = 8.

2xy3+x2⋅3y2dydx=02xy^{3} + x^{2}\cdot 3y^{2}\frac{dy}{dx} = 0dydx=−2xy33x2y2=−2y3x\frac{dy}{dx} = -\frac{2xy^{3}}{3x^{2}y^{2}} = -\frac{2y}{3x}At (1,2):    −2(2)3(1)=−43\text{At } (1, 2):\;\; -\frac{2(2)}{3(1)} = -\frac{4}{3}

4Horizontal and vertical tangents

For the curve in Figure 1, dydx=−2x+yx+2y\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}. A fraction behaves in two ways at special points.

Horizontal tangent = slope 0. The numerator is 0 and the denominator is not.

2x+y=0  ⇒  y=−2x2x + y = 0 \;\Rightarrow\; y = -2xx2+x(−2x)+(−2x)2=7  ⇒  3x2=7  ⇒  x=±73substitute into the curvex^{2} + x(-2x) + (-2x)^{2} = 7 \;\Rightarrow\; 3x^{2} = 7 \;\Rightarrow\; x = \pm\sqrt{\tfrac{7}{3}} \qquad \textcolor{#838c91}{\text{substitute into the curve}}
  • Use the equation of the curve to find the points. Setting the numerator to zero gives a line, and the points are where that line meets the curve.
  • This gives the two points with y=∓273y = \mp 2\sqrt{\tfrac{7}{3}}, the top and bottom of Figure 1. The denominator there is x+2y=−3x≠0x + 2y = -3x \neq 0, so the slope is really 0.

Vertical tangent = the slope is undefined. The denominator is 0 and the numerator is not.

x+2y=0  ⇒  x=−2yx + 2y = 0 \;\Rightarrow\; x = -2y(−2y)2+(−2y)y+y2=7  ⇒  3y2=7  ⇒  y=±73(-2y)^{2} + (-2y)y + y^{2} = 7 \;\Rightarrow\; 3y^{2} = 7 \;\Rightarrow\; y = \pm\sqrt{\tfrac{7}{3}}
  • These are the left and right points of Figure 1.
  • Check the numerator is not also 0. Here 2x+y=−3y≠02x + y = -3y \neq 0, so the tangents are vertical.

Horizontal tangent: numerator =0= 0. Vertical tangent: denominator =0= 0. Then substitute into the original equation to find the points on the curve, and check the other part is not also zero.

  • If a question asks for the points, you need both coordinates. A value of xx alone is not enough.
  • A numerator of zero at a point that is not on the curve means nothing.

5Tangent line and tangent-line approximation

Once you have the slope, the tangent line is y−y1=m(x−x1)y - y_{1} = m(x - x_{1}).

Example: the circle x2+y2=25x^{2} + y^{2} = 25 at (3,4)(3, 4) has slope −34-\tfrac{3}{4}, so

y−4=−34(x−3)y - 4 = -\frac{3}{4}(x - 3)
  • Use this line to estimate yy near x=3x = 3. At x=3.2x = 3.2, y≈4−34(0.2)=3.85y \approx 4 - \tfrac{3}{4}(0.2) = 3.85.
  • The true value is 25−3.22≈3.842\sqrt{25 - 3.2^{2}} \approx 3.842. The circle bends below its tangent line, so the line overestimates.

6Rates in time

If both xx and yy change with time, differentiate with respect to tt instead. The method is the same, but now xx terms get a factor dxdt\dfrac{dx}{dt} as well as yy terms getting dydt\dfrac{dy}{dt}.

Example (invented). A point moves along x2+y2=25x^{2} + y^{2} = 25, and dxdt=4\dfrac{dx}{dt} = 4 when the point is at (3,4)(3, 4).

2xdxdt+2ydydt=02x\frac{dx}{dt} + 2y\frac{dy}{dt} = 02(3)(4)+2(4)dydt=0  ⇒  dydt=−32(3)(4) + 2(4)\frac{dy}{dt} = 0 \;\Rightarrow\; \frac{dy}{dt} = -3
  • Substitute the numbers only after differentiating. Putting x=3x = 3 in before differentiating turns a variable into a constant and loses a term.
  • Related rates in Unit 4 use exactly this step.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.