Differentiation measures how fast a function is changing at a specific point: on a graph, the slope of the tangent line; in a word problem, the instantaneous rate of change. The trick to computing derivatives is to first identify whether you have a power, a product, a quotient, or a composite function, then apply the matching formula. Keep these correspondences in mind: xnx^n uses the power rule, addition is differentiated term by term, multiplication uses the product rule, a fraction uses the quotient rule, and a function inside a function uses the chain rule.

The Formulas And Their Symbols

The derivative of a function f(x)f(x) at x=ax=a is defined, when the limit exists, as

f(a)=limh0f(a+h)f(a)hf'(a)=\lim_{h \to 0}\frac{f(a+h)-f(a)}{h}

This measures how much f(x)f(x) changes when xx moves just a tiny bit. In practice you rarely compute from this definition each time; you use the formulas derived from it. The function obtained is called the derivative.

The most common starting formulas, with aa, bb, cc constants:

ddx(c)=0ddx(xn)=nxn1ddx(af(x)+bg(x))=af(x)+bg(x)\frac{d}{dx}(c)=0 \qquad \frac{d}{dx}(x^n)=nx^{n-1} \qquad \frac{d}{dx}\left(af(x)+bg(x)\right)=af'(x)+bg'(x)

These three handle most polynomial differentiation. For more complex expressions:

ddx(f(x)g(x))=f(x)g(x)+f(x)g(x)\frac{d}{dx}\left(f(x)g(x)\right)=f'(x)g(x)+f(x)g'(x) ddx(f(x)g(x))=f(x)g(x)f(x)g(x)g(x)2,g(x)0\frac{d}{dx}\left(\frac{f(x)}{g(x)}\right)=\frac{f'(x)g(x)-f(x)g'(x)}{g(x)^2}, \quad g(x) \ne 0 ddxf(g(x))=f(g(x))g(x)\frac{d}{dx}f(g(x))=f'(g(x))g'(x)

The last is the chain rule, used when one function is nested inside another, such as (2x+1)5(2x+1)^5 or sin(x2)\sin(x^2). The common-function forms are worth memorizing too:

ddx(sinx)=cosxddx(cosx)=sinx\frac{d}{dx}(\sin x)=\cos x \qquad \frac{d}{dx}(\cos x)=-\sin x ddx(ex)=exddx(lnx)=1x,x>0\frac{d}{dx}(e^x)=e^x \qquad \frac{d}{dx}(\ln x)=\frac{1}{x}, \quad x>0

The lnx\ln x formula applies for x>0x>0 in the reals; check the condition, not just the formula.

Why The Product Rule Is Not Term-By-Term

The formula (fg)=fg+fg(fg)' = f'g + fg' surprises people because it is tempting to write fgf'g' instead. The reason it has two terms is that both factors vary with xx. Over a tiny step, ff changes while gg stays roughly fixed, giving the contribution f(x)g(x)f'(x)g(x); at the same time gg changes while ff stays roughly fixed, giving f(x)g(x)f(x)g'(x). The total change is the sum of the two, which is exactly the product rule. The chain rule carries its inner factor for the same reason: the inner function's own rate of change must be accounted for. Holding this picture explains why the formulas look the way they do.

Reading The Form Of The Expression First

Where people get stuck is the initial identification, not the calculation. Read in this order:

  • A polynomial like x5x^5 or x32x+1x^3-2x+1: apply the power rule to each term.
  • A product like (x2+1)(3x4)(x^2+1)(3x-4): use the product rule.
  • A fraction like x2+1x1\frac{x^2+1}{x-1}: use the quotient rule.
  • A nested form like (2x+1)5(2x+1)^5 or sin(x2)\sin(x^2): use the chain rule.

Even when expressions look similar, the product rule and the chain rule are different.

Worked Example: Product With An Inner Composite

Differentiate

f(x)=x2(2x+1)3f(x)=x^2(2x+1)^3

The outer form is a product, so use the product rule first:

f(x)=(x2)(2x+1)3+x2((2x+1)3)f'(x)=(x^2)'(2x+1)^3+x^2\big((2x+1)^3\big)'

First, (x2)=2x(x^2)'=2x. Then, since (2x+1)3(2x+1)^3 is composite, the chain rule gives

((2x+1)3)=3(2x+1)22=6(2x+1)2\big((2x+1)^3\big)'=3(2x+1)^2 \cdot 2=6(2x+1)^2

Substituting back,

f(x)=2x(2x+1)3+6x2(2x+1)2f'(x)=2x(2x+1)^3+6x^2(2x+1)^2

Factoring common terms,

f(x)=2x(2x+1)2(5x+1)f'(x)=2x(2x+1)^2(5x+1)

The takeaway is not to expand immediately. Reading in order, outer product then inner composite, the formulas are determined naturally.

Practice And Self-Check

Differentiate these on your own:

g(x)=(3x2)4andh(x)=x2+1x1g(x)=(3x-2)^4 \qquad\text{and}\qquad h(x)=\frac{x^2+1}{x-1}

The first practices the chain rule, the second the quotient rule. Self-check: for g(x)g(x), confirm you kept the inner derivative 33 and reached 12(3x2)312(3x-2)^3, not 4(3x2)34(3x-2)^3. You improve faster by practicing how to identify the form than by memorizing more formulas.

Calculation Traps

Differentiating a product term by term. f(x)g(x)f(x)g(x) does not equal f(x)g(x)f'(x)g'(x); the product rule gives two terms.

Forgetting the inner derivative in the chain rule. Stopping at 3(2x+1)23(2x+1)^2 when differentiating (2x+1)3(2x+1)^3 misses the factor of 22.

Ignoring the quotient-rule condition. The rule fails where the denominator is 00; check the condition along with the form.

Over-expanding. When the composite or product structure is visible, applying the formula directly is often faster than expanding.

Where Differentiation Is Used

In mathematics it finds tangent slopes, tells whether a function is increasing or decreasing, and locates maxima and minima. In physics it appears in velocity and acceleration; in economics, in rates of change. It is the tool for reading how much something is changing right now. Treating it as a rate of change, rather than just a calculation, makes the concept stick.

Frequently Asked Questions

What does differentiation mean?
Differentiation investigates how fast a function is changing at a specific point. On a graph it gives the slope of the tangent line, and in word problems it gives the instantaneous rate of change. The derivative at a point is defined as a limit of the average change as the step size approaches zero.
How do you choose the right differentiation formula?
Identify the form of the expression first. For a power of x, use the power rule; for addition, differentiate term by term; for multiplication, use the product rule; for a fraction, use the quotient rule; and for a function nested inside another function, use the chain rule. Recognizing the structure makes the calculation much more organized.
What are the derivatives of sin x, cos x, e to the x, and ln x?
The derivative of sin x is cos x, and the derivative of cos x is negative sin x, where the negative sign is easy to miss. The derivative of e to the x is itself, and the derivative of ln x is 1 over x, which applies when x is positive.
When do you use the chain rule?
Use the chain rule when one function is nested inside another, such as the quantity 2x plus 1 raised to the fifth power, or sine of x squared. Differentiate the outer function evaluated at the inner one, then multiply by the derivative of the inner function.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →