Ekuation

purpose

Product Rule Calculator

Differentiate products of functions using the product rule. See d/dx[f(x)*g(x)] worked out with full steps.

Back to Derivative Calculator

Enter a math expression using standard notation. Use * for multiplication, ^ for exponents.

Variable of differentiation. For partial derivatives, change to y, z, etc.

Derivative Calculator Tips

Click to show tips

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

Power Rule

Differentiate a polynomial using the power rule.

Key values: f(x) = x^3 - 2x^2 + x · 1st derivative

Chain Rule

Differentiate a composite function with sin(x^2).

Key values: f(x) = sin(x^2) · Chain rule applied

Product Rule with Tangent

Differentiate exp(x)*cos(x) and evaluate the tangent at x = 0.

Key values: f(x) = exp(x)*cos(x) · Tangent at x = 0

Second Derivative

Compute the second derivative to analyze concavity.

Key values: f(x) = x^4 - 6x^2 + 4 · 2nd derivative

Documentation

The Product Rule

When differentiating the product of two functions, you cannot simply multiply the derivatives. Instead:

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}[f(x) \cdot g(x)] = f'(x) \cdot g(x) + f(x) \cdot g'(x)

A useful mnemonic: “derivative of the first times the second, plus the first times the derivative of the second.”


Worked Examples

Functionf(x)g(x)Result
x2sinxx^2 \sin xx2x^2sinx\sin x2xsinx+x2cosx2x\sin x + x^2\cos x
exlnxe^x \ln xexe^xlnx\ln xexlnx+exxe^x \ln x + \frac{e^x}{x}
(x+1)(x1)(x+1)(x-1)x+1x+1x1x-12x2x

The Quotient Rule

The quotient rule is derived from the product rule applied to f(x)[g(x)]1f(x) \cdot [g(x)]^{-1}:

ddx[f(x)g(x)]=f(x)g(x)f(x)g(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x) \cdot g(x) - f(x) \cdot g'(x)}{[g(x)]^2}

Mnemonic (lo-di-hi): “Low d-high minus high d-low, over the square of what's below.” Here “high” is the numerator and “low” is the denominator.


Three or More Factors

For three functions, the pattern extends symmetrically:

(fgh)=fgh+fgh+fgh(fgh)' = f'gh + fg'h + fgh'

In general, for nn factors, there are nn terms, each differentiating one factor and leaving the rest unchanged.


Logarithmic Differentiation

For products of many factors or functions like xxx^x, take the logarithm first:

lny=lnf+lng+lnh    yy=ff+gg+hh\ln y = \ln f + \ln g + \ln h \implies \frac{y'}{y} = \frac{f'}{f} + \frac{g'}{g} + \frac{h'}{h}

This converts products into sums, making complex products manageable.


Frequently Asked Questions

What is the product rule?

The product rule states ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}[f(x) \cdot g(x)] = f'(x) \cdot g(x) + f(x) \cdot g'(x). You cannot simply multiply the derivatives. A useful mnemonic: “derivative of the first times the second, plus the first times the derivative of the second.”

How does the product rule extend to three or more factors?

For three factors: (fgh)=fgh+fgh+fgh(fgh)' = f'gh + fg'h + fgh'. In general, for nn factors there are nn terms, each differentiating exactly one factor and leaving the rest unchanged.

What is the quotient rule and how does it relate to the product rule?

The quotient rule is ddx[fg]=fgfgg2\frac{d}{dx}\left[\frac{f}{g}\right] = \frac{f'g - fg'}{g^2}. It is derived from applying the product rule to fg1f \cdot g^{-1}. The mnemonic “lo d-high minus high d-low, over the square of what's below” helps remember the formula.

When should I use logarithmic differentiation instead of the product rule?

Use logarithmic differentiation when you have products of many factors or expressions like xxx^x. Taking the log converts products to sums: ln(y)=ln(f)+ln(g)+\ln(y) = \ln(f) + \ln(g) + \ldots, making differentiation simpler.

Can I avoid the product rule by expanding first?

Sometimes. For products of polynomials like (x+1)(x1)=x21(x+1)(x-1) = x^2 - 1, expanding first and using the power rule is simpler. But for products involving trig, exponential, or logarithmic functions (like x2sin(x)x^2 \cdot \sin(x)), the product rule is unavoidable.

Related purpose Variants

Explore more purpose options

More Math Calculators

Explore the category

Calculator Search

Search and find calculators