Calculus Examples
(sin(y)+x)dx+(xcos(y))dy=0(sin(y)+x)dx+(xcos(y))dy=0
Step 1
Step 1.1
Differentiate MM with respect to yy.
∂M∂y=ddy[sin(y)+x]∂M∂y=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].
∂M∂y=ddy[sin(y)]+ddy[x]∂M∂y=ddy[sin(y)]+ddy[x]
Step 1.3
The derivative of sin(y)sin(y) with respect to yy is cos(y)cos(y).
∂M∂y=cos(y)+ddy[x]∂M∂y=cos(y)+ddy[x]
Step 1.4
Differentiate using the Constant Rule.
Step 1.4.1
Since xx is constant with respect to yy, the derivative of xx with respect to yy is 00.
∂M∂y=cos(y)+0∂M∂y=cos(y)+0
Step 1.4.2
Add cos(y)cos(y) and 00.
∂M∂y=cos(y)∂M∂y=cos(y)
∂M∂y=cos(y)∂M∂y=cos(y)
∂M∂y=cos(y)∂M∂y=cos(y)
Step 2
Step 2.1
Differentiate NN with respect to xx.
∂N∂x=ddx[xcos(y)]∂N∂x=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].
∂N∂x=cos(y)ddx[x]∂N∂x=cos(y)ddx[x]
Step 2.3
Differentiate using the Power Rule which states that ddx[xn]ddx[xn] is nxn-1nxn−1 where n=1n=1.
∂N∂x=cos(y)⋅1∂N∂x=cos(y)⋅1
Step 2.4
Multiply cos(y)cos(y) by 11.
∂N∂x=cos(y)∂N∂x=cos(y)
∂N∂x=cos(y)∂N∂x=cos(y)
Step 3
Step 3.1
Substitute cos(y)cos(y) for ∂M∂y∂M∂y and cos(y)cos(y) for ∂N∂x∂N∂x.
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
Step 5.1
Since xx is constant with respect to yy, move xx out of the integral.
f(x,y)=x∫cos(y)dyf(x,y)=x∫cos(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 ∂f∂x=M(x,y)∂f∂x=M(x,y).
∂f∂x=sin(y)+x∂f∂x=sin(y)+x
Step 8
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)].
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-1nxn−1 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
Step 9.1
Move all terms not containing dgdx to the right side of the equation.
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).
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
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