Difference rule – Derivation, Explanation, and Example

The difference rule is an essential derivative rule that you’ll often use in finding the derivatives of different functions – from simpler functions to more complex ones.

The difference rule is one of the most used derivative rules since we use this to find the derivatives between terms that are being subtracted from each other.

Given how often we’ll be using this rule throughout the different differential calculus topics, we must understand what makes this rule special, learn how we can derive the formula for the difference rule, and apply other derivative rules along with the difference rule.

In this article, we’ll be using past topics discussed, so make sure to take a refresh your knowledge and make the most out of our discussion.

Let’s begin by understanding how we could derive this helpful rule and then eventually learn how to apply the difference rule in our given examples.

What is the difference rule?                

The difference rule allows us to differentiate expressions that can be expressed as the difference between simpler functions. One of the most helpful techniques in differential calculus is applying the difference rule on a wide range of functions. The difference rule helps us determine the derivative of expressions of the form f(x)=g(x)h(x) such as the following:

  • 6x27x1
  • 2x3x
  • x4x5x

This means that whenever you see a polynomial expression with subtraction in the middle, you’ll be applying the difference rule to find its derivative. According to the derivative rule, when given an expression of the form, f(x)g(x), we can find its derivative by finding the difference between the derivatives of f(x) and g(x).

ddx[f(x)g(x)]=ddx[f(x)]ddx[g(x)]=f(x)g(x)

We’ll show how this rule was derived to make you appreciate how quick and easy it is for us to differentiate polynomials through this rule.

How to derive the derivative difference rule formula?

Let’s say we have f(x) and g(x), we can find their respective derivatives using the formal definition of the derivative. Hence, we have the following expressions for f(x) and g(x).

f(x)

f(x)=limh0f(x+h)f(x)h

g(x)

g(x)=limh0g(x+h)g(x)h

Now, what happens if we take the derivative of f(x)g(x)? We’ll use the definition of a derivative and have the expression shown below.

ddx[f(x)g(x)]=limh0[f(x+h)g(x+h)][f(x)g(x)]h

We rearrange the terms and apply the limit laws to have the following expression for ddx[f(x)g(x)].

  • Rearrange the expressions f(x+h) and f(x) as well as g(x+h) and g(x).
  • Apply the subtraction law, limxa[f(x)g(x)]=limxaf(x)limxag(x).

ddx[f(x)g(x)]=limh0[f(x+h)f(x)][g(x+h)g(x)]h=limh0[f(x+h)f(x)hg(x+h)g(x)h]=limh0f(x+h)f(x)hlimh0g(x+h)g(x)h

Notice something about the expression? Each grouped limits represent f(x) and g(x).

ddx[f(x)g(x)]=ddx[f(x)]ddx[g(x)]=f(x)g(x)

This shows that the derivative of f(x)g(x) is equal to f(x)g(x).

How to use the difference rule?                

Now that we’ve established the difference rule, ddx[f(x)g(x)]=f(x)g(x), let’s see how we can apply this with actual functions. Before we do so, let’s recall some fundamental derivative rules that we’ve learned in the past and are often used along with the difference rule:

Constant Rule

ddxc=0

Constant Multiple Rule

ddx[cf(x)]=cddx[f(x)]

Power Rule

ddxxn=nxn1

For example, if we want to find the derivative of f(x)=2x34x2, we can use the difference rule along with these other derivative rules to find the expression for f(x).

  • Take the derivative of 2x3 and 4x2 first.
  • Use the constant multiple and power rules to find the derivatives of these terms.

ddxf(x)=ddx(2x34x2)=ddx(2x3)ddx(4x2),xDifference Rule=(2ddxx3)(4ddxx2),xConstant Multiple Rule=2(3)x214(2)x31,xPower Rule=6x28x

Hence, through the amazing derivative rules, we can quickly differentiate f(x)=2x34x2 and have f(x)=6x28x. Are you ready to try out more examples? We’ve prepared more exercises for you to work on!

Example 1

Find the derivative of h(x)=12x3π.

Solution

Since h(x) is the result of π being subtracted from 12x3, so we can apply the difference rule. This means that h(x) is simply equal to finding the derivative of 123 and π.

 ddxh(x)=ddx(12x3π)=ddx(12x3)ddx(π)

We can use the constant multiple, power, and constant rules to find the derivative of h(x).

h(x)=ddx(12x3)ddx(π)=12ddx(x3)ddxπ,xConstant Multiple Rule=12ddx3(x21)ddxπ,xPower Rule=36(x2)0,xConstant Rule=36x2

This shows that that the derivative of h(x) is equal to 36x2.

Example 2

Find the derivative of f(x)=4x82x33x21.

Solution

Since the function, f(x), is a polynomial with multiple subtraction operations in between, we can apply the difference rule by taking the derivative of each term to find the derivative of f(x).

ddxf(x)=ddx(4x82x33x21)=ddx(4x8)ddx(2x3)ddx(3x2)ddx(1)

We can use the constant multiple and power rules to derive the first four expressions. We can simplify this further by simplifying ddx1 using the constant rule.

ddx(4x8)

ddx(4x8)=4ddx(x8),xConstant Multiple Rule=4(8)x81,xPower Rule=32x7

ddx(2x3)

ddx(2x3)=2ddx(x3),xConstant Multiple Rule=2(3)x31,xPower Rule=6x2

ddx(3x2)

ddx(3x2)=3ddx(x2),xConstant Multiple Rule=3(2)x21,xPower Rule=6x

ddx(1)

ddx(1)=0,xConstant Rule

Now that we have the derivative of the respective terms, we have can now rewrite the derivative of f(x) as shown below.

ddx(4x8)ddx(2x3)ddx(3x2)ddx(1)=32x76x26x

This means that f(x) is equal to 32x76x26x.

Example 3

Find the derivative of g(x)=x41x5.

Solution

We can find the derivative of g(x)=x41x5 by first rewriting the terms as powers of x.

  • Recall that xm=x1m, so x4=x14.
  • We can also rewrite 1x5 as x5.

Once we’ve rewritten g(x) as g(x)=x14x5, we can use the difference rule and eventually find the derivative of each of the term using the power rule.

ddxg(x)=ddx(x41x5)=ddx(x14x5)=ddx(x14)ddx(x5),xDifference Rule=14x141(5)x51,xPower Rule=14x34+5x6

Hence, we have g(x)=14x34+5x6. We can also rewrite this expression as g(x)=14x34+5x6.

Practice Questions

1. Find the derivative of f(x)=24x2πx12.
2. Find the derivative of f(x)=6x93x46x35.
3. Find the derivative of f(x)=2x126x85x412.
4. Find the derivative of g(x)=32x41x.
5. Find the derivative of g(x)=x61x8.

Answer Key

1. 48xπ
2. 54x812x318x2
3. 24x1148x720x3
4. 128x3+1x2
5. 16x56+8x9=1656+8x9=x9+48x566x596