Calculus Examples

Solve the Differential Equation
(sin(y)+x)dx+(xcos(y))dy=0(sin(y)+x)dx+(xcos(y))dy=0
Step 1
Find MyMy where M(x,y)=sin(y)+xM(x,y)=sin(y)+x.
Tap for more steps...
Step 1.1
Differentiate MM with respect to yy.
My=ddy[sin(y)+x]My=ddy[sin(y)+x]
Step 1.2
By the Sum Rule, the derivative of sin(y)+xsin(y)+x with respect to yy is ddy[sin(y)]+ddy[x]ddy[sin(y)]+ddy[x].
My=ddy[sin(y)]+ddy[x]My=ddy[sin(y)]+ddy[x]
Step 1.3
The derivative of sin(y)sin(y) with respect to yy is cos(y)cos(y).
My=cos(y)+ddy[x]My=cos(y)+ddy[x]
Step 1.4
Differentiate using the Constant Rule.
Tap for more steps...
Step 1.4.1
Since xx is constant with respect to yy, the derivative of xx with respect to yy is 00.
My=cos(y)+0My=cos(y)+0
Step 1.4.2
Add cos(y)cos(y) and 00.
My=cos(y)My=cos(y)
My=cos(y)My=cos(y)
My=cos(y)My=cos(y)
Step 2
Find NxNx where N(x,y)=xcos(y)N(x,y)=xcos(y).
Tap for more steps...
Step 2.1
Differentiate NN with respect to xx.
Nx=ddx[xcos(y)]Nx=ddx[xcos(y)]
Step 2.2
Since cos(y)cos(y) is constant with respect to xx, the derivative of xcos(y)xcos(y) with respect to xx is cos(y)ddx[x]cos(y)ddx[x].
Nx=cos(y)ddx[x]Nx=cos(y)ddx[x]
Step 2.3
Differentiate using the Power Rule which states that ddx[xn]ddx[xn] is nxn-1nxn1 where n=1n=1.
Nx=cos(y)1Nx=cos(y)1
Step 2.4
Multiply cos(y)cos(y) by 11.
Nx=cos(y)Nx=cos(y)
Nx=cos(y)Nx=cos(y)
Step 3
Check that My=NxMy=Nx.
Tap for more steps...
Step 3.1
Substitute cos(y)cos(y) for MyMy and cos(y)cos(y) for NxNx.
cos(y)=cos(y)cos(y)=cos(y)
Step 3.2
Since the two sides have been shown to be equivalent, the equation is an identity.
cos(y)=cos(y)cos(y)=cos(y) is an identity.
cos(y)=cos(y)cos(y)=cos(y) is an identity.
Step 4
Set f(x,y)f(x,y) equal to the integral of N(x,y)N(x,y).
f(x,y)=xcos(y)dyf(x,y)=xcos(y)dy
Step 5
Integrate N(x,y)=xcos(y)N(x,y)=xcos(y) to find f(x,y)f(x,y).
Tap for more steps...
Step 5.1
Since xx is constant with respect to yy, move xx out of the integral.
f(x,y)=xcos(y)dyf(x,y)=xcos(y)dy
Step 5.2
The integral of cos(y)cos(y) with respect to yy is sin(y)sin(y).
f(x,y)=x(sin(y)+C)f(x,y)=x(sin(y)+C)
Step 5.3
Simplify.
f(x,y)=xsin(y)+Cf(x,y)=xsin(y)+C
f(x,y)=xsin(y)+Cf(x,y)=xsin(y)+C
Step 6
Since the integral of g(x)g(x) will contain an integration constant, we can replace CC with g(x)g(x).
f(x,y)=xsin(y)+g(x)f(x,y)=xsin(y)+g(x)
Step 7
Set fx=M(x,y)fx=M(x,y).
fx=sin(y)+xfx=sin(y)+x
Step 8
Find fxfx.
Tap for more steps...
Step 8.1
Differentiate ff with respect to xx.
ddx[xsin(y)+g(x)]=sin(y)+xddx[xsin(y)+g(x)]=sin(y)+x
Step 8.2
By the Sum Rule, the derivative of xsin(y)+g(x)xsin(y)+g(x) with respect to xx is ddx[xsin(y)]+ddx[g(x)]ddx[xsin(y)]+ddx[g(x)].
ddx[xsin(y)]+ddx[g(x)]=sin(y)+xddx[xsin(y)]+ddx[g(x)]=sin(y)+x
Step 8.3
Evaluate ddx[xsin(y)]ddx[xsin(y)].
Tap for more steps...
Step 8.3.1
Since sin(y)sin(y) is constant with respect to xx, the derivative of xsin(y)xsin(y) with respect to xx is sin(y)ddx[x]sin(y)ddx[x].
sin(y)ddx[x]+ddx[g(x)]=sin(y)+xsin(y)ddx[x]+ddx[g(x)]=sin(y)+x
Step 8.3.2
Differentiate using the Power Rule which states that ddx[xn]ddx[xn] is nxn-1nxn1 where n=1n=1.
sin(y)1+ddx[g(x)]=sin(y)+xsin(y)1+ddx[g(x)]=sin(y)+x
Step 8.3.3
Multiply sin(y)sin(y) by 11.
sin(y)+ddx[g(x)]=sin(y)+xsin(y)+ddx[g(x)]=sin(y)+x
sin(y)+ddx[g(x)]=sin(y)+xsin(y)+ddx[g(x)]=sin(y)+x
Step 8.4
Differentiate using the function rule which states that the derivative of g(x) is dgdx.
sin(y)+dgdx=sin(y)+x
Step 8.5
Reorder terms.
dgdx+sin(y)=sin(y)+x
dgdx+sin(y)=sin(y)+x
Step 9
Solve for dgdx.
Tap for more steps...
Step 9.1
Move all terms not containing dgdx to the right side of the equation.
Tap for more steps...
Step 9.1.1
Subtract sin(y) from both sides of the equation.
dgdx=sin(y)+x-sin(y)
Step 9.1.2
Combine the opposite terms in sin(y)+x-sin(y).
Tap for more steps...
Step 9.1.2.1
Subtract sin(y) from sin(y).
dgdx=x+0
Step 9.1.2.2
Add x and 0.
dgdx=x
dgdx=x
dgdx=x
dgdx=x
Step 10
Find the antiderivative of x to find g(x).
Tap for more steps...
Step 10.1
Integrate both sides of dgdx=x.
dgdxdx=xdx
Step 10.2
Evaluate dgdxdx.
g(x)=xdx
Step 10.3
By the Power Rule, the integral of x with respect to x is 12x2.
g(x)=12x2+C
g(x)=12x2+C
Step 11
Substitute for g(x) in f(x,y)=xsin(y)+g(x).
f(x,y)=xsin(y)+12x2+C
Step 12
Combine 12 and x2.
f(x,y)=xsin(y)+x22+C
Enter YOUR Problem
using Amazon.Auth.AccessControlPolicy;
Mathway requires javascript and a modern browser.
 [x2  12  π  xdx ] 
AmazonPay