Courses / Computer Science I
Calculus

Differentiation Rules

Computer Science I 202 words Free to read

## Basic Differentiation Rules

Instead of evaluating limits every time, differentiation rules compute derivatives mechanically through algebra.

RuleFormulaExample
Power ruleddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1}ddxx3=3x2\frac{d}{dx} x^3 = 3x^2
Constant multipleddx(cf)=cf′\frac{d}{dx}(c f) = c f'Constants factor out
Sum rule(f+g)′=f′+g′(f + g)' = f' + g'Sum of derivatives

Standard derivatives round out the toolkit: ddxex=ex\frac{d}{dx} e^x = e^x, ddxln⁡x=1x\frac{d}{dx} \ln x = \frac{1}{x}, and ddxsin⁡x=cos⁡x\frac{d}{dx} \sin x = \cos x.

## Combination & Chain Rules

Combining functions requires precise rules, especially for products and compositions.

Combination RuleFormulaKey Distinction
Product rule(fg)′=f′g+fg′(fg)' = f'g + fg'Not the product of derivatives
Quotient rule(f/g)′=f′g−fg′g2(f/g)' = \frac{f'g - fg'}{g^2}Note the minus sign & order
Chain rule[f(g(x))]′=f′(g(x))⋅g′(x)[f(g(x))]' = f'(g(x)) \cdot g'(x)Outer times inner derivative
Common pitfall: Forgetting the chain rule inner derivative. ddxsin⁡(x2)=cos⁡(x2)⋅2x\frac{d}{dx}\sin(x^2) = \cos(x^2) \cdot 2x, not just cos⁡(x2)\cos(x^2). Omitting g′(x)g'(x) is the #1 mistake.
The quotient rule, derived by leaning on the product rule --- then

Practise this lesson

Try the questions below, free, answers included. The full set, with its interactive scenes, is in the Tryals app.

10practice questions
2interactive scenes

Calculus