Calculus Examples

Solve the Differential Equation (ycos(x)+2xe^y)dx+(sin(x)+x^2e^y-1)dy=0
(ycos(x)+2xey)dx+(sin(x)+x2ey-1)dy=0
Step 1
Find My where M(x,y)=ycos(x)+2xey.
Tap for more steps...
Step 1.1
Differentiate M with respect to y.
My=ddy[ycos(x)+2xey]
Step 1.2
By the Sum Rule, the derivative of ycos(x)+2xey with respect to y is ddy[ycos(x)]+ddy[2xey].
My=ddy[ycos(x)]+ddy[2xey]
Step 1.3
Evaluate ddy[ycos(x)].
Tap for more steps...
Step 1.3.1
Since cos(x) is constant with respect to y, the derivative of ycos(x) with respect to y is cos(x)ddy[y].
My=cos(x)ddy[y]+ddy[2xey]
Step 1.3.2
Differentiate using the Power Rule which states that ddy[yn] is nyn-1 where n=1.
My=cos(x)1+ddy[2xey]
Step 1.3.3
Multiply cos(x) by 1.
My=cos(x)+ddy[2xey]
My=cos(x)+ddy[2xey]
Step 1.4
Evaluate ddy[2xey].
Tap for more steps...
Step 1.4.1
Since 2x is constant with respect to y, the derivative of 2xey with respect to y is 2xddy[ey].
My=cos(x)+2xddy[ey]
Step 1.4.2
Differentiate using the Exponential Rule which states that ddy[ay] is ayln(a) where a=e.
My=cos(x)+2xey
My=cos(x)+2xey
Step 1.5
Simplify.
Tap for more steps...
Step 1.5.1
Reorder terms.
My=2eyx+cos(x)
Step 1.5.2
Reorder factors in 2eyx+cos(x).
My=2xey+cos(x)
My=2xey+cos(x)
My=2xey+cos(x)
Step 2
Find Nx where N(x,y)=sin(x)+x2ey-1.
Tap for more steps...
Step 2.1
Differentiate N with respect to x.
Nx=ddx[sin(x)+x2ey-1]
Step 2.2
By the Sum Rule, the derivative of sin(x)+x2ey-1 with respect to x is ddx[sin(x)]+ddx[x2ey]+ddx[-1].
Nx=ddx[sin(x)]+ddx[x2ey]+ddx[-1]
Step 2.3
The derivative of sin(x) with respect to x is cos(x).
Nx=cos(x)+ddx[x2ey]+ddx[-1]
Step 2.4
Evaluate ddx[x2ey].
Tap for more steps...
Step 2.4.1
Since ey is constant with respect to x, the derivative of x2ey with respect to x is eyddx[x2].
Nx=cos(x)+eyddx[x2]+ddx[-1]
Step 2.4.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=2.
Nx=cos(x)+ey(2x)+ddx[-1]
Step 2.4.3
Move 2 to the left of ey.
Nx=cos(x)+2eyx+ddx[-1]
Nx=cos(x)+2eyx+ddx[-1]
Step 2.5
Since -1 is constant with respect to x, the derivative of -1 with respect to x is 0.
Nx=cos(x)+2eyx+0
Step 2.6
Simplify.
Tap for more steps...
Step 2.6.1
Add cos(x)+2eyx and 0.
Nx=cos(x)+2eyx
Step 2.6.2
Reorder terms.
Nx=2eyx+cos(x)
Step 2.6.3
Reorder factors in 2eyx+cos(x).
Nx=2xey+cos(x)
Nx=2xey+cos(x)
Nx=2xey+cos(x)
Step 3
Check that My=Nx.
Tap for more steps...
Step 3.1
Substitute 2xey+cos(x) for My and 2xey+cos(x) for Nx.
2xey+cos(x)=2xey+cos(x)
Step 3.2
Since the two sides have been shown to be equivalent, the equation is an identity.
2xey+cos(x)=2xey+cos(x) is an identity.
2xey+cos(x)=2xey+cos(x) is an identity.
Step 4
Set f(x,y) equal to the integral of N(x,y).
f(x,y)=sin(x)+x2ey-1dy
Step 5
Integrate N(x,y)=sin(x)+x2ey-1 to find f(x,y).
Tap for more steps...
Step 5.1
Split the single integral into multiple integrals.
f(x,y)=sin(x)dy+x2eydy+-1dy
Step 5.2
Apply the constant rule.
f(x,y)=sin(x)y+C+x2eydy+-1dy
Step 5.3
Since x2 is constant with respect to y, move x2 out of the integral.
f(x,y)=sin(x)y+C+x2eydy+-1dy
Step 5.4
The integral of ey with respect to y is ey.
f(x,y)=sin(x)y+C+x2(ey+C)+-1dy
Step 5.5
Apply the constant rule.
f(x,y)=sin(x)y+C+x2(ey+C)-y+C
Step 5.6
Simplify.
f(x,y)=sin(x)y+x2ey-y+C
f(x,y)=sin(x)y+x2ey-y+C
Step 6
Since the integral of g(x) will contain an integration constant, we can replace C with g(x).
f(x,y)=sin(x)y+x2ey-y+g(x)
Step 7
Set fx=M(x,y).
fx=ycos(x)+2xey
Step 8
Find fx.
Tap for more steps...
Step 8.1
Differentiate f with respect to x.
ddx[sin(x)y+x2ey-y+g(x)]=ycos(x)+2xey
Step 8.2
By the Sum Rule, the derivative of sin(x)y+x2ey-y+g(x) with respect to x is ddx[sin(x)y]+ddx[x2ey]+ddx[-y]+ddx[g(x)].
ddx[sin(x)y]+ddx[x2ey]+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
Step 8.3
Evaluate ddx[sin(x)y].
Tap for more steps...
Step 8.3.1
Since y is constant with respect to x, the derivative of sin(x)y with respect to x is yddx[sin(x)].
yddx[sin(x)]+ddx[x2ey]+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
Step 8.3.2
The derivative of sin(x) with respect to x is cos(x).
ycos(x)+ddx[x2ey]+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
ycos(x)+ddx[x2ey]+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
Step 8.4
Evaluate ddx[x2ey].
Tap for more steps...
Step 8.4.1
Since ey is constant with respect to x, the derivative of x2ey with respect to x is eyddx[x2].
ycos(x)+eyddx[x2]+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
Step 8.4.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=2.
ycos(x)+ey(2x)+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
Step 8.4.3
Move 2 to the left of ey.
ycos(x)+2eyx+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
ycos(x)+2eyx+ddx[-y]+ddx[g(x)]=ycos(x)+2xey
Step 8.5
Since -y is constant with respect to x, the derivative of -y with respect to x is 0.
ycos(x)+2eyx+0+ddx[g(x)]=ycos(x)+2xey
Step 8.6
Differentiate using the function rule which states that the derivative of g(x) is dgdx.
ycos(x)+2eyx+0+dgdx=ycos(x)+2xey
Step 8.7
Simplify.
Tap for more steps...
Step 8.7.1
Add ycos(x)+2eyx and 0.
ycos(x)+2eyx+dgdx=ycos(x)+2xey
Step 8.7.2
Reorder terms.
dgdx+ycos(x)+2eyx=ycos(x)+2xey
Step 8.7.3
Reorder factors in dgdx+ycos(x)+2eyx.
dgdx+ycos(x)+2xey=ycos(x)+2xey
dgdx+ycos(x)+2xey=ycos(x)+2xey
dgdx+ycos(x)+2xey=ycos(x)+2xey
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 ycos(x) from both sides of the equation.
dgdx+2xey=ycos(x)+2xey-ycos(x)
Step 9.1.2
Subtract 2xey from both sides of the equation.
dgdx=ycos(x)+2xey-ycos(x)-2xey
Step 9.1.3
Combine the opposite terms in ycos(x)+2xey-ycos(x)-2xey.
Tap for more steps...
Step 9.1.3.1
Subtract ycos(x) from ycos(x).
dgdx=2xey+0-2xey
Step 9.1.3.2
Add 2xey and 0.
dgdx=2xey-2xey
Step 9.1.3.3
Subtract 2xey from 2xey.
dgdx=0
dgdx=0
dgdx=0
dgdx=0
Step 10
Find the antiderivative of 0 to find g(x).
Tap for more steps...
Step 10.1
Integrate both sides of dgdx=0.
dgdxdx=0dx
Step 10.2
Evaluate dgdxdx.
g(x)=0dx
Step 10.3
The integral of 0 with respect to x is 0.
g(x)=0+C
Step 10.4
Add 0 and C.
g(x)=C
g(x)=C
Step 11
Substitute for g(x) in f(x,y)=sin(x)y+x2ey-y+g(x).
f(x,y)=sin(x)y+x2ey-y+C
Step 12
Reorder factors in f(x,y)=sin(x)y+x2ey-y+C.
f(x,y)=ysin(x)+x2ey-y+C
 [x2  12  π  xdx ]