Rules of differentiation

Differentiating from first principles — setting up lim⁡h→0f(x+h)−f(x)h\lim_{h\to 0}\frac{f(x+h)-f(x)}{h} every single time — works, but it is slow and easy to fumble algebraically for anything beyond the simplest function. The rules of differentiation solve this once and for all: a short list of results, each provable from first principles, that can be applied mechanically to sums, differences, products, quotients, constant multiples and powers of known functions, plus the six basic trigonometric derivatives. This article collects those rules, proves the trickiest of them — the product rule — from the limit definition, and then works through the two situations that trip up most Class 11 students: a pure power-rule polynomial, and a genuine product that demands the product rule. The real skill this topic builds is not memorising formulas but reading an expression correctly before reaching for one.

The core insight

A small, provable set of rules — constant multiple, sum/difference, product, quotient and power — lets any combination of known differentiable functions be differentiated directly, without repeating the limit process each time.

The core idea

Let u=u(x)u = u(x) and v=v(x)v = v(x) be differentiable functions of xx, and let cc be a constant. Four rules handle every way two functions can be combined algebraically, and one rule handles powers.

Constant multiple and sum/difference. Scaling a function by a constant scales its derivative by the same constant, and the derivative of a sum or difference is the sum or difference of the derivatives.

ddx[c u(x)]=c dudx,ddx[u(x)±v(x)]=dudx±dvdx\frac{d}{dx}\big[c\,u(x)\big] = c\,\frac{du}{dx}, \qquad \frac{d}{dx}\big[u(x)\pm v(x)\big] = \frac{du}{dx} \pm \frac{dv}{dx}

where: u,vu,v are differentiable functions of xx, and cc is a constant that does not depend on xx. These two rules are what let a polynomial be differentiated term by term.

Product rule. When two functions of xx are multiplied together, the derivative is not the product of the two derivatives — each factor is differentiated in turn while the other is held in place, and the two results are added.

ddx[u(x) v(x)]=u(x) dvdx+v(x) dudx\frac{d}{dx}\big[u(x)\,v(x)\big] = u(x)\,\frac{dv}{dx} + v(x)\,\frac{du}{dx}

where: udvdxu\dfrac{dv}{dx} is "first function times derivative of second" and vdudxv\dfrac{du}{dx} is "second function times derivative of first"; the two terms are added, never multiplied.

Quotient rule. For a ratio of two functions, with v(x)≠0v(x) \neq 0:

ddx[u(x)v(x)]=v(x)dudx−u(x)dvdx[v(x)]2\frac{d}{dx}\left[\frac{u(x)}{v(x)}\right] = \frac{v(x)\dfrac{du}{dx} - u(x)\dfrac{dv}{dx}}{[v(x)]^2}

where: the numerator is "denominator times derivative of numerator, minus numerator times derivative of denominator," in that order, and the whole thing sits over the square of the denominator.

Power rule and basic trigonometric derivatives. For any real number nn,

ddx(xn)=n xn−1,ddx(sin⁡x)=cos⁡x,ddx(cos⁡x)=−sin⁡x,ddx(tan⁡x)=sec⁡2x\frac{d}{dx}\big(x^n\big) = n\,x^{n-1}, \qquad \frac{d}{dx}(\sin x)=\cos x, \quad \frac{d}{dx}(\cos x)=-\sin x, \quad \frac{d}{dx}(\tan x)=\sec^2 x

with ddx(cot⁡x)=−csc⁡2x\frac{d}{dx}(\cot x)=-\csc^2 x, ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x)=\sec x\tan x, and ddx(csc⁡x)=−csc⁡xcot⁡x\frac{d}{dx}(\csc x)=-\csc x\cot x completing the set. The chain rule for composite functions like sin⁡(2x)\sin(2x), derivatives of exponential/logarithmic/inverse-trigonometric functions, implicit differentiation and second-order derivatives belong to Class XII and are out of scope here. The figure below is the single most useful habit this topic builds: before differentiating anything, classify the expression as a sum of terms, a product of factors, or a quotient — the choice of rule follows immediately from that classification.

Figure
A decision flow showing an expression sorted into a sum branch handled by the power and sum rules, a product branch handled by the product rule, and a quotient branch handled by the quotient rule
Read the expression before you pick a rule Given y = f(x) sum or difference of terms product of two factors quotient of two functions power rule term by term, then add product rule u dv/dx + v du/dx quotient rule (v du/dx - u dv/dx) / v squared The mistake to avoid: applying the power rule to something that is secretly a product or a quotient.
Derivation AProving the product rule from first principles

The goal is to show, starting from nothing but the limit definition of a derivative and the ordinary algebra of adding and subtracting zero, that the derivative of a product y=u(x)v(x)y = u(x)v(x) really does equal u dvdx+v dudxu\,\frac{dv}{dx} + v\,\frac{du}{dx}, and not the tempting-but-wrong guess dudx⋅dvdx\frac{du}{dx}\cdot\frac{dv}{dx} that a student who has only just met the sum rule might expect.

Step 1. Write the limit definition for y=u(x)v(x)y = u(x)v(x) directly: dydx=lim⁡h→0u(x+h)v(x+h)−u(x)v(x)h\dfrac{dy}{dx} = \lim_{h\to 0} \dfrac{u(x+h)v(x+h) - u(x)v(x)}{h}. This is the same starting point used for every derivative — the change in the function, divided by the change in xx, as that change shrinks to zero.

Step 2. Insert a term that changes nothing. Add and subtract u(x+h)v(x)u(x+h)v(x) in the numerator: u(x+h)v(x+h)−u(x+h)v(x)+u(x+h)v(x)−u(x)v(x)u(x+h)v(x+h) - u(x+h)v(x) + u(x+h)v(x) - u(x)v(x). This looks like an unmotivated trick, but it is exactly the move that lets the numerator be grouped into two pieces, each of which is recognisable.

Step 3. Group and factor. The first pair factors as u(x+h)[v(x+h)−v(x)]u(x+h)\big[v(x+h) - v(x)\big], and the second pair factors as v(x)[u(x+h)−u(x)]v(x)\big[u(x+h) - u(x)\big]. So dydx=lim⁡h→0[u(x+h)⋅v(x+h)−v(x)h+v(x)⋅u(x+h)−u(x)h]\dfrac{dy}{dx} = \lim_{h\to 0}\left[ u(x+h)\cdot\dfrac{v(x+h)-v(x)}{h} + v(x)\cdot\dfrac{u(x+h)-u(x)}{h} \right].

Step 4. Take the limit of each piece separately, using the algebra of limits (the limit of a sum is the sum of the limits, and the limit of a product is the product of the limits). As h→0h \to 0: u(x+h)→u(x)u(x+h) \to u(x) because uu is differentiable and hence continuous; v(x+h)−v(x)h→dvdx\dfrac{v(x+h)-v(x)}{h} \to \dfrac{dv}{dx} by definition; and u(x+h)−u(x)h→dudx\dfrac{u(x+h)-u(x)}{h} \to \dfrac{du}{dx} by definition. Substituting gives dydx=u(x)dvdx+v(x)dudx\dfrac{dy}{dx} = u(x)\dfrac{dv}{dx} + v(x)\dfrac{du}{dx}, exactly the product rule stated above — with no cross-term dudx⋅dvdx\frac{du}{dx}\cdot\frac{dv}{dx} anywhere in sight.

Worked example

Differentiate y=x2sin⁡xy = x^2\sin x with respect to xx.

Step 1. Identify the structure. This is a product of two functions, u(x)=x2u(x) = x^2 and v(x)=sin⁡xv(x) = \sin x, so the product rule is needed — the power rule alone cannot handle it, because x2sin⁡xx^2\sin x is not a single power of xx.

Step 2. Differentiate each factor separately: dudx=ddx(x2)=2x\dfrac{du}{dx} = \dfrac{d}{dx}(x^2) = 2x and dvdx=ddx(sin⁡x)=cos⁡x\dfrac{dv}{dx} = \dfrac{d}{dx}(\sin x) = \cos x.

Step 3. Apply the product rule, ddx(uv)=udvdx+vdudx\dfrac{d}{dx}(uv) = u\dfrac{dv}{dx} + v\dfrac{du}{dx}: dydx=x2⋅cos⁡x+sin⁡x⋅2x\dfrac{dy}{dx} = x^2\cdot\cos x + \sin x\cdot 2x.

Step 4. Simplify and factor for the final form.

dydx=x2cos⁡x+2xsin⁡x=x(xcos⁡x+2sin⁡x)\frac{dy}{dx} = x^2\cos x + 2x\sin x = x\big(x\cos x + 2\sin x\big)

The derivative of y=x2sin⁡xy = x^2\sin x is dydx=x2cos⁡x+2xsin⁡x\dfrac{dy}{dx} = x^2\cos x + 2x\sin x.

Competitive stretch

The same two functions, arranged as a quotient instead, y=x2sin⁡xy = \dfrac{x^2}{\sin x} (with sin⁡x≠0\sin x \neq 0), needs the quotient rule with the same u=x2u = x^2, v=sin⁡xv = \sin x, dudx=2x\dfrac{du}{dx}=2x, dvdx=cos⁡x\dfrac{dv}{dx}=\cos x:

dydx=sin⁡x⋅2x−x2⋅cos⁡xsin⁡2x=2xsin⁡x−x2cos⁡xsin⁡2x\frac{dy}{dx} = \frac{\sin x\cdot 2x - x^2\cdot\cos x}{\sin^2 x} = \frac{2x\sin x - x^2\cos x}{\sin^2 x}

Comparing this to the product-rule answer above shows how the same building blocks, combined differently, force a completely different rule and a different-looking answer — recognising the combination correctly is the whole game.

Common traps

  • Applying the power rule to a product or quotient of two functions of xx instead of the product or quotient rule — e.g. treating x2sin⁡xx^2\sin x as if it were a single power and differentiating term by term.
  • Guessing that the derivative of a product is the product of the derivatives, dudx⋅dvdx\dfrac{du}{dx}\cdot\dfrac{dv}{dx} — the first-principles derivation above shows explicitly why that term never appears.
  • Misremembering the quotient rule's order or sign — it is "denominator times derivative of numerator, minus numerator times derivative of denominator, all over denominator squared," not the reverse.
  • Forgetting that the derivative of a constant is 00, and mishandling constant terms inside a sum.
  • Mixing up the signs in the trigonometric derivatives, especially ddx(cos⁡x)=−sin⁡x\frac{d}{dx}(\cos x) = -\sin x versus ddx(sin⁡x)=cos⁡x\frac{d}{dx}(\sin x) = \cos x.
  • Reaching for the chain rule on composite expressions like sin⁡(2x)\sin(2x) or (x2+1)3(x^2+1)^3 — that rule is Class XII scope and is not required here.

Ask the tutor: not sure whether an expression needs the product rule, the quotient rule, or just the power rule term by term — ask your AI tutor to walk through classifying it with you.

Why can I not just multiply the derivatives of the two factors in a product

Because that is not what the limit definition gives. Differentiating y=uvy=uv from first principles produces two terms, udvdxu\frac{dv}{dx} and vdudxv\frac{du}{dx}, added together — never a term with dudx⋅dvdx\frac{du}{dx}\cdot\frac{dv}{dx} in it. You can see exactly where that cross-term would have to come from and why it does not survive the limit: only the terms where one factor is evaluated at xx (not x+hx+h) remain after taking h→0h \to 0. Trust the derivation, not the shortcut.

How do I tell whether an expression is a product, a quotient, or just a sum of power terms

Look at how the pieces are joined. If terms are added or subtracted, like 4x3−5x2+7x4x^3 - 5x^2 + 7x, that is a sum — use the power rule term by term. If two genuinely different functions of xx are multiplied, like x2sin⁡xx^2\sin x, that is a product — use the product rule. If one function of xx is divided by another, like x2/sin⁡xx^2/\sin x, that is a quotient — use the quotient rule. A single power of xx multiplied only by a constant, like 7x7x, is still just a power-rule term; the constant is not a "second function."

Do I need to memorise the product and quotient rule proofs for exams

Usually only the statement and application are tested at this level, but knowing the first-principles proof of the product rule is valuable insurance: it is exactly the kind of "derive this result" question that can appear, and it stops you from misremembering the formula under pressure, since you can rebuild it from the definition of a derivative if your memory slips.

Before this

Where this leads