Functions, Limits & Continuity
The bedrock of calculus — what a function is, what it means to approach a value, and what it takes for a curve to be drawn without lifting the pen
- What a function is — its domain, codomain and range — and how to find them.
- The main types of functions: one-one, onto, even, odd, periodic, composite and inverse.
- The meaning of a limit, with left- and right-hand limits and the test for existence.
- The algebra of limits and the standard limits that resolve most problems.
- Indeterminate forms and the techniques — factorise, rationalise, substitute — that crack them.
- Continuity at a point, the kinds of discontinuity, and the Intermediate Value Theorem.
What Is a Function?
A function \(f:X\to Y\) is a rule that assigns to each element of a set \(X\) exactly one element of a set \(Y\). The set \(X\) is the domain, \(Y\) the codomain, and the set of values actually attained, \(\{f(x):x\in X\}\), the range.
Types of Functions
Functions are classified by how they pair inputs with outputs, and by their symmetry. These labels recur constantly when we invert, compose or integrate later.
One-one (injective): distinct inputs give distinct outputs. Onto (surjective): the range fills the codomain. Both together: bijective — and invertible.
Even: \(f(-x)=f(x)\) (symmetric about the \(y\)-axis). Odd: \(f(-x)=-f(x)\) (symmetric about the origin).
Repeats every \(T\): \(f(x+T)=f(x)\). For instance \(\sin x\) has period \(2\pi\).
Composite \((f\circ g)(x)=f(g(x))\). The inverse \(f^{-1}\) exists for a bijection and undoes \(f\).
With \(f(x)=2x+3\) and \(g(x)=x^2\), the composite \((f\circ g)(x)=2x^2+3\) — feed \(g\)'s output into \(f\). Order matters: \((g\circ f)(x)=(2x+3)^2\) is different.
The Idea of a Limit
The limit of \(f(x)\) as \(x\to a\) is the value \(f(x)\) approaches as \(x\) gets close to \(a\) — regardless of what happens at \(a\) itself. Approaching from below gives the left-hand limit; from above, the right-hand limit.
The limit exists only when the left- and right-hand limits are equal. The value \(f(a)\) is irrelevant to the limit — the function need not even be defined at \(a\).
The Algebra of Limits
Provided the individual limits exist, limits distribute over sums, products and quotients. This lets us break a complicated limit into manageable pieces.
The quotient rule requires \(\lim g\neq0\). When direct substitution gives a finite, defined value, the limit simply equals that value — the interesting cases are exactly those where it does not.
Standard Limits
A short list of limits, proved once, resolves the overwhelming majority of problems. The most famous is the trigonometric limit that underlies the derivative of \(\sin x\).
Also essential: \(\lim_{x\to0}\dfrac{a^x-1}{x}=\ln a\), \(\lim_{x\to0}\dfrac{\ln(1+x)}{x}=1\), \(\lim_{x\to0}(1+x)^{1/x}=e\), and \(\lim_{x\to a}\dfrac{x^n-a^n}{x-a}=na^{n-1}\).
Indeterminate Forms & Techniques
When direct substitution yields an indeterminate form such as \(\tfrac00\) or \(\tfrac{\infty}{\infty}\), the expression must be reshaped before the limit reveals itself. Three algebraic moves handle most cases.
For \(\tfrac00\) from a common root, factor numerator and denominator and cancel the vanishing factor.
When square roots cause the \(\tfrac00\), multiply by the conjugate to clear them.
Reshape into a known standard limit, or substitute \(x=a+h\) with \(h\to0\).
Continuity at a Point
A function is continuous at \(a\) if its graph has no break there — the limit exists, the value exists, and they agree. This single three-part condition is the whole definition.
Equivalently, \(\lim_{x\to a}f(x)=f(a)\): the limit must exist and equal the function's value. Sums, products, quotients (where the denominator is non-zero) and composites of continuous functions are continuous, so polynomials, \(\sin x\), \(e^x\) and the like are continuous everywhere they are defined.
Kinds of Discontinuity & the IVT
A function fails to be continuous at \(a\) when the three-part condition breaks. The way it breaks sorts the discontinuity into three kinds.
A removable discontinuity has a limit but a wrong or missing value; a jump has unequal one-sided limits; an infinite discontinuity has a one-sided limit running off to \(\pm\infty\). On a closed interval, continuity guarantees a remarkable conclusion.
A continuous curve cannot get from one height to another without passing through every height in between. In particular, if \(f(a)\) and \(f(b)\) have opposite signs, then \(f\) has a root in \((a,b)\).
Putting It to Work
Problem. Find the domain and range of \(f(x)=\sqrt{4-x^2}\).
Solution. The root needs \(4-x^2\ge0\), i.e. \(-2\le x\le2\); then \(4-x^2\) ranges over \([0,4]\), so its square root ranges over \([0,2]\):
Problem. If \(f(x)=2x+3\) and \(g(x)=x^2\), find \(f\circ g\) and \(g\circ f\).
Solution. Substitute one function into the other:
Problem. Evaluate \(\displaystyle\lim_{x\to2}\frac{x^2-4}{x-2}\).
Solution. Direct substitution gives \(\tfrac00\); factor and cancel:
Problem. Evaluate \(\displaystyle\lim_{x\to0}\frac{\sqrt{1+x}-1}{x}\).
Solution. Multiply by the conjugate \(\sqrt{1+x}+1\):
Problem. Evaluate \(\displaystyle\lim_{x\to0}\frac{\sin 5x}{\sin 3x}\).
Solution. Write each factor in \(\tfrac{\sin\theta}{\theta}\) form, which tends to \(1\):
Problem. Find \(k\) so that \(f(x)=\dfrac{1-\cos x}{x^2}\) for \(x\neq0\) and \(f(0)=k\) is continuous at \(0\).
Solution. Continuity needs \(k=\lim_{x\to0}f(x)\); using the standard limit:
Chapter Summary
One input, one output; know the domain, codomain and range.
One-one, onto, bijective, even/odd, periodic, composite, inverse.
When \(\lim_{x\to a^-}f=\lim_{x\to a^+}f\); value at \(a\) is irrelevant.
\(\tfrac{\sin x}{x}\to1\), \(\tfrac{e^x-1}{x}\to1\), \((1+x)^{1/x}\to e\), and factor/rationalise for \(\tfrac00\).
\(\lim_{x\to a}f(x)=f(a)\); breaks give removable, jump or infinite discontinuities.
A continuous function hits every value between \(f(a)\) and \(f(b)\).
Problems
Substitute first; if you meet an indeterminate form, factor, rationalise or call on a standard limit. Difficulty rises down the list.
- Find the domain of \(f(x)=\dfrac{1}{x^2-4}\).
- Find the domain of \(f(x)=\sqrt{x-3}\).
- If \(f(x)=3x-1\) and \(g(x)=x^2+1\), find \((f\circ g)(2)\).
- Evaluate \(\displaystyle\lim_{x\to3}\frac{x^2-9}{x-3}\).
- Evaluate \(\displaystyle\lim_{x\to0}\frac{\sqrt{1+x}-\sqrt{1-x}}{x}\).
- Evaluate \(\displaystyle\lim_{x\to0}\frac{\tan 7x}{\sin 2x}\).
- Evaluate \(\displaystyle\lim_{x\to0}\frac{e^{3x}-1}{x}\).
- Evaluate \(\displaystyle\lim_{x\to\infty}\frac{3x^2+2x+1}{x^2-5}\).
- Evaluate \(\displaystyle\lim_{x\to0}\frac{1-\cos 2x}{x^2}\).
- Find \(k\) for which \(f(x)=\dfrac{x^2-1}{x-1}\ (x\neq1),\ f(1)=k\) is continuous at \(x=1\).
- Examine the continuity of \(f(x)=|x|\) at \(x=0\).
- Show that \(f(x)=[x]\) (the greatest-integer function) is discontinuous at every integer.