Calculus Examples

Solve the Differential Equation (y+sin(x))dy+(ycos(x)-2x)dx=0
Step 1
Rewrite the differential equation to fit the Exact differential equation technique.
Tap for more steps...
Step 1.1
Rewrite.
Step 2
Find where .
Tap for more steps...
Step 2.1
Differentiate with respect to .
Step 2.2
By the Sum Rule, the derivative of with respect to is .
Step 2.3
Evaluate .
Tap for more steps...
Step 2.3.1
Since is constant with respect to , the derivative of with respect to is .
Step 2.3.2
Differentiate using the Power Rule which states that is where .
Step 2.3.3
Multiply by .
Step 2.4
Differentiate using the Constant Rule.
Tap for more steps...
Step 2.4.1
Since is constant with respect to , the derivative of with respect to is .
Step 2.4.2
Add and .
Step 3
Find where .
Tap for more steps...
Step 3.1
Differentiate with respect to .
Step 3.2
Differentiate.
Tap for more steps...
Step 3.2.1
By the Sum Rule, the derivative of with respect to is .
Step 3.2.2
Since is constant with respect to , the derivative of with respect to is .
Step 3.3
The derivative of with respect to is .
Step 3.4
Add and .
Step 4
Check that .
Tap for more steps...
Step 4.1
Substitute for and for .
Step 4.2
Since the two sides have been shown to be equivalent, the equation is an identity.
is an identity.
is an identity.
Step 5
Set equal to the integral of .
Step 6
Integrate to find .
Tap for more steps...
Step 6.1
Split the single integral into multiple integrals.
Step 6.2
By the Power Rule, the integral of with respect to is .
Step 6.3
Apply the constant rule.
Step 6.4
Simplify.
Step 7
Since the integral of will contain an integration constant, we can replace with .
Step 8
Set .
Step 9
Find .
Tap for more steps...
Step 9.1
Differentiate with respect to .
Step 9.2
Differentiate.
Tap for more steps...
Step 9.2.1
By the Sum Rule, the derivative of with respect to is .
Step 9.2.2
Since is constant with respect to , the derivative of with respect to is .
Step 9.3
Evaluate .
Tap for more steps...
Step 9.3.1
Since is constant with respect to , the derivative of with respect to is .
Step 9.3.2
The derivative of with respect to is .
Step 9.4
Differentiate using the function rule which states that the derivative of is .
Step 9.5
Simplify.
Tap for more steps...
Step 9.5.1
Add and .
Step 9.5.2
Reorder terms.
Step 10
Solve for .
Tap for more steps...
Step 10.1
Move all terms not containing to the right side of the equation.
Tap for more steps...
Step 10.1.1
Subtract from both sides of the equation.
Step 10.1.2
Combine the opposite terms in .
Tap for more steps...
Step 10.1.2.1
Subtract from .
Step 10.1.2.2
Add and .
Step 11
Find the antiderivative of to find .
Tap for more steps...
Step 11.1
Integrate both sides of .
Step 11.2
Evaluate .
Step 11.3
Since is constant with respect to , move out of the integral.
Step 11.4
By the Power Rule, the integral of with respect to is .
Step 11.5
Simplify the answer.
Tap for more steps...
Step 11.5.1
Rewrite as .
Step 11.5.2
Simplify.
Tap for more steps...
Step 11.5.2.1
Combine and .
Step 11.5.2.2
Cancel the common factor of and .
Tap for more steps...
Step 11.5.2.2.1
Factor out of .
Step 11.5.2.2.2
Cancel the common factors.
Tap for more steps...
Step 11.5.2.2.2.1
Factor out of .
Step 11.5.2.2.2.2
Cancel the common factor.
Step 11.5.2.2.2.3
Rewrite the expression.
Step 11.5.2.2.2.4
Divide by .
Step 12
Substitute for in .
Step 13
Simplify .
Tap for more steps...
Step 13.1
Combine and .
Step 13.2
Reorder factors in .