Mathematics•Chapter 1•6 min read•Updated October 5, 2026

Calculus — Functions, Limits, and Continuity

O
OIYO ScienceContributor
1/4
Calculus — Functions, Limits, and Continuity

What Is Calculus?

Calculus is the mathematics of change and accumulation. Newton and Leibniz each built a system for it in the 17th century, and it is now the shared language of physics, engineering, economics and biology.

  • Differentiation finds instantaneous rates of change.
  • Integration finds areas and accumulated quantities.

The two are tied together by the Fundamental Theorem of Calculus: integrating a continuous function and then differentiating returns the original function. This chapter covers what that theorem rests on: functions, limits and continuity.


A Review of Functions

A function f:A→Bf:A\to B assigns exactly one element of BB to each element of AA. Its codomain is specified as part of the function; the attained range f(A)f(A) need not equal that codomain.

ConceptReal-valued example and conditions
Domainf(x)=1/xf(x)=1/x is defined on R∖{0}\mathbb{R}\setminus\{0\}.
Codomain and rangeFor f:R→Rf:\mathbb{R}\to\mathbb{R}, f(x)=x2f(x)=x^2, the codomain is R\mathbb{R} but the range is [0,∞)[0,\infty).
Square rootThe real function x\sqrt{x} has domain [0,∞)[0,\infty).
Polynomial and rationalA polynomial ∑k=0nakxk\sum_{k=0}^{n}a_kx^k or a ratio of polynomials; exclude inputs where the denominator is zero.
Trigonometricsin⁡,cos⁡\sin,\cos are defined for all real inputs; tan⁡\tan requires cos⁡x≠0\cos x\ne0.
Exponential and logarithmicaxa^x and log⁡ax\log_a x with a>0a>0, a≠1a\ne1; logarithms require x>0x>0.

An Intuitive Understanding of the Limit

lim⁡x→af(x)=L\lim_{x\to a}f(x)=L describes outputs approaching LL as inputs approach aa. Here we consider finite limits of real functions, with aa an accumulation point of the domain. The value f(a)f(a) need not be defined.

x2−1x−1=x+1(x≠1),lim⁡x→1x2−1x−1=2.\frac{x^2-1}{x-1}=x+1\quad(x\ne1),\qquad \lim_{x\to1}\frac{x^2-1}{x-1}=2.

Cancellation is valid only for x≠1x\ne1. It does not make the original expression defined at x=1x=1.

The epsilon–delta definition and a proof

For every ε>0\varepsilon>0, there must exist a δ>0\delta>0 such that every domain input xx satisfying 0<∣x−a∣<δ0<|x-a|<\delta also satisfies ∣f(x)−L∣<ε|f(x)-L|<\varepsilon. The choice of δ\delta may depend on ε\varepsilon, but cannot be selected separately after seeing each qualifying xx.

In the example, a=1a=1 and L=2L=2 give ∣f(x)−2∣=∣x−1∣|f(x)-2|=|x-1|. For any ε>0\varepsilon>0, choose δ=ε\delta=\varepsilon; the implication follows immediately. Checking a few nearby numerical inputs is not a proof covering all such inputs.


Left-Hand and Right-Hand Limits

Write a right-hand approach as lim⁡x→a+f(x)\lim_{x\to a^+}f(x) and a left-hand approach as lim⁡x→a−f(x)\lim_{x\to a^-}f(x). When the domain permits approach from both sides, a two-sided finite limit exists exactly when the one-sided limits agree.

Approach for f(x)=∣x∣/xf(x)=\lvert x\rvert/x (x≠0x\ne0)Function value
Toward 00 from x<0x<0−1-1
Toward 00 from x>0x>011

The values differ, so lim⁡x→0∣x∣/x\lim_{x\to0}|x|/x does not exist. This is the absolute value divided by xx, not the absolute-value function itself. At a domain endpoint, continuity uses approach from within the domain.


Properties of Limits

Suppose lim⁡x→af(x)=L\lim_{x\to a}f(x)=L and lim⁡x→ag(x)=M\lim_{x\to a}g(x)=M both exist as finite values, and cc is constant.

OperationResult and condition
Sum or differencelim⁡(f±g)=L±M\lim(f\pm g)=L\pm M
Productlim⁡(fg)=LM\lim(fg)=LM
Quotientlim⁡(f/g)=L/M\lim(f/g)=L/M, requiring M≠0M\ne0
Constant multiplelim⁡(cf)=cL\lim(cf)=cL
Powerlim⁡fn=Ln\lim f^n=L^n; here nn is a positive integer

A zero denominator limit prevents use of the quotient law. The expression 0/00/0 is not a limit value: further analysis is needed.

The squeeze theorem

If g(x)≤f(x)≤h(x)g(x)\le f(x)\le h(x) throughout a sufficiently small punctured neighborhood of aa, and both bounding limits equal LL, the middle limit also equals LL.

−∣x∣≤xsin⁡(1/x)≤∣x∣(x≠0).-|x|\le x\sin(1/x)\le |x|\quad(x\ne0).

Both bounds follow from ∣sin⁡(1/x)∣≤1|\sin(1/x)|\le1. As x→0x\to0, the bounds approach 0, so the middle limit is 0. Using ∣x∣|x| ensures the bounds remain valid for negative inputs as well.


Limits at Infinity and Asymptotes

If f(x)f(x) approaches a finite value LL as xx grows without bound, we write lim⁡x→∞f(x)=L\lim_{x\to\infty}f(x)=L. For a rational function, divide numerator and denominator by the highest power in the denominator.

lim⁡x→∞3x2+2xx2−1=lim⁡x→∞3+2/x1−1/x2=3+01−0=3.\lim_{x\to\infty}\frac{3x^2+2x}{x^2-1} =\lim_{x\to\infty}\frac{3+2/x}{1-1/x^2}=\frac{3+0}{1-0}=3.
  • Horizontal asymptote: if lim⁡x→∞f(x)=L\lim_{x\to\infty}f(x)=L or lim⁡x→−∞f(x)=L\lim_{x\to-\infty}f(x)=L, the line y=Ly=L is a horizontal asymptote. Here it is y=3y=3.
  • Vertical asymptote: if f(x)→±∞f(x)\to\pm\infty as x→a+x\to a^+ or x→a−x\to a^-, the line x=ax=a is a vertical asymptote. The function above has them at x=1x=1 and x=−1x=-1, where the denominator is zero and the numerator is not.

Writing f(x)→∞f(x)\to\infty does not say the limit exists; it describes how the function diverges.


Continuity

A function ff is continuous at a point aa of its domain when lim⁡x→af(x)=f(a)\lim_{x\to a}f(x)=f(a). That one line contains three conditions.

  1. f(a)f(a) is defined.
  2. lim⁡x→af(x)\lim_{x\to a}f(x) exists.
  3. The two values are equal.
Type of discontinuityConditionExample
RemovableThe limit exists, but f(a)f(a) is missing or differs from itx2−1x−1\dfrac{x^2-1}{x-1} at x=1x=1
JumpBoth one-sided limits are finite but unequal∣x∣/x\lvert x\rvert/x at x=0x=0
InfiniteAt least one one-sided limit diverges to ±∞\pm\infty1/x1/x at x=0x=0

Polynomial, trigonometric, exponential and logarithmic functions are continuous on their domains. Sums, differences, products and compositions of continuous functions are continuous, and a quotient is continuous wherever the denominator is nonzero.


The Intermediate Value Theorem

If ff is continuous on the closed interval [a,b][a,b] and kk lies between f(a)f(a) and f(b)f(b), then there is at least one c∈(a,b)c\in(a,b) with f(c)=kf(c)=k.

A continuous function cannot skip values. If temperature is continuous in time and rises from 0°C in the morning to 15°C at noon, it passes through every temperature in between at least once.

Example. f(x)=x3−x−2f(x)=x^3-x-2 is a polynomial, so it is continuous on [1,2][1,2]. Since f(1)=−2<0f(1)=-2<0 and f(2)=4>0f(2)=4>0, some cc in (1,2)(1,2) satisfies f(c)=0f(c)=0. The theorem says only that a root exists; it gives neither its value nor how many there are.

Drop continuity and the theorem fails. f(x)=1/xf(x)=1/x has f(−1)=−1f(-1)=-1 and f(1)=1f(1)=1, but it is not continuous on [−1,1][-1,1] and no cc gives f(c)=0f(c)=0.


Check your understanding

Problem. Find lim⁡x→2x2−4x−2\displaystyle\lim_{x\to2}\frac{x^2-4}{x-2} and classify the discontinuity of g(x)=x2−4x−2g(x)=\dfrac{x^2-4}{x-2} at x=2x=2. How should g(2)g(2) be defined to make gg continuous?

Solution. For x≠2x\ne2, x2−4x−2=x+2\dfrac{x^2-4}{x-2}=x+2, so the limit is 4. The limit exists but g(2)g(2) is undefined, so the discontinuity is removable. Setting g(2)=4g(2)=4 gives lim⁡x→2g(x)=g(2)\lim_{x\to2}g(x)=g(2), and gg is continuous.

References

  • James Stewart, Calculus: Early Transcendentals, ch. 1–2
  • Michael Spivak, Calculus, ch. 5–7 (the ε–δ definition and theorems on continuous functions)
O

OIYO Science

Science Desk

The OIYO science desk explains astronomy, physics, and everyday science with structure before memorization. We translate textbook concepts and current consensus into plain analogies, checked so simplification never distorts the facts.