Calculus Examples
∫x+5x2+x-2dx∫x+5x2+x−2dx
Step 1
Step 1.1
Decompose the fraction and multiply through by the common denominator.
Step 1.1.1
Factor x2+x-2x2+x−2 using the AC method.
Step 1.1.1.1
Consider the form x2+bx+cx2+bx+c. Find a pair of integers whose product is cc and whose sum is bb. In this case, whose product is -2−2 and whose sum is 11.
-1,2−1,2
Step 1.1.1.2
Write the factored form using these integers.
x+5(x-1)(x+2)x+5(x−1)(x+2)
x+5(x-1)(x+2)x+5(x−1)(x+2)
Step 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 AA.
Ax-1Ax−1
Step 1.1.3
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 BB.
Ax-1+Bx+2Ax−1+Bx+2
Step 1.1.4
Multiply each fraction in the equation by the denominator of the original expression. In this case, the denominator is (x-1)(x+2)(x−1)(x+2).
(x+5)(x-1)(x+2)(x-1)(x+2)=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2(x+5)(x−1)(x+2)(x−1)(x+2)=(A)(x−1)(x+2)x−1+(B)(x−1)(x+2)x+2
Step 1.1.5
Cancel the common factor of x-1x−1.
Step 1.1.5.1
Cancel the common factor.
(x+5)(x-1)(x+2)(x-1)(x+2)=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
Step 1.1.5.2
Rewrite the expression.
(x+5)(x+2)x+2=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
(x+5)(x+2)x+2=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
Step 1.1.6
Cancel the common factor of x+2.
Step 1.1.6.1
Cancel the common factor.
(x+5)(x+2)x+2=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
Step 1.1.6.2
Divide x+5 by 1.
x+5=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
x+5=(A)(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
Step 1.1.7
Simplify each term.
Step 1.1.7.1
Cancel the common factor of x-1.
Step 1.1.7.1.1
Cancel the common factor.
x+5=A(x-1)(x+2)x-1+(B)(x-1)(x+2)x+2
Step 1.1.7.1.2
Divide (A)(x+2) by 1.
x+5=(A)(x+2)+(B)(x-1)(x+2)x+2
x+5=(A)(x+2)+(B)(x-1)(x+2)x+2
Step 1.1.7.2
Apply the distributive property.
x+5=Ax+A⋅2+(B)(x-1)(x+2)x+2
Step 1.1.7.3
Move 2 to the left of A.
x+5=Ax+2⋅A+(B)(x-1)(x+2)x+2
Step 1.1.7.4
Cancel the common factor of x+2.
Step 1.1.7.4.1
Cancel the common factor.
x+5=Ax+2A+(B)(x-1)(x+2)x+2
Step 1.1.7.4.2
Divide (B)(x-1) by 1.
x+5=Ax+2A+(B)(x-1)
x+5=Ax+2A+(B)(x-1)
Step 1.1.7.5
Apply the distributive property.
x+5=Ax+2A+Bx+B⋅-1
Step 1.1.7.6
Move -1 to the left of B.
x+5=Ax+2A+Bx-1⋅B
Step 1.1.7.7
Rewrite -1B as -B.
x+5=Ax+2A+Bx-B
x+5=Ax+2A+Bx-B
Step 1.1.8
Move 2A.
x+5=Ax+Bx+2A-B
x+5=Ax+Bx+2A-B
Step 1.2
Create equations for the partial fraction variables and use them to set up a system of equations.
Step 1.2.1
Create an equation for the partial fraction variables by equating the coefficients of x from each side of the equation. For the equation to be equal, the equivalent coefficients on each side of the equation must be equal.
1=A+B
Step 1.2.2
Create an equation for the partial fraction variables by equating the coefficients of the terms not containing x. For the equation to be equal, the equivalent coefficients on each side of the equation must be equal.
5=2A-1B
Step 1.2.3
Set up the system of equations to find the coefficients of the partial fractions.
1=A+B
5=2A-1B
1=A+B
5=2A-1B
Step 1.3
Solve the system of equations.
Step 1.3.1
Solve for A in 1=A+B.
Step 1.3.1.1
Rewrite the equation as A+B=1.
A+B=1
5=2A-1B
Step 1.3.1.2
Subtract B from both sides of the equation.
A=1-B
5=2A-1B
A=1-B
5=2A-1B
Step 1.3.2
Replace all occurrences of A with 1-B in each equation.
Step 1.3.2.1
Replace all occurrences of A in 5=2A-1B with 1-B.
5=2(1-B)-1B
A=1-B
Step 1.3.2.2
Simplify the right side.
Step 1.3.2.2.1
Simplify 2(1-B)-1B.
Step 1.3.2.2.1.1
Simplify each term.
Step 1.3.2.2.1.1.1
Apply the distributive property.
5=2⋅1+2(-B)-1B
A=1-B
Step 1.3.2.2.1.1.2
Multiply 2 by 1.
5=2+2(-B)-1B
A=1-B
Step 1.3.2.2.1.1.3
Multiply -1 by 2.
5=2-2B-1B
A=1-B
Step 1.3.2.2.1.1.4
Rewrite -1B as -B.
5=2-2B-B
A=1-B
5=2-2B-B
A=1-B
Step 1.3.2.2.1.2
Subtract B from -2B.
5=2-3B
A=1-B
5=2-3B
A=1-B
5=2-3B
A=1-B
5=2-3B
A=1-B
Step 1.3.3
Solve for B in 5=2-3B.
Step 1.3.3.1
Rewrite the equation as 2-3B=5.
2-3B=5
A=1-B
Step 1.3.3.2
Move all terms not containing B to the right side of the equation.
Step 1.3.3.2.1
Subtract 2 from both sides of the equation.
-3B=5-2
A=1-B
Step 1.3.3.2.2
Subtract 2 from 5.
-3B=3
A=1-B
-3B=3
A=1-B
Step 1.3.3.3
Divide each term in -3B=3 by -3 and simplify.
Step 1.3.3.3.1
Divide each term in -3B=3 by -3.
-3B-3=3-3
A=1-B
Step 1.3.3.3.2
Simplify the left side.
Step 1.3.3.3.2.1
Cancel the common factor of -3.
Step 1.3.3.3.2.1.1
Cancel the common factor.
-3B-3=3-3
A=1-B
Step 1.3.3.3.2.1.2
Divide B by 1.
B=3-3
A=1-B
B=3-3
A=1-B
B=3-3
A=1-B
Step 1.3.3.3.3
Simplify the right side.
Step 1.3.3.3.3.1
Divide 3 by -3.
B=-1
A=1-B
B=-1
A=1-B
B=-1
A=1-B
B=-1
A=1-B
Step 1.3.4
Replace all occurrences of B with -1 in each equation.
Step 1.3.4.1
Replace all occurrences of B in A=1-B with -1.
A=1-(-1)
B=-1
Step 1.3.4.2
Simplify the right side.
Step 1.3.4.2.1
Simplify 1-(-1).
Step 1.3.4.2.1.1
Multiply -1 by -1.
A=1+1
B=-1
Step 1.3.4.2.1.2
Add 1 and 1.
A=2
B=-1
A=2
B=-1
A=2
B=-1
A=2
B=-1
Step 1.3.5
List all of the solutions.
A=2,B=-1
A=2,B=-1
Step 1.4
Replace each of the partial fraction coefficients in Ax-1+Bx+2 with the values found for A and B.
2x-1+-1x+2
Step 1.5
Move the negative in front of the fraction.
∫2x-1-1x+2dx
∫2x-1-1x+2dx
Step 2
Split the single integral into multiple integrals.
∫2x-1dx+∫-1x+2dx
Step 3
Since 2 is constant with respect to x, move 2 out of the integral.
2∫1x-1dx+∫-1x+2dx
Step 4
Step 4.1
Let u1=x-1. Find du1dx.
Step 4.1.1
Differentiate x-1.
ddx[x-1]
Step 4.1.2
By the Sum Rule, the derivative of x-1 with respect to x is ddx[x]+ddx[-1].
ddx[x]+ddx[-1]
Step 4.1.3
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
1+ddx[-1]
Step 4.1.4
Since -1 is constant with respect to x, the derivative of -1 with respect to x is 0.
1+0
Step 4.1.5
Add 1 and 0.
1
1
Step 4.2
Rewrite the problem using u1 and du1.
2∫1u1du1+∫-1x+2dx
2∫1u1du1+∫-1x+2dx
Step 5
The integral of 1u1 with respect to u1 is ln(|u1|).
2(ln(|u1|)+C)+∫-1x+2dx
Step 6
Since -1 is constant with respect to x, move -1 out of the integral.
2(ln(|u1|)+C)-∫1x+2dx
Step 7
Step 7.1
Let u2=x+2. Find du2dx.
Step 7.1.1
Differentiate x+2.
ddx[x+2]
Step 7.1.2
By the Sum Rule, the derivative of x+2 with respect to x is ddx[x]+ddx[2].
ddx[x]+ddx[2]
Step 7.1.3
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
1+ddx[2]
Step 7.1.4
Since 2 is constant with respect to x, the derivative of 2 with respect to x is 0.
1+0
Step 7.1.5
Add 1 and 0.
1
1
Step 7.2
Rewrite the problem using u2 and du2.
2(ln(|u1|)+C)-∫1u2du2
2(ln(|u1|)+C)-∫1u2du2
Step 8
The integral of 1u2 with respect to u2 is ln(|u2|).
2(ln(|u1|)+C)-(ln(|u2|)+C)
Step 9
Simplify.
2ln(|u1|)-ln(|u2|)+C
Step 10
Step 10.1
Replace all occurrences of u1 with x-1.
2ln(|x-1|)-ln(|u2|)+C
Step 10.2
Replace all occurrences of u2 with x+2.
2ln(|x-1|)-ln(|x+2|)+C
2ln(|x-1|)-ln(|x+2|)+C