Skip to content
Family Table Math
Auto

Implicit Differentiation

Some curves, like the circle x2+y2=25x^2 + y^2 = 25, aren’t written as ”y=y = something”. Solving for yy can be messy or even impossible. Implicit differentiation lets you find dydx\dfrac{dy}{dx} anyway, by differentiating both sides of the equation as it stands. It’s really just the chain rule used in a clever way.

An equation like y=x3−2xy = x^3 - 2x defines yy explicitly: yy is alone on one side. An equation like x2+xy+y2=7x^2 + xy + y^2 = 7 defines yy implicitly: xx and yy are mixed together. We still think of yy as a function of xx (at least near any given point), even though we don’t have a formula for it.

Since yy is a function of xx, any expression in yy is a composite function, with yy as the inside. So the chain rule adds a factor of dydx\dfrac{dy}{dx}:

TermDerivative with respect to xx
x3x^33x23x^2
y3y^33y2dydx3y^2 \dfrac{dy}{dx}
sin⁡y\sin ycos⁡ydydx\cos y \dfrac{dy}{dx}
eye^yeydydxe^y \dfrac{dy}{dx}
xyxy1⋅y+xdydx1 \cdot y + x\dfrac{dy}{dx} (product rule)

Terms in xx alone are differentiated as usual. Every time you differentiate something with yy in it, a dydx\dfrac{dy}{dx} appears.

  1. Differentiate both sides with respect to xx.
  2. Move all terms 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 dydx\dfrac{dy}{dx}.

The answer usually contains both xx and yy. That’s expected: to find a slope, you need the whole point (x,y)(x, y), not just xx. (On a circle, two points share each xx-value, with different slopes.)

To find the slope at a point, substitute both coordinates into dydx\dfrac{dy}{dx}. Then write the tangent line in point-slope form, y−y1=m(x−x1)y - y_1 = m(x - x_1).

If dydx=ND\dfrac{dy}{dx} = \dfrac{N}{D}:

  • Horizontal tangent: N=0N = 0 and D≠0D \ne 0.
  • Vertical tangent: D=0D = 0 and N≠0N \ne 0.

Either way, the point must also be on the curve, so solve together with the original equation. You’ll analyze implicit curves more in implicit relations analysis.

Find dydx\dfrac{dy}{dx} for x2+y2=25x^2 + y^2 = 25, and the tangent line at (3,4)(3, 4).

Solution. Differentiate both sides:

2x+2ydydx=0⇒dydx=−xy2x + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x}{y}

At (3,4)(3, 4), the slope is −34-\dfrac{3}{4}, so the tangent line is

y−4=−34(x−3)y - 4 = -\frac{3}{4}(x - 3)

Check: the radius from (0,0)(0, 0) to (3,4)(3, 4) has slope 43\dfrac{4}{3}, and a tangent to a circle is perpendicular to the radius. Indeed, −34-\dfrac{3}{4} is the negative reciprocal of 43\dfrac{4}{3}.

The circle x squared plus y squared equals 25 with its tangent line at the point (3, 4). The tangent has slope negative 3/4 and is perpendicular to the radius from the origin. (3, 4) slope = −3/4 x² + y² = 25 −6 −4 −2 2 4 6 8 −6 −4 −2 2 4 6 8
The tangent to x2+y2=25x^2 + y^2 = 25 at (3,4)(3, 4) has slope −34-\tfrac{3}{4}, found implicitly.

Find dydx\dfrac{dy}{dx} for x2+xy+y2=7x^2 + xy + y^2 = 7, then find the slope at (1,2)(1, 2).

Solution. Use the product rule on xyxy:

2x+(y+xdydx)+2ydydx=02x + \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0

Collect the dydx\dfrac{dy}{dx} terms and factor:

(x+2y)dydx=−2x−ydydx=−2x+yx+2y\begin{aligned} (x + 2y)\frac{dy}{dx} &= -2x - y \\ \frac{dy}{dx} &= -\frac{2x + y}{x + 2y} \end{aligned}

First check that (1,2)(1, 2) is on the curve: 1+2+4=71 + 2 + 4 = 7. Then

dydx=−2(1)+21+2(2)=−45\frac{dy}{dx} = -\frac{2(1) + 2}{1 + 2(2)} = -\frac{4}{5}

Find the slope of the curve xcos⁡y+y=1x\cos y + y = 1 at the point (1,0)(1, 0).

Solution. Product rule on xcos⁡yx\cos y, with the chain rule on cos⁡y\cos y:

cos⁡y+x(−sin⁡ydydx)+dydx=0\cos y + x\left(-\sin y\frac{dy}{dx}\right) + \frac{dy}{dx} = 0 dydx(1−xsin⁡y)=−cos⁡y⇒dydx=−cos⁡y1−xsin⁡y\frac{dy}{dx}(1 - x\sin y) = -\cos y \quad\Rightarrow\quad \frac{dy}{dx} = \frac{-\cos y}{1 - x\sin y}

At (1,0)(1, 0) (check: 1⋅cos⁡0+0=11 \cdot \cos 0 + 0 = 1), the slope is −11−0=−1\dfrac{-1}{1 - 0} = -1.

Example 4: Horizontal and vertical tangents

Section titled “Example 4: Horizontal and vertical tangents”

For the curve x2−xy+y2=3x^2 - xy + y^2 = 3, find all points with a horizontal tangent and all points with a vertical tangent.

Solution. Differentiate:

2x−(y+xdydx)+2ydydx=0⇒dydx=y−2x2y−x2x - \left(y + x\frac{dy}{dx}\right) + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{y - 2x}{2y - x}

Horizontal: set the numerator to zero, so y=2xy = 2x. Substitute into the curve:

x2−2x2+4x2=3⇒3x2=3⇒x=±1x^2 - 2x^2 + 4x^2 = 3 \quad\Rightarrow\quad 3x^2 = 3 \quad\Rightarrow\quad x = \pm 1

The points are (1,2)(1, 2) and (−1,−2)(-1, -2). The denominator there is 2(2)−1=32(2) - 1 = 3 and 2(−2)+1=−32(-2) + 1 = -3, not zero, so these tangents really are horizontal.

Vertical: set the denominator to zero, so x=2yx = 2y. Substitute:

4y2−2y2+y2=3⇒y=±14y^2 - 2y^2 + y^2 = 3 \quad\Rightarrow\quad y = \pm 1

The points are (2,1)(2, 1) and (−2,−1)(-2, -1), where the numerator is 1−4=−31 - 4 = -3 and −1+4=3-1 + 4 = 3, not zero.

Forgetting the dy/dx on y terms. ddx(y2)\dfrac{d}{dx}(y^2) is 2ydydx2y\dfrac{dy}{dx}, not 2y2y. If your final answer has no dydx\dfrac{dy}{dx} to solve for, you’ve dropped it somewhere.

Skipping the product rule on xy. ddx(xy)=y+xdydx\dfrac{d}{dx}(xy) = y + x\dfrac{dy}{dx}. Writing just xdydxx\dfrac{dy}{dx}, or just 1⋅dydx1 \cdot \dfrac{dy}{dx}, is one of the most common errors on tests, including the AP exam.

Not differentiating the right side. Differentiate both sides. A constant like 2525 becomes 00, and a term like 3x3x on the right becomes 33.

Messy algebra at the end. Get every dydx\dfrac{dy}{dx} term on one side and factor it out before dividing. Don’t divide by only one of the terms.

Using a point that isn’t on the curve. Before substituting, check that the point satisfies the original equation. For horizontal or vertical tangents, you must solve together with the original equation to find actual points.

Forgetting to check the other part of the fraction. A horizontal tangent needs the numerator 00 and the denominator not 00. If both are 00, the slope isn’t determined by this formula, and you’d need more work.

1. (Warm-up) Find ddx\dfrac{d}{dx} of each expression, assuming yy is a function of xx.

  • (a) y4y^4
  • (b) xyxy
  • (c) sin⁡y\sin y
Solution

(a) 4y3dydx4y^3\dfrac{dy}{dx}

(b) y+xdydxy + x\dfrac{dy}{dx}

(c) cos⁡ydydx\cos y\dfrac{dy}{dx}

2. (Warm-up) Find the slope of the circle x2+y2=100x^2 + y^2 = 100 at the point (6,−8)(6, -8).

Solution

As in Example 1, dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y}. At (6,−8)(6, -8):

dydx=−6−8=34\frac{dy}{dx} = -\frac{6}{-8} = \frac{3}{4}

3. (Warm-up) For the parabola y2=4xy^2 = 4x, find dydx\dfrac{dy}{dx} and the slope at (1,2)(1, 2).

Solution2ydydx=4⇒dydx=2y2y\frac{dy}{dx} = 4 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{2}{y}

At (1,2)(1, 2), the slope is 22=1\dfrac{2}{2} = 1.

4. (Core) Find the equation of the tangent line to x3+y3=9x^3 + y^3 = 9 at (1,2)(1, 2).

Solution

Check: 1+8=91 + 8 = 9. Differentiate:

3x2+3y2dydx=0⇒dydx=−x2y23x^2 + 3y^2\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x^2}{y^2}

At (1,2)(1, 2), the slope is −14-\dfrac{1}{4}, so the tangent line is

y−2=−14(x−1)y - 2 = -\frac{1}{4}(x - 1)

5. (Core) Find dydx\dfrac{dy}{dx} for xy+y2=6xy + y^2 = 6, and evaluate it at (1,2)(1, 2).

Solutiony+xdydx+2ydydx=0⇒dydx=−yx+2yy + x\frac{dy}{dx} + 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{y}{x + 2y}

Check (1,2)(1, 2): 2+4=62 + 4 = 6. Then dydx=−21+4=−25\dfrac{dy}{dx} = -\dfrac{2}{1 + 4} = -\dfrac{2}{5}.

6. (Core) Find dydx\dfrac{dy}{dx} for y+ln⁡y=xy + \ln y = x, and the slope at (1,1)(1, 1).

Solutiondydx+1ydydx=1⇒dydx(y+1y)=1⇒dydx=yy+1\frac{dy}{dx} + \frac{1}{y}\frac{dy}{dx} = 1 \quad\Rightarrow\quad \frac{dy}{dx}\left(\frac{y + 1}{y}\right) = 1 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{y}{y + 1}

Check (1,1)(1, 1): 1+ln⁡1=11 + \ln 1 = 1. The slope is 12\dfrac{1}{2}.

7. (Core) Consider the ellipse x2+4y2=8x^2 + 4y^2 = 8.

  • (a) Find the equation of the tangent line at (2,1)(2, 1).
  • (b) Find the points where the tangent line is horizontal.
Solution2x+8ydydx=0⇒dydx=−x4y2x + 8y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x}{4y}

(a) Check: 4+4=84 + 4 = 8. The slope at (2,1)(2, 1) is −24=−12-\dfrac{2}{4} = -\dfrac{1}{2}, so the tangent line is y−1=−12(x−2)y - 1 = -\dfrac{1}{2}(x - 2), or y=−12x+2y = -\dfrac{1}{2}x + 2.

(b) Horizontal when x=0x = 0 (and y≠0y \ne 0). Then 4y2=84y^2 = 8, so y=±2y = \pm\sqrt{2}. The points are (0,2)(0, \sqrt{2}) and (0,−2)(0, -\sqrt{2}).

8. (Challenge) Find all points on x2+xy+y2=12x^2 + xy + y^2 = 12 where the tangent line is horizontal.

Solution

As in Example 2, dydx=−2x+yx+2y\dfrac{dy}{dx} = -\dfrac{2x + y}{x + 2y}.

Horizontal when 2x+y=02x + y = 0, so y=−2xy = -2x. Substitute:

x2+x(−2x)+(−2x)2=12⇒3x2=12⇒x=±2x^2 + x(-2x) + (-2x)^2 = 12 \quad\Rightarrow\quad 3x^2 = 12 \quad\Rightarrow\quad x = \pm 2

The points are (2,−4)(2, -4) and (−2,4)(-2, 4). The denominators are 2−8=−62 - 8 = -6 and −2+8=6-2 + 8 = 6, both nonzero, so both tangents are horizontal.

9. (Challenge) Consider the curve ey=x2+ye^y = x^2 + y.

  • (a) Show that (1,0)(1, 0) is on the curve.
  • (b) Find dydx\dfrac{dy}{dx}.
  • (c) What happens to the tangent line at (1,0)(1, 0)?
Solution

(a) e0=1e^0 = 1 and 12+0=11^2 + 0 = 1, so yes.

(b)

eydydx=2x+dydx⇒dydx(ey−1)=2x⇒dydx=2xey−1e^y\frac{dy}{dx} = 2x + \frac{dy}{dx} \quad\Rightarrow\quad \frac{dy}{dx}(e^y - 1) = 2x \quad\Rightarrow\quad \frac{dy}{dx} = \frac{2x}{e^y - 1}

(c) At (1,0)(1, 0), the denominator is e0−1=0e^0 - 1 = 0 while the numerator is 2≠02 \ne 0. So the slope is undefined and the tangent line is vertical: it’s the line x=1x = 1.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site. All angles are in radians. Check that a point lies on its curve before using it. A fraction with both numerator and denominator zero does not by itself determine a tangent.

H1. (Foundations) Assuming yy depends on xx, differentiate y5y^5, x2yx^2y, cos⁡(2y)\cos(2y), and e3ye^{3y} with respect to xx. Identify the product-rule term that does not contain dy/dxdy/dx.

H2. (Foundations) Find the slope and tangent line to x2+y2=169x^2+y^2=169 at (5,−12)(5,-12). Verify the point and check perpendicularity with the radius.

H3. (Core) Find dy/dxdy/dx for x2+2xy+3y2=18x^2+2xy+3y^2=18 and evaluate it at (3,1)(3,1). Show how the product term differentiates.

H4. (Core) Find the tangent to x3+2y3=17x^3+2y^3=17 at (1,2)(1,2). Retain the chain-rule factors while solving for the slope.

H5. (Core) For xsin⁡y+y=π/2x\sin y+y=\pi/2, find dy/dxdy/dx and the tangent at (0,π/2)(0,\pi/2). Check the derivative denominator at that point.

H6. (Core) Find dy/dxdy/dx for ey+xy=x+1e^y+xy=x+1 and the tangent at (0,0)(0,0). Explain why the derivative of the right side is not zero.

H7. (Challenge) Find all horizontal- and vertical-tangent points of x2−xy+2y2=7x^2-xy+2y^2=7. Solve with the original equation and check the nonzero part of each derivative fraction.

H8. (Challenge) Find every point on x2+xy+y2=3x^2+xy+y^2=3 where the tangent is parallel to y=xy=x. Give both tangent equations and verify each point.

H9. (Challenge) Find every pair (k,C)(k,C) such that x2+kxy+y2=Cx^2+kxy+y^2=C has tangent line y−2=−(x−1)y-2=-(x-1) at (1,2)(1,2). Use contact and slope as separate conditions, and identify the resulting local branch explicitly as a check.

H10. (Challenge) For y2=x2y^2=x^2, implicit differentiation gives dy/dx=x/ydy/dx=x/y away from suitable excluded points. Analyse the curve at (0,0)(0,0) by factoring its equation. Does the 0/00/0 derivative expression prove a horizontal or vertical tangent? Describe the local branches and their tangent slopes.