impera Open Impera

AP Calculus AB · Differentiation: composite, implicit and inverse functions

Implicit differentiation

1Explicit and implicit equations

An equation like $y = x^2 + 3$ gives $y$ explicitly as a function of $x$. An equation like $x^2 + y^2 = 25$ relates $x$ and $y$ implicitly: $y$ is not isolated, and solving for it gives two functions, $y = \pm\sqrt{25 - x^2}$.

Implicit differentiation finds $\frac{dy}{dx}$ without solving for $y$. The key idea: treat $y$ as a function of $x$, so whenever you differentiate an expression in $y$, the chain rule gives an extra factor of $\frac{dy}{dx}$.

  • $\frac{d}{dx}[y^2] = 2y\frac{dy}{dx}$
  • $\frac{d}{dx}[\sin y] = \cos y \frac{dy}{dx}$
  • $\frac{d}{dx}[e^y] = e^y \frac{dy}{dx}$
Check yourself

What is d/dx [y³] when y is a function of x?

  • 3y² dy/dx

  • y³ dy/dx

  • 3y²

  • 3x²

Show the answer

3y² dy/dx

The chain rule adds the factor dy/dx.

2The method

  1. Differentiate both sides with respect to $x$.
  2. Every time you differentiate a term with $y$, multiply by $\frac{dy}{dx}$.
  3. Collect all $\frac{dy}{dx}$ terms on one side.
  4. Factor out $\frac{dy}{dx}$ and divide.
Worked example

the circle $x^2 + y^2 = 25$

  1. Differentiate: $2x + 2y\frac{dy}{dx} = 0$.
  2. Solve: $\frac{dy}{dx} = -\frac{x}{y}$.
  3. At $(3, 4)$: slope $= -\frac{3}{4}$. At $(3, -4)$: slope $= \frac{3}{4}$.

The answer usually contains both $x$ and $y$, so you need both coordinates of a point to find the slope there.

Two points on the circle with the same x have different slopes, so dy/dx needs both x and y

Check yourself

For x² + y² = 25, the slope at (−4, 3) is:

  • 4/3

  • −4/3

  • 3/4

  • −3/4

Show the answer

4/3

−x/y = −(−4)/3.

3Products and harder cases

Terms such as $xy$ need the product rule, with the chain rule on the $y$ part.

Worked example

$x^2 y + y^3 = 10$

  1. Differentiate $x^2 y$: $2xy + x^2\frac{dy}{dx}$.
  2. Differentiate $y^3$: $3y^2\frac{dy}{dx}$.
  3. So $2xy + x^2\frac{dy}{dx} + 3y^2\frac{dy}{dx} = 0$.
  4. Collect: $\frac{dy}{dx}(x^2 + 3y^2) = -2xy$.
  5. $\frac{dy}{dx} = \frac{-2xy}{x^2 + 3y^2}$.
Worked example

$\sin(xy) = x$

  1. Chain rule then product rule: $\cos(xy)\left(y + x\frac{dy}{dx}\right) = 1$.
  2. $y + x\frac{dy}{dx} = \frac{1}{\cos(xy)}$.
  3. $\frac{dy}{dx} = \frac{\sec(xy) - y}{x}$.
Check yourself

d/dx [xy] =

  • dy/dx

  • y + x dy/dx

  • 1

  • x dy/dx

Show the answer

y + x dy/dx

Product rule: (1)(y) + (x)(dy/dx).

4Tangent lines and special points

To find a tangent line to an implicit curve at a point, substitute the point into $\frac{dy}{dx}$ and use point-slope form.

  • Horizontal tangents: $\frac{dy}{dx} = 0$, so set the numerator equal to zero (and check the point is on the curve with a nonzero denominator).
  • Vertical tangents: the denominator equals zero (with a nonzero numerator).
Worked example

for $x^2 + y^2 = 25$, $\frac{dy}{dx} = -\frac{x}{y}$.

  1. Horizontal tangents: $x = 0$, so $y = \pm 5$: points $(0, 5)$ and $(0, -5)$.
  2. Vertical tangents: $y = 0$, so $x = \pm 5$: points $(5, 0)$ and $(-5, 0)$.
Check yourself

For dy/dx = (3 − x)/(y + 2), vertical tangents occur where:

  • y = −2 (and x ≠ 3)

  • x = −2 (and y ≠ 3)

  • y = 3 (and x ≠ −2)

  • x = 3 (and y ≠ −2)

Show the answer

y = −2 (and x ≠ 3)

The denominator is zero.

5Second derivatives implicitly

To find $\frac{d^2y}{dx^2}$, differentiate $\frac{dy}{dx}$ again (implicitly), then substitute the expression for $\frac{dy}{dx}$.

Worked example

$x^2 + y^2 = 25$, with $\frac{dy}{dx} = -\frac{x}{y}$

  1. Quotient rule: $\frac{d^2y}{dx^2} = -\frac{y - x\frac{dy}{dx}}{y^2}$.
  2. Substitute: $-\frac{y - x(-x/y)}{y^2} = -\frac{y^2 + x^2}{y^3}$.
  3. Use the original equation, $x^2 + y^2 = 25$: $\frac{d^2y}{dx^2} = -\frac{25}{y^3}$.
Check yourself

After differentiating dy/dx implicitly, what must you usually do next?

  • Integrate both sides with respect to x

  • Substitute the expression for dy/dx

  • Set dy/dx equal to zero and solve

  • Solve the original equation for x

Show the answer

Substitute the expression for dy/dx

This removes dy/dx from the second derivative.

6Going deeper: slopes on curves, second derivatives and vertical tangents

When y is defined implicitly by an equation in x and y, differentiate both sides with respect to x, treating y as a function of x. Every time you differentiate a term in y, the chain rule supplies a factor of $\frac{dy}{dx}$.

Steps

  1. Differentiate each term with respect to x.
  2. Collect the $\frac{dy}{dx}$ terms on one side.
  3. Factor and solve for $\frac{dy}{dx}$.

Worked example (circle): $x^2 + y^2 = 25$.

  1. $2x + 2y\frac{dy}{dx} = 0$.
  2. $\frac{dy}{dx} = -\frac{x}{y}$.
  3. At (3, 4): slope $-\frac{3}{4}$. Tangent: $y - 4 = -\frac{3}{4}(x - 3)$.
  4. At (3, −4): slope $+\frac{3}{4}$. The slope depends on both coordinates.

Worked example (product term): $x^3 + y^3 = 6xy$.

  1. $3x^2 + 3y^2y' = 6y + 6xy'$ (product rule on 6xy).
  2. $y'(3y^2 - 6x) = 6y - 3x^2$.
  3. $y' = \frac{2y - x^2}{y^2 - 2x}$.
  4. At (3, 3): $\frac{6 - 9}{9 - 6} = -1$.

Worked example (transcendental): $\sin(xy) = x$.

  1. $\cos(xy)\,(y + xy') = 1$.
  2. $y' = \frac{1 - y\cos(xy)}{x\cos(xy)}$.

Horizontal and vertical tangents

  • Horizontal: numerator of $\frac{dy}{dx}$ is 0 (and the denominator is not).
  • Vertical: denominator is 0 (and the numerator is not).

For the circle: horizontal at x = 0 (the points (0, ±5)); vertical at y = 0 (the points (±5, 0)).

Worked example

where does $x^2 + xy + y^2 = 12$ have a horizontal tangent?

  1. $2x + y + xy' + 2yy' = 0$, so $y' = -\frac{2x + y}{x + 2y}$.
  2. Horizontal: 2x + y = 0, so y = −2x.
  3. Substitute: $x^2 - 2x^2 + 4x^2 = 12$, so x = ±2.
  4. Points (2, −4) and (−2, 4).

Second derivatives: differentiate $\frac{dy}{dx}$ again (quotient rule), then substitute the expression for $\frac{dy}{dx}$.

Worked example

for the circle, $y' = -\frac{x}{y}$.

  1. $y'' = -\frac{(1)(y) - x\,y'}{y^2}$.
  2. Substitute $y' = -\frac{x}{y}$: $y'' = -\frac{y + \frac{x^2}{y}}{y^2} = -\frac{y^2 + x^2}{y^3}$.
  3. Use $x^2 + y^2 = 25$: $y'' = -\frac{25}{y^3}$.
  4. At (3, 4): $-\frac{25}{64}$: concave down, as the top of a circle should be.

Checking a point: before finding a slope at a given point, confirm the point satisfies the original equation.

Logarithmic differentiation (a use of the same idea): for $y = x^x$, take logs: ln y = x ln x; differentiate: $\frac{y'}{y} = \ln x + 1$; so $y' = x^x(\ln x + 1)$.

Common mistakes

  • Forgetting $\frac{dy}{dx}$ when differentiating a y term.
  • Treating xy as a single term (it needs the product rule).
  • Differentiating the constant side as non-zero.
  • Not substituting y′ back into the second derivative.
  • Giving a slope "at x = 3" when two points share that x-value.
Check yourself

For the curve x² + y² = 100, what is dy/dx at the point (6, 8)?

  • 3 ÷ 4

  • −4 ÷ 3

  • −3 ÷ 4

  • 4 ÷ 3

Show the answer

−3 ÷ 4

dy/dx = −x ÷ y = −6 ÷ 8.

7For top marks

  • Write $\frac{dy}{dx}$ after every $y$-term you differentiate.
  • Show the step where you collect terms and factor out $\frac{dy}{dx}$.
  • Substitute both coordinates to find a slope.
  • Use the original equation to simplify second derivatives.
Example

"Differentiating, $2x + 2y\frac{dy}{dx} = 0$, so $\frac{dy}{dx} = -\frac{x}{y}$. At $(3, 4)$, $\frac{dy}{dx} = -\frac{3}{4}$, so the tangent is $y - 4 = -\frac{3}{4}(x - 3)$."

Check yourself

For x³ + y³ = 9, dy/dx =

  • −3x²

  • −x²/y²

  • x²/y²

  • −y²/x²

Show the answer

−x²/y²

3x² + 3y² dy/dx = 0.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera