← Back to learning objective

Implicit differentiation of a logarithmic equation

Consider the equation ln⁡(x+y)=x2−y\ln(x + y) = x^2 - y which defines yy implicitly as a function of xx. Find dydx\dfrac{dy}{dx}.

Hint

Differentiate both sides with respect to xx. On the left, use the chain rule: ddx[ln⁡(x+y)]=1x+y⋅(1+dydx)\dfrac{d}{dx}[\ln(x+y)] = \dfrac{1}{x+y}\cdot\left(1 + \dfrac{dy}{dx}\right). On the right, remember ddx[y]=dydx\dfrac{d}{dx}[y] = \dfrac{dy}{dx}. Then collect all terms containing dydx\dfrac{dy}{dx} on one side and factor.

Step-by-step solution

Differentiate both sides with respect to xx. The left side requires the chain rule since ln⁡(x+y)\ln(x+y) is a composite function: 1x+y(1+dydx)=2x−dydx.\frac{1}{x+y}\left(1 + \frac{dy}{dx}\right) = 2x - \frac{dy}{dx}. Here the inner function is x+yx+y and ddx[y]=dydx\frac{d}{dx}[y] = \frac{dy}{dx} by the implicit differentiation rule.

Expand the left side to get 1x+y+1x+ydydx=2x−dydx\dfrac{1}{x+y} + \dfrac{1}{x+y}\dfrac{dy}{dx} = 2x - \dfrac{dy}{dx}. Move all dydx\dfrac{dy}{dx} terms to one side: 1x+ydydx+dydx=2x−1x+y\dfrac{1}{x+y}\dfrac{dy}{dx} + \dfrac{dy}{dx} = 2x - \dfrac{1}{x+y}. Factor out dydx\dfrac{dy}{dx}: dydx(1x+y+1)=2x−1x+y\dfrac{dy}{dx}\left(\dfrac{1}{x+y}+1\right) = 2x - \dfrac{1}{x+y}. Simplify the left side by combining fractions: dydx(1+x+yx+y)=2x−1x+y\dfrac{dy}{dx}\left(\dfrac{1+x+y}{x+y}\right) = 2x - \dfrac{1}{x+y}. Multiply both sides by (x+y)(x+y): dydx(1+x+y)=2x(x+y)−1.\frac{dy}{dx}(1+x+y) = 2x(x+y) - 1. Therefore: dydx=2x(x+y)−1x+y+1.\frac{dy}{dx} = \frac{2x(x+y) - 1}{x+y+1}.

Identifying the rule applied to the y term on the right side

Hint
Step-by-step solution

The answer is the chain rule. Since yy is treated as a function of xx, we apply the chain rule: ddx[y]=dydx\frac{d}{dx}[y] = \frac{dy}{dx}. This is the core mechanism of implicit differentiation—applying the chain rule to expressions involving yy because yy is implicitly a function of xx.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap