← Back to learning objective

Implicit differentiation of a trigonometric-algebraic equation

Consider the equation cos⁡(x−y)=xy2\cos(x - y) = xy^2 which defines yy implicitly as a function of xx. Differentiate both sides of the equation with respect to xx, and solve for dydx\dfrac{dy}{dx}.

Hint

Apply the chain rule to cos⁡(x−y)\cos(x-y), remembering that yy depends on xx so ddx(x−y)=1−dydx\frac{d}{dx}(x-y) = 1 - \frac{dy}{dx}. On the right side, use the product rule on xy2xy^2, treating y2y^2 with the chain rule. Then collect all terms containing dydx\frac{dy}{dx} on one side and factor.

Step-by-step solution

Differentiate the left side using the chain rule: ddx[cos⁡(x−y)]=−sin⁡(x−y)⋅(1−y′)\frac{d}{dx}[\cos(x-y)] = -\sin(x-y)\cdot(1 - y'), since ddx(x−y)=1−y′\frac{d}{dx}(x-y) = 1 - y'. Differentiate the right side using the product rule: ddx[xy2]=y2+x⋅2yy′=y2+2xyy′\frac{d}{dx}[xy^2] = y^2 + x\cdot 2y y' = y^2 + 2xy y'. Setting these equal gives −sin⁡(x−y)(1−y′)=y2+2xyy′-\sin(x-y)(1-y') = y^2 + 2xyy'.

Expand the left side: −sin⁡(x−y)+sin⁡(x−y)y′=y2+2xyy′-\sin(x-y) + \sin(x-y)y' = y^2 + 2xyy'. Move all y′y' terms to one side: sin⁡(x−y)y′−2xyy′=y2+sin⁡(x−y)\sin(x-y)y' - 2xyy' = y^2 + \sin(x-y). Factor out y′y' and divide: y′=y2+sin⁡(x−y)sin⁡(x−y)−2xyy' = \dfrac{y^2 + \sin(x-y)}{\sin(x-y) - 2xy}.

Rule identification for the right side of the equation

Hint
Step-by-step solution

The right side of the equation was x times y squared, a product of two functions of x. To differentiate it, the product rule was applied, giving y squared plus x times two y times dy dx. The chain rule was also needed inside this step to differentiate y squared with respect to x. So the primary rule governing that term's structure is the product rule.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap