The rule
- dy/dx = −Fx / Fy
Fx and Fy are the partial derivatives of F at the point (x, y) on the curve. The curve is a level curve F(x, y) = c, and the rule gives its slope without solving for y. The rule is a theorem.
It comes from the multivariable chain rule. Along the curve F(x, y(x)) = c is constant, so its derivative is 0: Fx + Fy · dy/dx = 0.
Holds when F has continuous partial derivatives near the point, F(a, b) = c and Fy(a, b) ≠ 0. The implicit function theorem then says that near x = a there is exactly one differentiable function y(x) with y(a) = b and F(x, y(x)) = c, and that its derivative is −Fx/Fy. Where Fy = 0 the rule has no value, and the curve may have a vertical tangent or cross itself.
Worked example: x² + 4y² = 25 at (3, 2)
- On the curve: 9 + 16 = 25.
- Fx = 2x = 6 and Fy = 8y = 16 at (3, 2).
- dy/dx = −6/16 = −3/8.
To check, solve for y near this point: y = ½√(25 − x²), so y′ = −x / (2√(25 − x²)) = −3 / (2 · 4) = −3/8. The tangent line is y − 2 = −(3/8)(x − 3).
Where ∂F/∂y = 0
On the same ellipse, at (5, 0): Fy = 8 · 0 = 0 and Fx = 10. The tangent is vertical, and no function y(x) passes through (5, 0). The roles of the letters can be swapped: Fx ≠ 0 gives x as a function of y, with dx/dy = −Fy/Fx = 0 there.
For the circle x² + y² = 25 the rule gives dy/dx = −x/y, which is not defined at y = 0.
Common mistakes
- Leaving out the minus sign. At (3, 2) that gives +3/8.
- Inverting the quotient. −Fy/Fx is dx/dy, the slope seen from the other axis.
- Differentiating y as a constant. Fx holds y fixed, and the dependence of y on x is the second term, Fy · dy/dx.
- Forgetting the condition. The rule needs Fy ≠ 0 at the point.
Related: gradient, tangent plane to a level surface.