The Product Rule

The product rule

The product rule for calculus is useful for finding the derivative of a function which is expressed as the product of two differentiable functions.

Say for example we had two functions

f(x) = x and
g(x) = x2

Now say we wanted to find the derivative of

Product rule - f(x) multiplied by g(x) is x multiplied by x squared

One approach to finding the derivative would be to simplify the function by multiplying it, and then differentiate the answer. Like this:

Finding the derivative of a product by multiplying it and thn differentiating

So the derivative of the product f(x).g(x) is 3x2 (since the derivative of x3 is 3x2.

Next, let’s calculate the derivative of f'(x).g'(x). In other words let’s differentiate each function first, and then multiply the derivatives together.

Product of derivatives of f(x) and g(x)

From the above we can see that (f(x)g(x))’ = 3x2, and that is not equal to f'(x)g'(x) = 2x

The derivative of a product is not equal to the product of the derivatives

To differentiate a product, you cannot just take the derivative of the first function and multiply it by the derivative of the second function. Instead, we need to use the product rule to find the derivative of a product (in a similar way that the quotient rule needs to be used to find the derivative of a quotient).

The Product Rule Formula For Differentiation

If two functions f(x) and g(x) are differentiable (i.e. the derivatives of f(x) and g(x) exist), then their product f(x).g(x) is differentiable, and the derivative can be found as follows:

Formula for the product rule

The formula for the product rule in words

The Product Rule states that the derivative of a product is equal to the derivative of the first function times the second function plus the first function times the derivative of the second function.

When To Use The Product Rule

In calculus, the product rule can be used when the function you want to differentiate consists of a product, and both parts of the product are differentiable functions of their own.

For example the function f(x) = x.x2 can be differentiated using the product rule for derivatives because:

  • The first function (x) is differentiable – its derivative is 1
  • The second function (x2) is differentiable – it’s derivative is 2x

(Of course you could also first simplify the function to x3 and then differentiate it and get the same result)

Examples Using The Product Rule

The best way to understand how the product rule works is by looking at some examples.

Using the product rule

For the first example, let’s use the product rule to find the derivative of

Using the product rule to find the derivative of xcosx

The above function is actually a product of two other functions, namely x and cos(x)

We can call these two functions f(x) and g(x):
f(x) = x
g(x) = cos(x)

And the derivatives of these two functions are:
f'(x) = 1 (since the derivative of x is 1)
g'(x) = -sin(x) (since the derivative of cos(x) is -sin(x)

We can now apply the product rule to find the derivative of the function xcos(x) which is a product of f(x) and g(x).

The formula for the product rule is:

Formula for the product rule

Next we plug f(x), f'(x), g(x) and g'(x) into the above formula:

Applying the product rule to xcosx

And then we can simplify the above to get a final answer of:

Using the product rule to find the derivative of xcosx gives an answer of cosx - xsinx

Proof Of The Product Rule

Proving the product rule using first principles

Let F(x) = f(x)g(x)

The definition of the derivative of F(x) is

Definition of the derivative of F(x)

If we insert F(x) = f(x)g(x) into the definition we get:

Substituting f(x)g(x) into derivative definition

This does not help us much in terms of simplification, so we need to pull a little trick to take this further.

What we do is we add 0 to the numerator, which of course does not change the value at all. The trick is to add 0 in the form of f(x+h)g(x) – f(x+h)g(x) instead of adding a straight 0. Note we also swap the order around (-f(x+h)g(x) + f(x+h)g(x)) to make things easier.

Adding a special form of 0 to help prove the product rule for derivatives

Next we use one of the properties of limits which states that the limit of a sum is equal to the sum of the limits. So we can split the above limit into two parts. Like this:

Splitting the limit of a sum into the sum of limits

Now we can perform factorisation by taking out the term f(x+h) in the first numerator and g(x) in the second numerator.

Factorising the limit for simplification

We now again apply a property of limits which says that the limit of a product of two functions is equal to the product of their limits. So each of the two terms above can be written as the products of two limits.

Splitting the limit of a product into the product of limits

Now if we examine each of these limits individually:

Simplifying each individual limit

Plugging these individual solutions to each of the limits from above gives us the final version of the product rule.

Final form of the product rule after proof from the derivative definition

The Product Rule in Terms of u and v

With regards to notation, the product rule is sometimes easier to express if you use u and v to represent the two functions which make up the product. This can also be more compact than using the function notation f(x) and g(x).

Using the variable u for the first function of the product, and v for the second function of the product, the product rule for finding the derivative of the function uv can be expressed as:

Expressing the product rule in terms of u and v. (uv)' = uv' + u'v