Calculus Examples

Solve the Differential Equation x(dy)/(dx)+2y=xsin(x)
Step 1
Rewrite the differential equation as .
Tap for more steps...
Step 1.1
Divide each term in by .
Step 1.2
Cancel the common factor of .
Tap for more steps...
Step 1.2.1
Cancel the common factor.
Step 1.2.2
Divide by .
Step 1.3
Cancel the common factor of .
Tap for more steps...
Step 1.3.1
Cancel the common factor.
Step 1.3.2
Divide by .
Step 1.4
Factor out of .
Step 1.5
Reorder and .
Step 2
The integrating factor is defined by the formula , where .
Tap for more steps...
Step 2.1
Set up the integration.
Step 2.2
Integrate .
Tap for more steps...
Step 2.2.1
Since is constant with respect to , move out of the integral.
Step 2.2.2
The integral of with respect to is .
Step 2.2.3
Simplify.
Step 2.3
Remove the constant of integration.
Step 2.4
Use the logarithmic power rule.
Step 2.5
Exponentiation and log are inverse functions.
Step 3
Multiply each term by the integrating factor .
Tap for more steps...
Step 3.1
Multiply each term by .
Step 3.2
Simplify each term.
Tap for more steps...
Step 3.2.1
Combine and .
Step 3.2.2
Cancel the common factor of .
Tap for more steps...
Step 3.2.2.1
Factor out of .
Step 3.2.2.2
Cancel the common factor.
Step 3.2.2.3
Rewrite the expression.
Step 3.2.3
Rewrite using the commutative property of multiplication.
Step 4
Rewrite the left side as a result of differentiating a product.
Step 5
Set up an integral on each side.
Step 6
Integrate the left side.
Step 7
Integrate the right side.
Tap for more steps...
Step 7.1
Integrate by parts using the formula , where and .
Step 7.2
Multiply by .
Step 7.3
Since is constant with respect to , move out of the integral.
Step 7.4
Multiply by .
Step 7.5
Integrate by parts using the formula , where and .
Step 7.6
The integral of with respect to is .
Step 7.7
Simplify the answer.
Tap for more steps...
Step 7.7.1
Rewrite as .
Step 7.7.2
Simplify.
Tap for more steps...
Step 7.7.2.1
Multiply by .
Step 7.7.2.2
Multiply by .
Step 8
Divide each term in by and simplify.
Tap for more steps...
Step 8.1
Divide each term in by .
Step 8.2
Simplify the left side.
Tap for more steps...
Step 8.2.1
Cancel the common factor of .
Tap for more steps...
Step 8.2.1.1
Cancel the common factor.
Step 8.2.1.2
Divide by .
Step 8.3
Simplify the right side.
Tap for more steps...
Step 8.3.1
Simplify terms.
Tap for more steps...
Step 8.3.1.1
Cancel the common factor of .
Tap for more steps...
Step 8.3.1.1.1
Cancel the common factor.
Step 8.3.1.1.2
Divide by .
Step 8.3.1.2
Combine the numerators over the common denominator.
Step 8.3.2
Apply the distributive property.
Step 8.3.3
To write as a fraction with a common denominator, multiply by .
Step 8.3.4
Combine and .
Step 8.3.5
Combine the numerators over the common denominator.
Step 8.3.6
Factor out of .
Step 8.3.7
Factor out of .
Step 8.3.8
Factor out of .
Step 8.3.9
Factor out of .
Step 8.3.10
Factor out of .
Step 8.3.11
Factor out of .
Step 8.3.12
Factor out of .
Step 8.3.13
Simplify the expression.
Tap for more steps...
Step 8.3.13.1
Rewrite as .
Step 8.3.13.2
Move the negative in front of the fraction.
Step 8.3.13.3
Reorder factors in .