Access this content offline
Omniguides
Skip to the reading

The Product Rule

This original textbook reading covers part of the AP topic. Follow the AP course outline for complete topic instruction and practice.

This reading includes verified answer corrections and explicitly stated clarifications.

The Product Rule

We can use the product rule in order to differentiate functions in the form of F(x) = f(x)•g(x). The formula for the product rule, written in various ways to help you remember, is:

F′(x)=g(x)⋅f′(x)+f(x)⋅g′(x)F′=g⋅f′+f⋅g′F′(x)=f′(x)⋅g(x)+f(x)⋅g′(x)

These formulas give us the same method of finding the derivative, just different ways of writing it. Let’s practice through example, though.

Example Problem 4.1.1

Find the slope of the tangent line at x=−2 of  F(x)=ex⋅x2

Given the function F(x)=ex⋅x2, for the sake of using the product rule we can say f(x)=ex and g(x)=x2 , giving us f′(x)=ex and g′(x)=2x. Now that we know these values, let’s plug them into our formula.

F′(x)=f′(x)⋅g(x)+f(x)⋅g′(x)=ex⋅x2+ex⋅2x​
This is the final derivative of the function. Plugging in x=-2 for this function gives us​
F′(x)=e-2⋅(2)2+e-2⋅2(-2)=0

Interactive 4.1.1 Example Problem 4.1.1

Interactive 4.1.1 Example Problem 4.1.1
Read all original figure notes

The Derivative Function

The blue function is the derivative function we calculated using the product rule. Note that it crosses y=0 (the x-axis) whenever the slope of a tangent line to the original function equals 0, namely at points x=-2 and x=0

The Original Function

The graph of the original function, y=ex•x2, is shown here. Note that it has a tangent line with a slope of 0 at x=-2 and x=0. Our point of interest is x=-2

Neat, huh? Let’s get some more practice in since this is a difficult formula to use. To show that I am not making up this rule, refer to interactive 4.1.1, which compares the derivative function to the original function.

There is a more advanced version of the product rule for three functions, which is written as:

For any function F(x)=f(x)⋅g(x)⋅h(x),

F′(x)=f′(x)⋅g(x)⋅h(x)+f(x)⋅g′(x)⋅h(x)+f(x)⋅g(x)⋅h′(x)

Example Problem 4.1.2

Find the derivative function of F(x)=x32⋅sinx⋅cosx

For this case, let’s make a table:

f(x)=x32f′(x) =32x2g(x)=sinxg′(x)=cosxh(x)=cosxh′(x)=-sinx

Now let’s plug these values into our formula​
F′(x)=f′(x)⋅g(x)⋅h(x)+f(x)⋅g′(x)⋅h(x)+f(x)⋅g(x)⋅h′(x)

=32x2sinxcosx+x32cosxcosx+x32sinx(-sinx)

=32x2sinxcosx+x32cos2x-x32sin2x

=32x2sinxcosx+x32(cos2x-sin2x)

=34x2⋅2sinxcosx+x32(cos(2x))

=34x2⋅sin(2x)+x32cos(2x)

For the last two steps, refer to the double angle formulas

This version of the book will not show you the proof of how the product rule is derived because its application is difficult enough without the theory. If you are interested, however, there are plenty of proofs using differentials and composed rectangles online to look at during your leisure time.

Example Problem 4.1.3

Find y’’ if y=cosxx

Let’s challenge ourselves with the first part of this problem and do it without making any tables, and doing the derivatives in our heads. When solving problems for exams, it really helps writing down the first derivative of each “product” function. This is just an exercise to increase our proficiency with the product rule.​
Here, we have
f(x) = cos(x) and g(x) = x. So,y′=cosx2x-sinxx​
A good shortcut to remember when taking the derivative of x is that it is equal to 12x. You can just as easily prove this shortcut using the power rule, since x=x12.

Here we may want to make a table.

f1(x)=cosxf1′(x) =-sin(x)g1(x)=x-12g1′(x)=-12x-32f2(x)=-sinxf2′(x) =-cosxg2(x)=xg2′(x)=12x-12

y′′=12(-sin(x)⋅x-12-12x-32⋅cosx)lll+(-cosxx+12x-12(-sinx)) ​
Now we add like terms and distribute.

y′′=-sinx⋅x-12-14cosx⋅x-32-cosxx

y′′=-sinx⋅x-12-cosx(14⋅x-32+x)

This is our final answer, that was so easy!

Physical Meaning of the Second Derivative: Let’s shift our gear into Physics for a few minutes. For any position function showing an object’s displacement changing with time, d(t), we can take that function’s derivative and get its velocity, v(t). We can also take its derivative again to get the change in velocity with respect to time, or the acceleration, a(t). Here are how the units for each of these terms works out, assuming distance is measured in meters, and time in seconds (these units can be replaced with km and hours, or miles and hours).

d(t)=meters (m), a measurement of displacement

d·=v(t)=ms a measurement of velocity

d··=v·=a(t)=ms2 a measurement of acceleration

Notice how increasing the order of derivatives adds another “independent variable” term to the denominator of the units. This is why the second derivative is often expressed as d2ydx2 .

Pop Quiz 4.1.1 Product rule and second derivatives

Question 1 of 5 · 0 correct

If the displacement of a ball flying vertically through the air can be modeled by the equation y=-4.9t2+20t, what is the initial velocity of the ball (assuming units of meters and seconds)? What is the acceleration?

Select one answer.
Glossary and deeper reading · 2 refreshers

These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.

  • Product rule

    The product rule differentiates a product of two differentiable functions. It gives (fg)′=f′g+fg′, changing one factor at a time and adding the results. For example, the derivative of x sin x is sin x+x cos x. The product of the two derivatives is generally not the derivative of the product.

    Read more: 2.8 · Product rule →

  • Derivative

    A derivative gives the instantaneous rate of change of a function with respect to its input. At a point, it is the finite limit of the difference quotient when that limit exists. For example, the derivative of x² is 2x, so the tangent slope at x=3 is 6. A derivative function collects those rates across the inputs where the function is differentiable.

    Read more: 2.2 · Derivative →

Search lessons, terms and problems