Single-Variable Derivatives & Integrals

Derivatives measure local sensitivity and integrals measure signed accumulation; the Fundamental Theorem of Calculus explains why these apparently different limits invert one another. This chapter derives the core rules, states their domain conditions, and builds a practical workflow for differentiation, qualitative analysis, and integration.

A derivative compresses nearby behavior into a local linear model; an integral assembles many small contributions into a net total. Both are limits, and the Fundamental Theorem of Calculus connects them: continuous rates accumulate into a function whose derivative recovers the rate, while an antiderivative evaluates the corresponding accumulation between endpoints.

One physical quantity, two different questions #

A derivative answers “how fast is this changing now?” An integral answers “how much change accumulated over an interval?” They operate on the same model but return different kinds of information, with different units.

This unit check is a fast conceptual test: a derivative divides output units by input units, while an integral multiplies by the integration variable's units.

The derivative is local sensitivity #

Geometrically, secant slopes approach the tangent slope. In a model, the units matter: if s(t)s(t) is measured in metres and tt in seconds, then s′(t)s'(t) has units metres per second. A derivative is not “just a formula”—it is a conversion factor from a small input change to a first-order output change.

If ff is differentiable at aa, then

f(a+h)=f(a)+f′(a)h+r(h),r(h)h→0.f(a+h)=f(a)+f'(a)h+r(h), \qquad \frac{r(h)}{h}\to0.

The linear term f′(a)hf'(a)h dominates the remainder at sufficiently small scale. This is the precise reason tangent-line approximation works.

A cusp, corner, jump, or sufficiently wild oscillation can destroy differentiability. A vertical tangent is also not an ordinary real derivative: if difference quotients diverge to an infinite magnitude, report a vertical tangent or an infinite-slope limit, not the equation f′(a)=∞f'(a)=\infty as though infinity were a real number.

The rules come from the limit #

For an integer n≥1n\ge1, the binomial theorem gives

(x+h)n−xn=nxn−1h+(n2)xn−2h2+⋯+hn.(x+h)^n-x^n =nx^{n-1}h+\binom{n}{2}x^{n-2}h^2+\cdots+h^n.

After division by hh, every term except nxn−1nx^{n-1} still contains a positive power of hh and vanishes as h→0h\to0. Hence

ddxxn=nxn−1.\frac{d}{dx}x^n=nx^{n-1}.

The same difference-quotient algebra produces the sum, product, and quotient rules. Their compact forms are:

(af+bg)′=af′+bg′,(af+bg)'=af'+bg',

(fg)′=f′g+fg′,(fg)'=f'g+fg',

(fg)′=f′g−fg′g2,g≠0.\left(\frac{f}{g}\right)' =\frac{f'g-fg'}{g^2}, \qquad g\ne0.

The denominator condition belongs to the rule. A symbolic derivative outside the original real domain is not a derivative of the original function there.

The chain rule tracks nested change #

If y=f(u)y=f(u) and u=g(x)u=g(x), differentiability of gg at xx and of ff at g(x)g(x) gives

dydx=f′(g(x))g′(x).\frac{dy}{dx} =f'(g(x))g'(x).

The outer function sees a small change Δu≈g′(x)Δx\Delta u\approx g'(x)\Delta x, then converts it to Δy≈f′(u)Δu\Delta y\approx f'(u)\Delta u. Multiplying the two local conversion factors yields the chain rule.

Useful elementary derivatives include

(ex)′=ex,(ln⁡x)′=1x(x>0),(e^x)'=e^x, \qquad (\ln x)'=\frac1x\quad(x>0),

(sin⁡x)′=cos⁡x,(cos⁡x)′=−sin⁡x.(\sin x)'=\cos x, \qquad (\cos x)'=-\sin x.

For x≠0x\ne0, (ln⁡∣x∣)′=1/x(\ln\lvert x\rvert)'=1/x. Logarithmic differentiation should therefore use ln⁡∣y∣\ln\lvert y\rvert when the differentiated expression may be negative and should state where the original expression is nonzero. For a real power xαx^\alpha, the largest real domain depends on α\alpha; the familiar formula αxα−1\alpha x^{\alpha-1} must be applied only where the chosen real power is differentiable.

Implicit, inverse, and parametric derivatives #

Suppose a curve is specified by F(x,y)=0F(x,y)=0. Differentiating along a differentiable branch y(x)y(x) gives

Fx(x,y)+Fy(x,y)y′=0,F_x(x,y)+F_y(x,y)y'=0,

so

y′=−FxFyy'=-\frac{F_x}{F_y}

where Fy≠0F_y\ne0. The denominator is not an optional algebraic detail: it is the local condition that lets the curve be represented as a graph y(x)y(x).

For a parametric curve x=x(t)x=x(t), y=y(t)y=y(t),

dydx=dy/dtdx/dt\frac{dy}{dx}=\frac{dy/dt}{dx/dt}

when dx/dt≠0dx/dt\ne0. If both numerator and denominator vanish, the displayed ratio is indeterminate; simplify the parametrization or analyze the limiting tangent rather than cancelling blindly.

For an inverse f−1f^{-1}, if ff is locally one-to-one, differentiable, and f′(x)≠0f'(x)\ne0, then

(f−1)′(f(x))=1f′(x).(f^{-1})'(f(x))=\frac{1}{f'(x)}.

All three formulas express the same principle: local invertibility fails when the relevant rate in the denominator vanishes.

From derivatives to shape and bounds #

The mean value theorem states that 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)b−a.f'(c)=\frac{f(b)-f(a)}{b-a}.

This theorem turns local derivative information into interval-wide conclusions:

  • if f′>0f'>0 throughout an interval, ff is strictly increasing there;
  • if f′=0f'=0 throughout an interval, ff is constant there;
  • if ∣f′∣≤M\lvert f'\rvert\le M, then ∣f(b)−f(a)∣≤M∣b−a∣\lvert f(b)-f(a)\rvert\le M\lvert b-a\rvert;
  • critical points are candidates for extrema, but endpoints and nondifferentiable domain points must also be checked.

The second derivative tracks change in slope. Where f′′>0f''>0, slopes increase and the graph is convex (often called concave up in elementary calculus); where f′′<0f''<0, slopes decrease. A sign change of f′′f'' can certify an inflection point, but merely solving f′′=0f''=0 cannot: f(x)=x4f(x)=x^4 has f′′(0)=0f''(0)=0 without changing convexity.

The integral is signed accumulation #

For a partition a=x0<x1<⋯<xn=ba=x_0<x_1<\cdots<x_n=b, choose a sample xi∗x_i^* in each subinterval and form

∑i=1nf(xi∗)Δxi,Δxi=xi−xi−1.\sum_{i=1}^n f(x_i^*)\Delta x_i, \qquad \Delta x_i=x_i-x_{i-1}.

If these sums approach one value as the maximum subinterval width tends to zero, that value is the definite integral:

∫abf(x) dx.\int_a^b f(x)\,dx.

Continuous functions on a closed interval are Riemann integrable. The integral is signed: regions where f<0f<0 subtract from the total. The geometric area between the graph and the axis is instead ∫ab∣f(x)∣ dx\int_a^b\lvert f(x)\rvert\,dx, usually split at sign changes.

Units multiply. If v(t)v(t) is metres per second, then ∫t0t1v(t) dt\int_{t_0}^{t_1}v(t)\,dt is net displacement in metres. Integrating speed ∣v(t)∣\lvert v(t)\rvert gives total distance.

Do not conflate two notations:

∫abf(x) dx\int_a^b f(x)\,dx

is a number, while

∫f(x) dx=F(x)+C\int f(x)\,dx=F(x)+C

denotes the family of antiderivatives satisfying F′=fF'=f on an interval. The constant is required because differentiation erases additive constants.

Why differentiation and integration invert one another #

Define an accumulation function for continuous ff:

A(x)=∫axf(t) dt.A(x)=\int_a^x f(t)\,dt.

Then

A(x+h)−A(x)h=1h∫xx+hf(t) dt.\frac{A(x+h)-A(x)}{h} =\frac1h\int_x^{x+h}f(t)\,dt.

The right-hand side is the average value of ff on the shrinking interval. Continuity forces that average toward f(x)f(x), so

A′(x)=f(x).A'(x)=f(x).

This is the first part of the Fundamental Theorem of Calculus. The evaluation part says that if F′=fF'=f on [a,b][a,b] and ff is continuous, then

∫abf(x) dx=F(b)−F(a).\int_a^b f(x)\,dx=F(b)-F(a).

Accumulation mechanism behind the Fundamental Theorem of Calculus The area under f from a to x is A of x. Extending the upper endpoint by a narrow width h adds a strip whose area is approximately f of x times h. Dividing by h and shrinking h gives A prime of x equals f of x. An extra sliver reveals the local rate of accumulation a x x + h f(t) A(x) = ∫ₐˣ f(t) dt height ≈ f(x) width h added accumulation A(x+h) − A(x) = ∫ₓˣ⁺ʰ f(t) dt divide by h average height let h → 0 A′(x) = f(x)
The Fundamental Theorem's local mechanism: the added accumulation over a shrinking interval has average height approaching f(x), so A'(x)=f(x).

The continuity hypotheses are a clean sufficient condition. More advanced integration theories weaken them, but the elementary FTC should not be applied across a singularity without first treating the integral as improper and proving convergence.

Integration techniques reverse derivative rules #

Not every elementary integrand has an elementary antiderivative, so a finite table of reverse rules cannot cover every case. The main hand techniques are structured reversals.

Substitution reverses the chain rule #

If u=g(x)u=g(x) and the needed continuity conditions hold,

∫f(g(x))g′(x) dx=∫f(u) du.\int f(g(x))g'(x)\,dx =\int f(u)\,du.

For definite integrals, either transform the bounds to uu-values or substitute back before evaluating; mixing the two coordinate systems is an error.

Integration by parts reverses the product rule #

From (uv)′=u′v+uv′(uv)'=u'v+uv',

∫u dv=uv−∫v du.\int u\,dv=uv-\int v\,du.

For example,

∫xex dx=xex−∫ex dx=ex(x−1)+C.\int xe^x\,dx =xe^x-\int e^x\,dx =e^x(x-1)+C.

Differentiate the result to verify it. In repeated integration by parts, track signs and boundary terms explicitly rather than trusting a memorized pattern.

Rational functions require algebra first #

For P(x)/Q(x)P(x)/Q(x):

  1. perform polynomial division when deg⁡P≥deg⁡Q\deg P\ge\deg Q;
  2. factor QQ over the chosen field;
  3. include a full partial-fraction template—one term for every power of a repeated linear factor, and a linear numerator for every power of an irreducible quadratic factor;
  4. solve the coefficients and integrate term by term.

The decomposition is valid away from the zeros of QQ. An antiderivative containing ln⁡∣x−a∣\ln\lvert x-a\rvert is defined separately on intervals that do not cross the pole x=ax=a; one constant CC need not serve disconnected domain components.

Improper integrals are convergence limits #

An infinite interval or an unbounded integrand is not covered by the ordinary Riemann integral on a closed bounded interval. The notation is defined through a limit. For example,

∫a∞f(x) dx=lim⁡R→∞∫aRf(x) dx,\int_a^\infty f(x)\,dx =\lim_{R\to\infty}\int_a^R f(x)\,dx,

provided that the limit exists and is finite. If ff is unbounded near the right endpoint instead, then

∫abf(x) dx=lim⁡t→b−∫atf(x) dx.\int_a^b f(x)\,dx =\lim_{t\to b^-}\int_a^t f(x)\,dx.

A singularity inside (a,b)(a,b) requires two integrals split at the singular point, and both must converge. Opposite divergences may cancel in a Cauchy principal value, but that is a different definition and does not make the ordinary improper integral converge.

The power family gives the two reference thresholds. For p≠1p\ne1,

∫1Rx−p dx=R1−p−11−p,\int_1^R x^{-p}\,dx=\frac{R^{1-p}-1}{1-p},

so ∫1∞x−p dx\int_1^\infty x^{-p}\,dx converges exactly when p>1p>1. At the other end, ∫01x−p dx\int_0^1x^{-p}\,dx converges exactly when p<1p<1. When p=1p=1, the antiderivative is ln⁡x\ln x, and the relevant endpoint limit diverges in both cases. The existence of an antiderivative formula therefore does not by itself establish a finite integral.

Practical verification and failure modes #

For a derivative, compare units, domain, and a finite-difference estimate away from singular points. For an indefinite integral, differentiate the candidate. For a definite integral, also check sign, scale, and any symmetry.

A good workflow preserves meaning at every step: state the domain, identify the local or accumulated quantity and its units, choose the rule whose hypotheses match the structure, and verify the result by reversing the operation whenever possible.

Sources

  1. bookDifferential and Integral Calculus of a Function of One Variable: Lecture Notes and Practicumpdfnotes
  2. bookOpenStax Calculus Volume 1 — The Derivative as a Function
  3. bookOpenStax Calculus Volume 1 — Derivatives as Rates of Change
  4. bookOpenStax Calculus Volume 1 — The Chain Rule
  5. bookOpenStax Calculus Volume 1 — Linear Approximations and Differentials
  6. bookOpenStax Calculus Volume 1 — The Definite Integral
  7. bookOpenStax Calculus Volume 1 — The Fundamental Theorem of Calculus
  8. bookOpenStax Calculus Volume 1 — Substitution
  9. bookOpenStax Calculus Volume 1 — The Mean Value Theorem
  10. bookOpenStax Calculus Volume 2 — Integration by Parts
  11. bookOpenStax Calculus Volume 2 — Partial Fractions
  12. bookOpenStax Calculus Volume 2 — Improper Integrals
  13. docsMIT OpenCourseWare 18.01SC — Single Variable Calculus syllabus

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close