Functions, domain and range, composition and inverses, even/odd and monotone functions, the meaning of a limit, one-sided limits, limit laws, the standard limits you must memorise, indeterminate forms, L'Hôpital's rule, the squeeze theorem, limits at infinity and asymptotes.
A functionf:D→R assigns to each x in its domainD exactly one value f(x); the set of values is the range.
Concept
Meaning
Domain restrictions
no division by zero, no even roots of negatives, logs need positive arguments
Composition
(f∘g)(x)=f(g(x)); domain = {x∈Dg:g(x)∈Df}
Inverse
exists iff f is one-to-one; f−1(f(x))=x; graph reflected in y=x
Even / odd
f(−x)=f(x) (symmetric about the y-axis) / f(−x)=−f(x) (symmetric about the origin)
Monotone
increasing if x1<x2⇒f(x1)≤f(x2)
Periodic
f(x+T)=f(x)
Bounded
∣f(x)∣≤M for all x
Functions that appear constantly in data science: polynomials, ex and lnx, the sigmoidσ(x)=1/(1+e−x) (range (0,1), σ(−x)=1−σ(x), σ′=σ(1−σ)), tanhx, ReLUmax(0,x), ∣x∣, and the floor/ceiling functions.
Limits
limx→af(x)=L means f(x) can be made as close to L as we like by taking x close enough (but not equal) to a. Formally: for every ε>0 there is a δ>0 with 0<∣x−a∣<δ⇒∣f(x)−L∣<ε.
The value f(a) itself is irrelevant — it may not even be defined.
One-sided limits: limx→a− and limx→a+. The two-sided limit exists iff both exist and are equal.
Limit laws
If limf=L and limg=M: sums, differences, products and constant multiples behave as expected; limf/g=L/M if M=0; limfn=Ln; and for continuous h, limh(f(x))=h(L).
Standard limits to memorise
Limit
Value
limx→0xsinx, limx→0xtanx
1
limx→0x21−cosx
21
limx→0xex−1
1
limx→0xax−1
lna
limx→0xln(1+x)
1
limx→0(1+x)1/x, limx→∞(1+1/x)x
e
limx→∞(1+a/x)x
ea
limx→ax−axn−an
nan−1
limx→∞exxk, limx→∞xklnx (k>0)
0
limx→0+xx
1
Growth hierarchy as x→∞: lnx≪xk≪ax(a>1)≪x!≪xx.
Indeterminate forms
00,∞∞,0⋅∞,∞−∞,00,1∞,∞0 — the form alone does not determine the limit.
L'Hôpital's rule
If limgf is 00 or ±∞±∞, and limg′f′ exists (or is ±∞), then limgf=limg′f′. Apply repeatedly if the form persists. Check the form first — applying it to a determinate form gives wrong answers.
Squeeze (sandwich) theorem
If g(x)≤f(x)≤h(x) near a and limg=limh=L, then limf=L. Example: −x2≤x2sin(1/x)≤x2, so x2sin(1/x)→0 as x→0.
Limits at infinity and asymptotes
Rational functionsbnxn+…amxm+… as x→±∞: 0 if m<n; am/bn if m=n; ±∞ if m>n.
Horizontal asymptotey=L if limx→±∞f(x)=L (the sigmoid has y=0 and y=1).
Vertical asymptotex=a if f(x)→±∞ as x→a± (e.g. lnx at x=0).
Oblique asymptotey=mx+c with m=limf(x)/x and c=lim(f(x)−mx).
Sequences
limn→∞an follows the same rules. Useful facts: rn→0 for ∣r∣<1; n1/n→1; (1+nx)n→ex; a monotone bounded sequence converges.
Quick revision
Practice questions
GATE-style questions: 4 one-mark and 6 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
Q1NAT1 mark
x→0limxsin3x= ______.
Q2NAT2 marks
x→0limx21−cosx= ______.
Q3NAT2 marks
x→∞lim(1+x2)x= ______ (round to two decimals).
Q4MCQ1 mark
x→0limx∣x∣
Q5NAT2 marks
x→0limx3x−sinx= ______ (round to three decimals).
Q6NAT1 mark
x→2limx−2x2−4= ______.
Q7MCQ2 marks
x→0+limxlnx equals
Q8NAT2 marks
x→∞lim(x2+x−x)= ______.
Q9MSQ1 mark
Which of the following are indeterminate forms (whose limit value cannot be decided from the form alone)?