Enter a problem...
Calculus Examples
(ycos(x)+2xey)dx+(sin(x)+x2ey-1)dy=0
Step 1
Step 1.1
Differentiate M with respect to y.
∂M∂y=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].
∂M∂y=ddy[ycos(x)]+ddy[2xey]
Step 1.3
Evaluate ddy[ycos(x)].
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].
∂M∂y=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.
∂M∂y=cos(x)⋅1+ddy[2xey]
Step 1.3.3
Multiply cos(x) by 1.
∂M∂y=cos(x)+ddy[2xey]
∂M∂y=cos(x)+ddy[2xey]
Step 1.4
Evaluate ddy[2xey].
Step 1.4.1
Since 2x is constant with respect to y, the derivative of 2xey with respect to y is 2xddy[ey].
∂M∂y=cos(x)+2xddy[ey]
Step 1.4.2
Differentiate using the Exponential Rule which states that ddy[ay] is ayln(a) where a=e.
∂M∂y=cos(x)+2xey
∂M∂y=cos(x)+2xey
Step 1.5
Simplify.
Step 1.5.1
Reorder terms.
∂M∂y=2eyx+cos(x)
Step 1.5.2
Reorder factors in 2eyx+cos(x).
∂M∂y=2xey+cos(x)
∂M∂y=2xey+cos(x)
∂M∂y=2xey+cos(x)
Step 2
Step 2.1
Differentiate N with respect to x.
∂N∂x=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].
∂N∂x=ddx[sin(x)]+ddx[x2ey]+ddx[-1]
Step 2.3
The derivative of sin(x) with respect to x is cos(x).
∂N∂x=cos(x)+ddx[x2ey]+ddx[-1]
Step 2.4
Evaluate ddx[x2ey].
Step 2.4.1
Since ey is constant with respect to x, the derivative of x2ey with respect to x is eyddx[x2].
∂N∂x=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.
∂N∂x=cos(x)+ey(2x)+ddx[-1]
Step 2.4.3
Move 2 to the left of ey.
∂N∂x=cos(x)+2eyx+ddx[-1]
∂N∂x=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.
∂N∂x=cos(x)+2eyx+0
Step 2.6
Simplify.
Step 2.6.1
Add cos(x)+2eyx and 0.
∂N∂x=cos(x)+2eyx
Step 2.6.2
Reorder terms.
∂N∂x=2eyx+cos(x)
Step 2.6.3
Reorder factors in 2eyx+cos(x).
∂N∂x=2xey+cos(x)
∂N∂x=2xey+cos(x)
∂N∂x=2xey+cos(x)
Step 3
Step 3.1
Substitute 2xey+cos(x) for ∂M∂y and 2xey+cos(x) for ∂N∂x.
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
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+x2∫eydy+∫-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 ∂f∂x=M(x,y).
∂f∂x=ycos(x)+2xey
Step 8
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].
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].
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.
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
Step 9.1
Move all terms not containing dgdx to the right side of the equation.
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.
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
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