Product Rule Calculator

Enter two functions f(x) and g(x) to apply the Product Rule for differentiation. The calculator computes d/dx[f(x)·g(x)] = f'(x)·g(x) + f(x)·g'(x) and displays the derivative symbolically with a step-by-step breakdown. Choose from common function types — polynomials, trigonometric, exponential, and logarithmic — for each factor and see the result rendered clearly.

Select the type of the first function f(x)

Multiplier in front of the function (e.g. 3 in 3x²)

Power of x (used for polynomial and sqrt types)

Select the type of the second function g(x)

Multiplier in front of the function (e.g. 1 in sin(x))

Power of x (used for polynomial and sqrt types)

Optional: plug in a value of x to get a numeric result

Results

d/dx [f·g] at x = input

--

f(x) at evaluated point

--

f′(x) at evaluated point

--

g(x) at evaluated point

--

g′(x) at evaluated point

--

f′(x)·g(x) term

--

f(x)·g′(x) term

--

Product Rule Term Contributions at x

Results Table

Frequently Asked Questions

What is the product rule in calculus?

The product rule states that the derivative of a product of two functions f(x) and g(x) is: d/dx[f(x)·g(x)] = f′(x)·g(x) + f(x)·g′(x). In words, you differentiate the first function and multiply by the second, then add the first function multiplied by the derivative of the second.

When should I use the product rule?

Use the product rule whenever you need to differentiate an expression that is the product of two distinct functions of x — for example x²·sin(x) or eˣ·ln(x). If the two factors can be simplified into a single function first, that may be easier, but the product rule always works.

How do I identify f(x) and g(x) in an expression?

Split the expression at the multiplication point. For example, in (3x²)(sin x), let f(x) = 3x² and g(x) = sin x. The choice is flexible — swapping f and g gives the same final derivative, since addition is commutative.

Can the product rule be extended to more than two functions?

Yes. For three functions u·v·w, the derivative is u′vw + uv′w + uvw′. This generalises further: differentiate each factor in turn while keeping the others unchanged, then sum all the resulting terms.

What is the derivative of a polynomial like axⁿ?

By the power rule, d/dx[axⁿ] = a·n·xⁿ⁻¹. For example, d/dx[3x²] = 6x. This is the rule applied internally when you select the Polynomial type in this calculator.

How does the product rule differ from the quotient rule?

The product rule handles f(x)·g(x), while the quotient rule handles f(x)/g(x). The quotient rule formula is [f′g − fg′] / g², which includes a subtraction and a squared denominator. Both rules derive from the same limit definition of the derivative.

Why does this calculator evaluate the derivative at a specific x value?

The symbolic derivative d/dx[f·g] gives a formula valid for all x. Evaluating it at a particular x (e.g. x = 2) gives the instantaneous rate of change at that point — useful for tangent line slopes, optimisation problems, and physics applications.

What are common mistakes when applying the product rule?

The most common error is treating d/dx[f·g] as simply f′·g′ — that is wrong. Another mistake is forgetting to differentiate both factors separately and add the two terms. Always verify by expanding the product first (when feasible) and comparing derivatives.

More Math Tools