How Implicit Differentiation Works
Plenty of important curves refuse to be written as y equals a formula in x: a circle, an ellipse, or a relation like x² + xy + y² = 7 mixes the variables so tightly that isolating y is messy or impossible. Implicit differentiation is the technique built for exactly those equations. Instead of solving for y first, it differentiates the equation as it stands, treating y as a function of x hiding inside the terms — so differentiating y² gives 2y·dy/dx by the chain rule. This calculator carries out the standard shortcut for you: it rewrites your equation as F(x, y) = 0, computes both partial derivatives, and returns dy/dx with every step displayed.
The Shortcut Formula, Symbol by Symbol
F(x, y) is the single expression you get by moving every term of the equation to the left-hand side, so the equation reads F(x, y) = 0 — for the circle, F = x² + y² − 25. Fx is the partial derivative of F with respect to x, computed while pretending y is a constant. Fy is the partial derivative with respect to y, pretending x is constant instead. dy/dx is the ordinary slope of the curve — the derivative you actually want. The formula is dy/dx = −Fx/Fy, and the minus sign is not decoration: it appears when the Fy · dy/dx term is moved across the equals sign while solving the differentiated equation, and dropping it reverses every slope you compute.
How to Use This Calculator
- Rewrite your equation with every term on the left, then type that left-hand side into the “Equation F(x, y) = 0 — enter the left side” field: for x² + y² = 25, enter x^2 + y^2 - 25.
- Use ^ for powers and ordinary x and y variables, exactly as the pre-filled example shows.
- Press Find dy/dx: the calculator differentiates F once treating y as a constant, and once treating x as a constant.
- Read the output: the symbolic dy/dx = −(Fx)/(Fy) up top, then the three working steps listing Fx, Fy, and the division. Substitute a point's coordinates into the result if you need the slope at one specific point.
Worked Example 1: Slope of a Circle at (3, 4)
For x² + y² = 25, write F = x² + y² − 25. Differentiate partially: Fx = 2x, because the y² and −25 terms contribute nothing when y is held constant, and Fy = 2y by symmetry. The formula gives dy/dx = −2x/2y = −x/y. Before substituting any point, confirm it lies on the curve: 3² + 4² = 9 + 16 = 25, so (3, 4) genuinely is a point of the circle. Its slope is therefore −3/4: the tangent there falls gently as x increases. The direct long method agrees — differentiating the original equation term by term gives 2x + 2y·dy/dx = 0, which rearranges to the same dy/dx = −x/y. Sanity checks at other points also behave: at the top of the circle, (0, 5), the slope is 0, a horizontal tangent exactly as the picture suggests.
Worked Example 2: A Curve With an xy Term
Consider x² + xy + y² = 7, a tilted ellipse. Move everything left: F = x² + xy + y² − 7. For Fx, hold y constant: x² gives 2x, the product xy gives just y (y behaves like a coefficient), and y² gives 0, so Fx = 2x + y. For Fy, hold x constant: x² gives 0, xy gives x, and y² gives 2y, so Fy = x + 2y. Hence dy/dx = −(2x + y)/(x + 2y). The point (1, 2) lies on this curve because 1 + 2 + 4 = 7, and substituting it gives −(2 + 2)/(1 + 4) = −4/5. Differentiating the long way confirms it: 2x + y + x·dy/dx + 2y·dy/dx = 0 collects into dy/dx · (x + 2y) = −(2x + y), the identical result.
When It Fails
The formula needs Fy ≠ 0. At points where Fy = 0 the tangent is vertical and dy/dx is undefined. For ordinary single-variable derivatives, see our derivative calculator.
Where Implicit Differentiation Earns Its Keep
Any tangent-line question about a circle, ellipse, or hyperbola needs it, because those curves are not functions at all. Related-rates problems depend on it: a ladder sliding down a wall and a balloon being inflated both link two changing quantities through one equation, and differentiating that equation implicitly with respect to time is the whole method. Economists use it on budget constraints and production curves, where the slope of an indifference curve — the marginal rate of substitution — comes straight from −Fx/Fy.
Three Mistakes That Ruin Implicit Derivatives
First, forgetting the chain rule in the long method: differentiating y² with respect to x gives 2y·dy/dx, not 2y, because y itself depends on x. Second, dropping the minus sign in −Fx/Fy, which flips the sign of every slope and turns rising tangents into falling ones. Third, substituting a point that is not actually on the curve — or one where Fy = 0 — and trusting the number that comes out. Always verify the point satisfies the original equation first.