Calculus Examples

Solve the Differential Equation (dy)/(dx)=(xy-y+x-1)/(x^2-4)
Step 1
Separate the variables.
Tap for more steps...
Step 1.1
Factor.
Tap for more steps...
Step 1.1.1
Factor out the greatest common factor from each group.
Tap for more steps...
Step 1.1.1.1
Group the first two terms and the last two terms.
Step 1.1.1.2
Factor out the greatest common factor (GCF) from each group.
Step 1.1.2
Factor the polynomial by factoring out the greatest common factor, .
Step 1.2
Regroup factors.
Step 1.3
Multiply both sides by .
Step 1.4
Simplify.
Tap for more steps...
Step 1.4.1
Cancel the common factor of .
Tap for more steps...
Step 1.4.1.1
Factor out of .
Step 1.4.1.2
Cancel the common factor.
Step 1.4.1.3
Rewrite the expression.
Step 1.4.2
Simplify the denominator.
Tap for more steps...
Step 1.4.2.1
Rewrite as .
Step 1.4.2.2
Since both terms are perfect squares, factor using the difference of squares formula, where and .
Step 1.5
Rewrite the equation.
Step 2
Integrate both sides.
Tap for more steps...
Step 2.1
Set up an integral on each side.
Step 2.2
Integrate the left side.
Tap for more steps...
Step 2.2.1
Let . Then . Rewrite using and .
Tap for more steps...
Step 2.2.1.1
Let . Find .
Tap for more steps...
Step 2.2.1.1.1
Differentiate .
Step 2.2.1.1.2
By the Sum Rule, the derivative of with respect to is .
Step 2.2.1.1.3
Differentiate using the Power Rule which states that is where .
Step 2.2.1.1.4
Since is constant with respect to , the derivative of with respect to is .
Step 2.2.1.1.5
Add and .
Step 2.2.1.2
Rewrite the problem using and .
Step 2.2.2
The integral of with respect to is .
Step 2.2.3
Replace all occurrences of with .
Step 2.3
Integrate the right side.
Tap for more steps...
Step 2.3.1
Write the fraction using partial fraction decomposition.
Tap for more steps...
Step 2.3.1.1
Decompose the fraction and multiply through by the common denominator.
Tap for more steps...
Step 2.3.1.1.1
For each factor in the denominator, create a new fraction using the factor as the denominator, and an unknown value as the numerator. Since the factor in the denominator is linear, put a single variable in its place .
Step 2.3.1.1.2
For each factor in the denominator, create a new fraction using the factor as the denominator, and an unknown value as the numerator. Since the factor in the denominator is linear, put a single variable in its place .
Step 2.3.1.1.3
Multiply each fraction in the equation by the denominator of the original expression. In this case, the denominator is .
Step 2.3.1.1.4
Cancel the common factor of .
Tap for more steps...
Step 2.3.1.1.4.1
Cancel the common factor.
Step 2.3.1.1.4.2
Rewrite the expression.
Step 2.3.1.1.5
Cancel the common factor of .
Tap for more steps...
Step 2.3.1.1.5.1
Cancel the common factor.
Step 2.3.1.1.5.2
Divide by .
Step 2.3.1.1.6
Simplify each term.
Tap for more steps...
Step 2.3.1.1.6.1
Cancel the common factor of .
Tap for more steps...
Step 2.3.1.1.6.1.1
Cancel the common factor.
Step 2.3.1.1.6.1.2
Divide by .
Step 2.3.1.1.6.2
Apply the distributive property.
Step 2.3.1.1.6.3
Move to the left of .
Step 2.3.1.1.6.4
Cancel the common factor of .
Tap for more steps...
Step 2.3.1.1.6.4.1
Cancel the common factor.
Step 2.3.1.1.6.4.2
Divide by .
Step 2.3.1.1.6.5
Apply the distributive property.
Step 2.3.1.1.6.6
Move to the left of .
Step 2.3.1.1.7
Move .
Step 2.3.1.2
Create equations for the partial fraction variables and use them to set up a system of equations.
Tap for more steps...
Step 2.3.1.2.1
Create an equation for the partial fraction variables by equating the coefficients of from each side of the equation. For the equation to be equal, the equivalent coefficients on each side of the equation must be equal.
Step 2.3.1.2.2
Create an equation for the partial fraction variables by equating the coefficients of the terms not containing . For the equation to be equal, the equivalent coefficients on each side of the equation must be equal.
Step 2.3.1.2.3
Set up the system of equations to find the coefficients of the partial fractions.
Step 2.3.1.3
Solve the system of equations.
Tap for more steps...
Step 2.3.1.3.1
Solve for in .
Tap for more steps...
Step 2.3.1.3.1.1
Rewrite the equation as .
Step 2.3.1.3.1.2
Subtract from both sides of the equation.
Step 2.3.1.3.2
Replace all occurrences of with in each equation.
Tap for more steps...
Step 2.3.1.3.2.1
Replace all occurrences of in with .
Step 2.3.1.3.2.2
Simplify the right side.
Tap for more steps...
Step 2.3.1.3.2.2.1
Simplify .
Tap for more steps...
Step 2.3.1.3.2.2.1.1
Simplify each term.
Tap for more steps...
Step 2.3.1.3.2.2.1.1.1
Apply the distributive property.
Step 2.3.1.3.2.2.1.1.2
Multiply by .
Step 2.3.1.3.2.2.1.1.3
Multiply by .
Step 2.3.1.3.2.2.1.2
Add and .
Step 2.3.1.3.3
Solve for in .
Tap for more steps...
Step 2.3.1.3.3.1
Rewrite the equation as .
Step 2.3.1.3.3.2
Move all terms not containing to the right side of the equation.
Tap for more steps...
Step 2.3.1.3.3.2.1
Add to both sides of the equation.
Step 2.3.1.3.3.2.2
Add and .
Step 2.3.1.3.3.3
Divide each term in by and simplify.
Tap for more steps...
Step 2.3.1.3.3.3.1
Divide each term in by .
Step 2.3.1.3.3.3.2
Simplify the left side.
Tap for more steps...
Step 2.3.1.3.3.3.2.1
Cancel the common factor of .
Tap for more steps...
Step 2.3.1.3.3.3.2.1.1
Cancel the common factor.
Step 2.3.1.3.3.3.2.1.2
Divide by .
Step 2.3.1.3.4
Replace all occurrences of with in each equation.
Tap for more steps...
Step 2.3.1.3.4.1
Replace all occurrences of in with .
Step 2.3.1.3.4.2
Simplify the right side.
Tap for more steps...
Step 2.3.1.3.4.2.1
Simplify .
Tap for more steps...
Step 2.3.1.3.4.2.1.1
Write as a fraction with a common denominator.
Step 2.3.1.3.4.2.1.2
Combine the numerators over the common denominator.
Step 2.3.1.3.4.2.1.3
Subtract from .
Step 2.3.1.3.5
List all of the solutions.
Step 2.3.1.4
Replace each of the partial fraction coefficients in with the values found for and .
Step 2.3.1.5
Simplify.
Tap for more steps...
Step 2.3.1.5.1
Multiply the numerator by the reciprocal of the denominator.
Step 2.3.1.5.2
Multiply by .
Step 2.3.1.5.3
Multiply the numerator by the reciprocal of the denominator.
Step 2.3.1.5.4
Multiply by .
Step 2.3.2
Split the single integral into multiple integrals.
Step 2.3.3
Since is constant with respect to , move out of the integral.
Step 2.3.4
Let . Then . Rewrite using and .
Tap for more steps...
Step 2.3.4.1
Let . Find .
Tap for more steps...
Step 2.3.4.1.1
Differentiate .
Step 2.3.4.1.2
By the Sum Rule, the derivative of with respect to is .
Step 2.3.4.1.3
Differentiate using the Power Rule which states that is where .
Step 2.3.4.1.4
Since is constant with respect to , the derivative of with respect to is .
Step 2.3.4.1.5
Add and .
Step 2.3.4.2
Rewrite the problem using and .
Step 2.3.5
The integral of with respect to is .
Step 2.3.6
Since is constant with respect to , move out of the integral.
Step 2.3.7
Let . Then . Rewrite using and .
Tap for more steps...
Step 2.3.7.1
Let . Find .
Tap for more steps...
Step 2.3.7.1.1
Differentiate .
Step 2.3.7.1.2
By the Sum Rule, the derivative of with respect to is .
Step 2.3.7.1.3
Differentiate using the Power Rule which states that is where .
Step 2.3.7.1.4
Since is constant with respect to , the derivative of with respect to is .
Step 2.3.7.1.5
Add and .
Step 2.3.7.2
Rewrite the problem using and .
Step 2.3.8
The integral of with respect to is .
Step 2.3.9
Simplify.
Step 2.3.10
Substitute back in for each integration substitution variable.
Tap for more steps...
Step 2.3.10.1
Replace all occurrences of with .
Step 2.3.10.2
Replace all occurrences of with .
Step 2.4
Group the constant of integration on the right side as .
Step 3
Solve for .
Tap for more steps...
Step 3.1
Simplify the right side.
Tap for more steps...
Step 3.1.1
Simplify each term.
Tap for more steps...
Step 3.1.1.1
Combine and .
Step 3.1.1.2
Combine and .
Step 3.2
Multiply each term in by to eliminate the fractions.
Tap for more steps...
Step 3.2.1
Multiply each term in by .
Step 3.2.2
Simplify the left side.
Tap for more steps...
Step 3.2.2.1
Move to the left of .
Step 3.2.3
Simplify the right side.
Tap for more steps...
Step 3.2.3.1
Simplify each term.
Tap for more steps...
Step 3.2.3.1.1
Cancel the common factor of .
Tap for more steps...
Step 3.2.3.1.1.1
Cancel the common factor.
Step 3.2.3.1.1.2
Rewrite the expression.
Step 3.2.3.1.2
Cancel the common factor of .
Tap for more steps...
Step 3.2.3.1.2.1
Cancel the common factor.
Step 3.2.3.1.2.2
Rewrite the expression.
Step 3.2.3.1.3
Move to the left of .
Step 3.3
Simplify the left side.
Tap for more steps...
Step 3.3.1
Simplify .
Tap for more steps...
Step 3.3.1.1
Simplify by moving inside the logarithm.
Step 3.3.1.2
Remove the absolute value in because exponentiations with even powers are always positive.
Step 3.4
Simplify the right side.
Tap for more steps...
Step 3.4.1
Simplify .
Tap for more steps...
Step 3.4.1.1
Simplify by moving inside the logarithm.
Step 3.4.1.2
Use the product property of logarithms, .
Step 3.5
Move all the terms containing a logarithm to the left side of the equation.
Step 3.6
Use the quotient property of logarithms, .
Step 3.7
To solve for , rewrite the equation using properties of logarithms.
Step 3.8
Rewrite in exponential form using the definition of a logarithm. If and are positive real numbers and , then is equivalent to .
Step 3.9
Solve for .
Tap for more steps...
Step 3.9.1
Rewrite the equation as .
Step 3.9.2
Multiply both sides by .
Step 3.9.3
Simplify.
Tap for more steps...
Step 3.9.3.1
Simplify the left side.
Tap for more steps...
Step 3.9.3.1.1
Cancel the common factor of .
Tap for more steps...
Step 3.9.3.1.1.1
Cancel the common factor.
Step 3.9.3.1.1.2
Rewrite the expression.
Step 3.9.3.2
Simplify the right side.
Tap for more steps...
Step 3.9.3.2.1
Remove parentheses.
Step 3.9.4
Solve for .
Tap for more steps...
Step 3.9.4.1
Take the specified root of both sides of the equation to eliminate the exponent on the left side.
Step 3.9.4.2
Simplify .
Tap for more steps...
Step 3.9.4.2.1
Rewrite as .
Tap for more steps...
Step 3.9.4.2.1.1
Rewrite as .
Step 3.9.4.2.1.2
Add parentheses.
Step 3.9.4.2.2
Pull terms out from under the radical.
Step 3.9.4.3
The complete solution is the result of both the positive and negative portions of the solution.
Tap for more steps...
Step 3.9.4.3.1
First, use the positive value of the to find the first solution.
Step 3.9.4.3.2
Reorder factors in .
Step 3.9.4.3.3
Subtract from both sides of the equation.
Step 3.9.4.3.4
Next, use the negative value of the to find the second solution.
Step 3.9.4.3.5
Reorder factors in .
Step 3.9.4.3.6
Subtract from both sides of the equation.
Step 3.9.4.3.7
The complete solution is the result of both the positive and negative portions of the solution.
Step 4
Simplify the constant of integration.