Difference Rule Integration Notes
These Difference Rule Integration Notes explain how to integrate terms that are subtracted from one another, with the working shown line by line. The integral splits across the minus signs just as it does across plus signs, with each term handled separately and the signs left as they were. A single constant of integration covers the whole answer. Following the same pattern every time keeps each sign attached to its own term.
Step-by-step method
- Set up the problem.
- Write the difference rule for integration.
- Split the integral across the subtraction signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Formula: Difference Rule for Integration
The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.
Useful Tips to Remember
The difference rule says \(\int [f(x) - g(x)]\,dx = \int f(x)\,dx - \int g(x)\,dx\). Keep the minus sign in front of every part of the second function. Integrate each term separately and combine them with one \(+C\) at the end. The rule does not work for products or quotients.
Required knowledge
- How to integrate a power of x, covered in the Power Rule Integration Calculator.
- How a number in front of a function moves outside the integral, covered in the Constant Multiple Rule Integration Calculator.
Where Is the Difference Rule for Integration Used?
The difference rule for integration says that the integral of a difference is the difference of the integrals, so each term can be integrated on its own. It is used whenever a total is one amount minus another, such as the net water in a tank from inflow minus outflow, or profit from revenue minus cost. Integrating each rate separately and then subtracting gives the net change over time. It also finds the area between two curves, where the lower curve is subtracted from the upper one before integrating.
- Finding net change from inflow minus outflow
- Calculating total profit from revenue and cost rates
- Finding the area enclosed between an upper and a lower curve
- Integrating polynomials with negative terms
- Working out net displacement in physics
Difference Rule Integration Practice Problems
Example 1 integrates \(x^3 - x^2\), and Example 2 integrates \(5x^2 - 3x\). Examples 3 and 4 give you two more of the same kind to try, \(\int x^{4} - x^{2}\, dx\) and \(\int 6 x^{2} - 4 x\, dx\). Try integrating each term yourself before checking.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the difference rule for integration.
- Split the integral across the subtraction signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Formula
Formula: Difference Rule for Integration
The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.
Step 1
Step 1 - Set up the terms in the difference.
In this problem: We are integrating a difference. The separate terms are \(x^{3}\), \(x^{2}\).
Step 2
Step 2 - Write the difference rule for integration.
In this problem: The integral of a difference is the difference of the integrals.
Step 3
Step 3 - Split the integral across the subtraction signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(x^{3}\).
In this problem: The separated term is \(x^{3}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{3}\), so \(n = 3\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 3\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(3 + 1 = 4\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{2}\), so \(n = 2\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 2\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(2 + 1 = 3\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the difference rule for integration.
- Split the integral across the subtraction signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Formula
Formula: Difference Rule for Integration
The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.
Step 1
Step 1 - Set up the terms in the difference.
In this problem: We are integrating a difference. The separate terms are \(5 x^{2}\), \(3 x\).
Step 2
Step 2 - Write the difference rule for integration.
In this problem: The integral of a difference is the difference of the integrals.
Step 3
Step 3 - Split the integral across the subtraction signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(5 x^{2}\).
In this problem: The separated term is \(5 x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{2}\), so \(n = 2\). The number \(5\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(5\) is a constant, so it moves outside the integral and the power rule only works on \(x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 5\) and the function is \(x^{2}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(5\) in front of the integral sign and leave \(x^{2}\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 2\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(2 + 1 = 3\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(3 x\).
In this problem: The separated term is \(3 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x\), so \(n = 1\). The number \(3\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(3\) is a constant, so it moves outside the integral and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 3\) and the function is \(x\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(3\) in front of the integral sign and leave \(x\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the difference rule for integration.
- Split the integral across the subtraction signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Formula
Formula: Difference Rule for Integration
The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.
Step 1
Step 1 - Set up the terms in the difference.
In this problem: We are integrating a difference. The separate terms are \(x^{4}\), \(x^{2}\).
Step 2
Step 2 - Write the difference rule for integration.
In this problem: The integral of a difference is the difference of the integrals.
Step 3
Step 3 - Split the integral across the subtraction signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(x^{4}\).
In this problem: The separated term is \(x^{4}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{4}\), so \(n = 4\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 4\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(4 + 1 = 5\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(x^{2}\).
In this problem: The separated term is \(x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{2}\), so \(n = 2\).
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Substitute the exponent into the formula.
In this problem: Here \(n = 2\). Put it into the formula, but do not simplify yet.
Step 4
Step 4 - Solve and simplify, adding C.
In this problem: The new exponent is \(2 + 1 = 3\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the difference rule for integration.
- Split the integral across the subtraction signs.
- Integrate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the results and add the constant of integration C.
Formula
Formula: Difference Rule for Integration
The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.
Step 1
Step 1 - Set up the terms in the difference.
In this problem: We are integrating a difference. The separate terms are \(6 x^{2}\), \(4 x\).
Step 2
Step 2 - Write the difference rule for integration.
In this problem: The integral of a difference is the difference of the integrals.
Step 3
Step 3 - Split the integral across the subtraction signs.
In this problem: Apply the integral to each separated term, keeping each sign.
Step 4a
Step 4a - Integrate the separated term \(6 x^{2}\).
In this problem: The separated term is \(6 x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x^{2}\), so \(n = 2\). The number \(6\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(6\) is a constant, so it moves outside the integral and the power rule only works on \(x^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 6\) and the function is \(x^{2}\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(6\) in front of the integral sign and leave \(x^{2}\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 2\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(2 + 1 = 3\).
Final Answer
Step 4b
Step 4b - Integrate the separated term \(4 x\).
In this problem: The separated term is \(4 x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule for integration.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the formula.
- Solve and simplify, adding C.
Step 1
Step 1 - Set up the problem.
In this problem: The power is \(x\), so \(n = 1\). The number \(4\) in front is a constant multiple.
Step 2
Step 2 - Write the power rule for integration.
In this problem: Raise the exponent by one, then divide by the new exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(4\) is a constant, so it moves outside the integral and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule for integration.
- Pull the constant outside the integral.
Step 1
Step 1 - Identify the constant multiple k and the function f(x).
In this problem: The constant is \(k = 4\) and the function is \(x\).
Step 2
Step 2 - Write the constant multiple rule for integration.
In this problem: A constant factor can be moved outside the integral.
Step 3
Step 3 - Pull the constant outside the integral.
In this problem: Move \(4\) in front of the integral sign and leave \(x\) inside.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here \(n = 1\). Put it into the formula, but do not simplify yet.
Step 5
Step 5 - Solve and simplify, adding C.
In this problem: The new exponent is \(1 + 1 = 2\).
Final Answer
Step 5
Step 5 - Combine the results and add the constant of integration C.
In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.
Final Answer
Calculator and Practice Mode
Want to check your own working? The Difference Rule Integration Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Difference Rule Integration Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.