← Back to College Math

Derivatives and Differentiation Rules

College Math · Calculus IPreview

1. Introduction

The derivative is the central object of differential calculus. It answers a deceptively simple question: how fast is a quantity changing at a single instant? Velocity is the derivative of position, marginal cost is the derivative of total cost, and the slope of a tangent line is the derivative of a curve. Wherever we want to understand rates of change — in physics, economics, biology, or engineering — the derivative is the tool.

Geometrically, the derivative f(a)f'(a) is the slope of the line tangent to the graph of ff at the point (a,f(a))(a, f(a)). We obtain it by taking secant lines through nearby points and letting those points slide together, a limiting process that turns an average rate of change into an instantaneous one.

Computing derivatives from the limit definition every time would be exhausting. Fortunately, a small set of differentiation rules — the power, product, quotient, and chain rules, together with the derivatives of elementary functions — lets us differentiate almost any expression mechanically. This article develops the definition, derives the major rules with proofs, and shows how to combine them fluently.

The derivative is both a geometric object (slope of the tangent) and a physical one (instantaneous rate of change). Every differentiation rule reverses or extends the limit definition: the power rule comes from the binomial theorem, the product rule from adding a clever zero, the quotient rule from the product rule plus the chain rule on g1g^{-1}, and the chain rule from the Leibniz chain of rates. Mastering the decision tree — which rule to apply first — is as important as memorizing the formulas themselves.

2. Core Concepts

2.1 The Limit Definition of the Derivative

The derivative of ff at xx is the limit of the difference quotient: f(x)=limh0f(x+h)f(x)h,f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}, provided this limit exists. The quotient f(x+h)f(x)h\frac{f(x+h)-f(x)}{h} is the slope of the secant line between (x,f(x))(x, f(x)) and (x+h,f(x+h))(x+h, f(x+h)); sending h0h\to 0 collapses the secant into the tangent. An equivalent form using a fixed point aa is f(a)=limxaf(x)f(a)xa.f'(a) = \lim_{x\to a}\frac{f(x) - f(a)}{x - a}.

Example from definition: For f(x)=x2f(x) = x^2, at any xx: f(x)=limh0(x+h)2x2h=limh02xh+h2h=limh0(2x+h)=2x.f'(x) = \lim_{h\to 0}\frac{(x+h)^2 - x^2}{h} = \lim_{h\to 0}\frac{2xh + h^2}{h} = \lim_{h\to 0}(2x + h) = 2x.

2.2 Differentiability and Continuity

If ff is differentiable at aa, then ff is continuous at aa.

Proof sketch: limxa[f(x)f(a)]=limxaf(x)f(a)xa(xa)=f(a)0=0\lim_{x\to a}[f(x) - f(a)] = \lim_{x\to a}\frac{f(x)-f(a)}{x-a}\cdot(x-a) = f'(a)\cdot 0 = 0, so limxaf(x)=f(a)\lim_{x\to a}f(x) = f(a).

The converse fails: f(x)=xf(x) = |x| is continuous at 00 but not differentiable there (left slope 1-1, right slope +1+1). Differentiability also fails at vertical tangents (e.g. f(x)=x1/3f(x) = x^{1/3} at 00) and at cusps. A differentiable function is "locally linear" — it looks like its tangent line when zoomed in.

2.3 Tangent Lines and Linear Approximation

The tangent line to y=f(x)y = f(x) at (a,f(a))(a, f(a)) has equation yf(a)=f(a)(xa),ory=L(x)=f(a)+f(a)(xa).y - f(a) = f'(a)(x - a), \qquad\text{or}\qquad y = L(x) = f(a) + f'(a)(x - a). This linearization is the best first-order approximation to ff near x=ax = a.

2.4 Deriving the Power Rule

For a positive integer nn, expand (x+h)n(x+h)^n with the binomial theorem: (x+h)nxnh=nxn1+(n2)xn2h+.\frac{(x+h)^n - x^n}{h} = nx^{n-1} + \binom{n}{2}x^{n-2}h + \cdots. Every term after the first contains a factor of hh, so as h0h\to 0 they vanish, leaving f(x)=nxn1f'(x) = nx^{n-1}. The rule extends to all real exponents via implicit or logarithmic differentiation.

2.5 Deriving the Constant Multiple and Sum Rules

Constant multiple: ddx[cf(x)]=cf(x+h)f(x)hcf(x)\frac{d}{dx}[cf(x)] = c\cdot\frac{f(x+h)-f(x)}{h} \to c f'(x).

Sum rule: ddx[f+g]=lim[f(x+h)+g(x+h)][f(x)+g(x)]h=f(x)+g(x)\frac{d}{dx}[f+g] = \lim\frac{[f(x+h)+g(x+h)]-[f(x)+g(x)]}{h} = f'(x) + g'(x).

2.6 Deriving the Product Rule

Let P(x)=f(x)g(x)P(x) = f(x)g(x). Add and subtract f(x+h)g(x)f(x+h)g(x) in the numerator: f(x+h)g(x+h)f(x)g(x)h=f(x+h)g(x+h)g(x)h+g(x)f(x+h)f(x)h.\frac{f(x+h)g(x+h) - f(x)g(x)}{h} = f(x+h)\frac{g(x+h)-g(x)}{h} + g(x)\frac{f(x+h)-f(x)}{h}. As h0h\to 0, f(x+h)f(x)f(x+h)\to f(x) (continuity), and the difference quotients tend to g(x)g'(x) and f(x)f'(x), giving (fg)=fg+fg.(fg)' = f'g + fg'.

2.7 Deriving the Quotient Rule

Write fg=fg1\frac{f}{g} = f \cdot g^{-1}. By the product rule and chain rule (with (g1)=g/g2(g^{-1})' = -g'/g^2): (fg)=f1g+f(gg2)=fgfgg2.\left(\frac{f}{g}\right)' = f'\cdot\frac{1}{g} + f\cdot\left(-\frac{g'}{g^2}\right) = \frac{f'g - fg'}{g^2}.

2.8 The Chain Rule

For a composite y=f(g(x))y = f(g(x)), write u=g(x)u = g(x). The Leibniz form makes the idea transparent: dydx=dydududx.\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}. Formally, ddxf(g(x))=f(g(x))g(x)\frac{d}{dx}f(g(x)) = f'(g(x))\,g'(x).

Proof sketch (Leibniz): If y=f(u)y = f(u) and u=g(x)u = g(x), then Δyf(u)Δu\Delta y \approx f'(u)\,\Delta u and Δug(x)Δx\Delta u \approx g'(x)\,\Delta x, so Δyf(u)g(x)Δx\Delta y \approx f'(u)\,g'(x)\,\Delta x, giving dydx=f(g(x))g(x)\frac{dy}{dx} = f'(g(x))\,g'(x).

2.9 Derivatives of Inverse Functions

If y=f1(x)y = f^{-1}(x) and f(y)0f'(y) \neq 0, then (f1)(x)=1f(f1(x)).(f^{-1})'(x) = \frac{1}{f'(f^{-1}(x))}. This yields ddxarcsinx=11x2\frac{d}{dx}\arcsin x = \frac{1}{\sqrt{1-x^2}} and ddxarctanx=11+x2\frac{d}{dx}\arctan x = \frac{1}{1+x^2}.

2.10 Higher-Order Derivatives

The second derivative f(x)=(f)(x)f''(x) = (f')'(x) measures the rate of change of the slope (concavity). The nnth derivative f(n)(x)f^{(n)}(x) is defined inductively. Notation: ff'', ff''', f(n)f^{(n)}, or dnydxn\frac{d^n y}{dx^n}.

2.11 Implicit and Logarithmic Differentiation

When yy is defined implicitly by F(x,y)=0F(x,y) = 0, differentiate both sides with respect to xx, treating yy as a function of xx (chain rule on every yy-term), then solve for yy'.

For y=f(x)g(x)y = f(x)^{g(x)} or products of many factors, take ln\ln of both sides: lny=g(x)lnf(x)\ln y = g(x)\ln f(x), differentiate implicitly, then solve for yy'.

2.12 Mean Value Theorem Preview

If ff is continuous on [a,b][a,b] and differentiable on (a,b)(a,b), then some c(a,b)c \in (a,b) satisfies f(c)=f(b)f(a)baf'(c) = \frac{f(b)-f(a)}{b-a}. Differentiability is what connects local slopes to global average change — a theme developed fully in applications of derivatives.

2.13 Derivatives of Trigonometric Functions from First Principles

Using limh0sinhh=1\lim_{h\to 0}\frac{\sin h}{h} = 1 and the angle-addition formula: ddxsinx=limh0sin(x+h)sinxh=limh0cosxsinhh+sinxcosh1h=cosx.\frac{d}{dx}\sin x = \lim_{h\to 0}\frac{\sin(x+h)-\sin x}{h} = \lim_{h\to 0}\cos x\cdot\frac{\sin h}{h} + \sin x\cdot\frac{\cos h - 1}{h} = \cos x. Similarly, ddxcosx=sinx\frac{d}{dx}\cos x = -\sin x follows from the cosine addition formula.

2.14 The Derivative as a Linear Operator

Differentiation is linear: (cf+dg)=cf+dg(cf + dg)' = cf' + dg' for constants c,dc, d. This means we can differentiate term-by-term in any finite sum. It does not mean (fg)=fg(fg)' = f'g' — products require the product rule.

2.15 Parametric and Related Rates Preview

If x=x(t)x = x(t) and y=y(t)y = y(t), the chain rule gives dydx=dy/dtdx/dt\frac{dy}{dx} = \frac{dy/dt}{dx/dt} when dxdt0\frac{dx}{dt} \neq 0. This is the foundation of related rates and parametric tangent slopes.

Continue reading with Premium

Upgrade to read the full article and unlock all Premium features.

Free

  • Unlimited practice — all difficulties
  • 3 hints / day
  • Community solutions
  • 2 timed mocks / month

Premium

  • Full article + all 57+ theory guides
  • Unlimited hints on practice problems
  • Unlimited timed mock exams & PDF worksheets
Log in