If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Product rule review

Review your knowledge of the Product rule for derivatives, and use it to solve problems.

What is the Product rule?

The Product rule tells us how to differentiate expressions that are the product of two other, more basic, expressions:
ddx[f(x)g(x)]=ddx[f(x)]g(x)+f(x)ddx[g(x)]
Basically, you take the derivative of f multiplied by g, and add f multiplied by the derivative of g.
Want to learn more about the Product rule? Check out this video.

What problems can I solve with the Product rule?

Example 1

Consider the following differentiation of h(x)=ln(x)cos(x):
=h(x)=ddx(ln(x)cos(x))=ddx(ln(x))cos(x)+ln(x)ddx(cos(x))Product rule=1xcos(x)+ln(x)(sin(x))Differentiate ln(x) and cos(x)=cos(x)xln(x)sin(x)Simplify

Check your understanding

Problem 1
f(x)=x2ex
f(x)=

Want to try more problems like this? Check out this exercise.

Example 2

Suppose we are given this table of values:
xf(x)g(x)f(x)g(x)
4413   08
H(x) is defined as f(x)g(x), and we are asked to find H(4).
The Product rule tells us that H(x) is f(x)g(x)+f(x)g(x). This means H(4) is f(4)g(4)+f(4)g(4). Now let's plug the values from the table in the expression:
H(4)=f(4)g(4)+f(4)g(4)=(0)(13)+(4)(8)=32

Check your understanding

Problem 1
xg(x)h(x)g(x)h(x)
22134
F(x)=g(x)h(x)
F(2)=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Want to try more problems like this? Check out this exercise.

Want to join the conversation?

  • starky sapling style avatar for user 20leunge
    I'm having trouble with problem 1. The explanation says that the derivative of e^x is e^x, but wouldn't it be x*e^(x - 1) because of the power rule? Is it a special property of e? Could it be that the exponent is a variable? What am I not understanding?
    (18 votes)
    Default Khan Academy avatar avatar for user
    • leaf yellow style avatar for user Howard Bradley
      The Power Rule only works for powers of a variable. That is xⁿ, where n is a constant.
      It does not work for for exponential functions ie n^x. In other words the exponent is a variable.

      It is not a special property of e. It is - as you say - that "the exponent is a variable."
      (38 votes)
  • leafers tree style avatar for user jackacid
    This Product Rule Review page, located in the Derivative Rules unit, has examples and exercises that assume knowledge of how to find derivatives of exponential and logarithmic functions. However, those derivatives are not covered until the next unit, Advanced Derivatives.
    (11 votes)
    Default Khan Academy avatar avatar for user
  • stelly yellow style avatar for user lemonomadic
    Is derivative of cos x sin x or -sin x?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user zjleon2010
    does 'differentiate' means 'get the derivative'?
    (4 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user elizabeth.cask
    i am having trouble with a textbook question that reads (8x^2-3x)^3 which states i have to use the triple product rule to solve the problem. The answer is apparently 3x^2(8x-3)^2(16x-3). i am at a loss. please, what is going on here?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • leafers seedling style avatar for user Elise Mertz
      It's not as complicated as it looks at a glance! The trick is to use the chain rule. You have a composite function. Let's call the two parts of the function f(x) and g(x). Let f(x) = x^3 and g(x) = 8x^2-3x. Then f(g(x)) = f(8x^2-3x) = (8x^2-3x)^3. That's the function you have to differentiate.

      To differentiate a composite function, you use the chain rule, which says that the derivative of f(g(x)) = f'(g(x))g'(x). In plain (well, plainer) English, the derivative of a composite function is the derivative of the outside function (here that's f(x)) evaluated at the inside function (which is (g(x)) times the derivative of the inside function.

      We can apply the chain rule to your problem. The first step is to take the derivative of the outside function evaluated at the inside function. The derivative of f(x) is 3x^2, which we know because of the power rule. If we evaluate f'(x) at g(x), we get f'(g(x)) = 3
      (g(x))^2. Expanding g(x), we get that f'(g(x)) = 3*(8x^2-3x)^2.

      The next step is to find g'(x), the derivative of g. Since g(x) = 8x^2-3x, we know by the power rule that g'(x) = 16x-3.

      According to the chain rule, as we saw above, the derivative of f(g(x)) = f'(g(x))g'(x). We have already found f'(g(x)) and g'(x) separately; now we just have to multiply them to find the derivative of the composite function. Multiplying our answers, we get 3(8x^2-3x)^2*(16x-3). This expands to 3072x^5 - 2880x^4 + 864x^3 - 81x^2.

      I hope that helps!
      (6 votes)
  • blobby green style avatar for user fadillaryahya1
    I'm a little bit study hard to find the derivative of y = tan(x)cos(2x), some of math sites called the answer is y' = 4cos^2(x) - sec^2(x) - 2. Anyone help me? Bunch of thanks for that!
    (1 vote)
    Default Khan Academy avatar avatar for user
  • mr pants teal style avatar for user Lauren Taips
    How would I be able to do this with p=xcos(x)? I'm having trouble understanding this.
    (2 votes)
    Default Khan Academy avatar avatar for user
  • duskpin ultimate style avatar for user Yuuto
    Would it be possible to make this and the Quotient rule available during quizzes and tests? I find I've had to search it up during a quiz/test multiple times per test.
    (2 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user Hecretary Bird
      The end result is that you'd have these rules in your brain so that you prepare yourself for more serious quizzes and tests, so the Khan Academy system doesn't usually like giving you a formula. The product rule is more straightforward to memorize, but for the quotient rule, it's commonly taught with the sentence "Low de High minus High de Low, over Low Low". "Low" is the function that is being divided by the "High".
      Additionally, just take some time to play with the formulas and see if you can understand what they're doing. Try looking up a proof (Khan Academy has one!) and just working with the derivation rules in practice. With enough time, they'll be second-nature.
      (2 votes)
  • stelly yellow style avatar for user 1406229
    What special properties of e^x make d/dx(e^x)=e^x? Is it the definition of e (e=(1+1/x)^x as x approaches infinity)?
    (1 vote)
    Default Khan Academy avatar avatar for user