← Back to learning objective

Implicit differentiation to find dy/dx

Consider the equation ey=x2+y2e^y = x^2 + y^2, which defines yy implicitly as a function of xx.

Differentiate both sides of ey=x2+y2e^y = x^2 + y^2 with respect to xx, treating yy as a function of xx. Solve for dydx\frac{dy}{dx} in terms of xx and yy.

Hint

Apply ddx\frac{d}{dx} to each side. On the left, use the chain rule: ddx[ey]=ey⋅dydx\frac{d}{dx}[e^y] = e^y \cdot \frac{dy}{dx}. On the right, differentiate x2x^2 and y2y^2 separately, remembering ddx[y2]=2ydydx\frac{d}{dx}[y^2] = 2y\frac{dy}{dx}. Then collect all dydx\frac{dy}{dx} terms on one side and factor.

Step-by-step solution

Differentiating both sides with respect to xx gives ey⋅dydx=2x+2y⋅dydxe^y \cdot \frac{dy}{dx} = 2x + 2y \cdot \frac{dy}{dx}, using the chain rule on the left and on the y2y^2 term on the right. Now collect the terms containing dydx\frac{dy}{dx} on one side: eydydx−2ydydx=2xe^y \frac{dy}{dx} - 2y \frac{dy}{dx} = 2x.

Factor out dydx\frac{dy}{dx} to get dydx(ey−2y)=2x\frac{dy}{dx}(e^y - 2y) = 2x, and then divide both sides by (ey−2y)(e^y - 2y) to isolate the derivative. This yields dydx=2xey−2y\frac{dy}{dx} = \dfrac{2x}{e^y - 2y}.

Second derivative via implicit differentiation

Using your result from part (a), find d2ydx2\dfrac{d^2y}{dx^2} in terms of xx, yy, and dydx\frac{dy}{dx} (you may substitute the expression for dydx\frac{dy}{dx} found in part (a) if you wish, but it is not required).

Hint

Differentiate dydx=2xey−2y\frac{dy}{dx} = \frac{2x}{e^y - 2y} using the quotient rule, remembering that the denominator depends on xx through yy, so use the chain rule when differentiating ey−2ye^y - 2y with respect to xx.

Step-by-step solution

Starting from dydx=2xey−2y\frac{dy}{dx} = \dfrac{2x}{e^y - 2y}, apply the quotient rule with numerator u=2xu = 2x and denominator v=ey−2yv = e^y - 2y. We have u′=2u' = 2, and v′=eydydx−2dydx=(ey−2)dydxv' = e^y\frac{dy}{dx} - 2\frac{dy}{dx} = (e^y - 2)\frac{dy}{dx}, using the chain rule since yy depends on xx.

The quotient rule gives d2ydx2=2(ey−2y)−2x(ey−2)dydx(ey−2y)2\dfrac{d^2y}{dx^2} = \dfrac{2(e^y - 2y) - 2x(e^y - 2)\frac{dy}{dx}}{(e^y - 2y)^2}. To simplify, substitute dydx=2xey−2y\frac{dy}{dx} = \dfrac{2x}{e^y - 2y} from part (a) into the numerator: 2(ey−2y)−2x(ey−2)⋅2xey−2y=2(ey−2y)−4x2(ey−2)ey−2y2(e^y - 2y) - 2x(e^y - 2)\cdot\dfrac{2x}{e^y - 2y} = 2(e^y - 2y) - \dfrac{4x^2(e^y - 2)}{e^y - 2y}. Combining over a common denominator gives 2(ey−2y)2−4x2(ey−2)ey−2y\dfrac{2(e^y - 2y)^2 - 4x^2(e^y - 2)}{e^y - 2y}. Finally, dividing by the denominator squared: d2ydx2=2(ey−2y)2−4x2(ey−2)(ey−2y)3\dfrac{d^2y}{dx^2} = \dfrac{2(e^y - 2y)^2 - 4x^2(e^y - 2)}{(e^y - 2y)^3}.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap