How to solve this is implicit differentiation dy/dx? xsin(y)+cos(xy)=x2

1 Answer

dydx=2xsin(y)+ysin(xy)xcos(y)xsin(xy)

Explanation:

Given: xsin(y)+cos(xy)=x2

Differentiate all of the terms with respect to x:

d(xsin(y))dx+d(cos(xy))dx=d(x2)dx [1]

For the first term, we must use the product rule,

d(gh)dx=dgdx(h)+(g)dhdx,

where g=x, h=sin(y), dgdx=1, and dhdx=cos(y)dydx:

d(xsin(y))dx=(1)sin(y)+(x)cos(y)dydx

Substitute the above into equation [1]:

sin(y)+(x)cos(y)dydx+d(cos(xy))dx=d(x2)dx [1.1]

For the second term, we must use the chain rule:

d(cos(xy))dx=sin(xy)d(xy)dx

Then the product rule:

d(cos(xy))dx=sin(xy)(y+xdydx)

Substitute the above equation into equation [1.1]:

sin(y)+(x)cos(y)dydxsin(xy)(y+xdydx)=d(x2)dx [1.1]

Use the power rule for the last term:

sin(y)+(x)cos(y)dydxsin(xy)(y+xdydx)=2x

Move all of the terms that do not contain dydx to the right side:

xcos(y)dydxxsin(xy)dydx=2xsin(y)+ysin(xy)

Factor out dydx from the left side:

(xcos(y)xsin(xy))dydx=2xsin(y)+ysin(xy)

Divide both sides by the leading coefficient:

dydx=2xsin(y)+ysin(xy)xcos(y)xsin(xy)