Skip to main content

Number and Algebra

Sets

A set is a collection of distinct elements, written by listing its members inside curly braces or by specifying a property that its members satisfy.

Notation

  • \emptyset — the empty set (contains no elements)
  • xXx \in X — the element xx belongs to the set XX
  • xXx \notin X — the element xx does not belong to XX
  • ABA \subseteq BAA is a subset of BB: every element of AA is also an element of BB
  • A|A| — the cardinality (number of elements) of a finite set AA
  • {P}(A)\mathcal{'\{'}P{'\}'}(A) — the power set of AA: the set of all subsets of AA

Set-Builder Notation

A set can be defined by a property:

{x{R}x24=0}={2,2}\{x \in \mathbb{'\{'}R{'\}'} \mid x^2 - 4 = 0\} = \{-2, 2\}

The vertical bar is read "such that."

Set Operations

Let AA and BB be subsets of a universal set UU.

  • Union: AB={xUxAorxB}A \cup B = \{x \in U \mid x \in A \mathrm{ or } x \in B\}
  • Intersection: AB={xUxAandxB}A \cap B = \{x \in U \mid x \in A \mathrm{ and } x \in B\}
  • Complement: A={xUxA}A' = \{x \in U \mid x \notin A\}
  • Set difference: AB={xAxB}A \setminus B = \{x \in A \mid x \notin B\}

These operations are conveniently visualised with Venn diagrams. In a Venn diagram, the universal set UU is drawn as a rectangle, and subsets are drawn as overlapping circles. The union ABA \cup B is the entire region covered by either circle; the intersection ABA \cap B is the overlapping region; the complement AA' is everything in the rectangle outside the circle for AA.

De Morgan's Laws

Theorem. For any subsets AA and BB of a universal set UU:

(AB)=AB(A \cup B)' = A' \cap B'

(AB)=AB(A \cap B)' = A' \cup B'

Proof of the first law. We show mutual inclusion.

(\subseteq) Suppose x(AB)x \in (A \cup B)'. Then xABx \notin A \cup B, so xAx \notin A and xBx \notin B. Hence xAx \in A' and xBx \in B', which means xABx \in A' \cap B'.

(\supseteq) Suppose xABx \in A' \cap B'. Then xAx \in A' and xBx \in B', so xAx \notin A and xBx \notin B. Therefore xABx \notin A \cup B, giving x(AB)x \in (A \cup B)'.

The second law follows by symmetry or by applying the first law to AA' and BB'. \blacksquare

Power Sets

The power set {P}(A)\mathcal{'\{'}P{'\}'}(A) of a set AA is the set of all subsets of AA, including \emptyset and AA itself.

If A=n|A| = n, then {P}(A)=2n|\mathcal{'\{'}P{'\}'}(A)| = 2^n.

Worked example: Power set

Let A={1,2,3}A = \{1, 2, 3\}. Then {P}(A)={,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}\mathcal{'\{'}P{'\}'}(A) = \big\{\emptyset,\, \{1\},\, \{2\},\, \{3\},\, \{1,2\},\, \{1,3\},\, \{2,3\},\, \{1,2,3\}\big\}.

There are 23=82^3 = 8 subsets, as expected.

Cardinality of Finite Sets

For finite sets AA and BB:

AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|

This is the inclusion-exclusion principle for two sets. It subtracts the overlap that would otherwise be double-counted.

For three sets AA, BB, CC:

ABC=A+B+CABACBC+ABC|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|

Worked example: Cardinality

In a class of 40 students, 25 study Physics, 20 study Chemistry, and 10 study both. How many study neither subject?

PC=P+CPC=25+2010=35|P \cup C| = |P| + |C| - |P \cap C| = 25 + 20 - 10 = 35.

The number studying neither is 4035=540 - 35 = 5.

Functions

A function ff is an assignment from a domain (XX, the set of acceptable inputs) to a codomain (YY, the set into which all outputs must fall), such that:

  • Every element in XX is mapped to an element in YY: xX,  f(x)Y\forall x \in X,\; f(x) \in Y
  • No element in XX is mapped to more than one element in YY: f(x1)=f(x2)    x1=x2f(x_1) = f(x_2) \implies x_1 = x_2

Notation

A function ff with domain XX and codomain YY:

f:XYf: X \to Y

Non-examples of functions
  • f1:{R}+{R},  f(x)=±xf_1: \mathbb{'\{'}R{'\}'}^+ \to \mathbb{'\{'}R{'\}'},\; f(x) = \pm\sqrt{x} — Since xx maps to two values, f1f_1 is not a function.
  • f2:{R}{R},  f2(x)=1xf_2: \mathbb{'\{'}R{'\}'} \to \mathbb{'\{'}R{'\}'},\; f_2(x) = \frac{1}{x} — At x=0x = 0, f2(0)f_2(0) is undefined, so not every element of the domain is mapped. Redefine as f2:{R}{0}{R}f_2: \mathbb{'\{'}R{'\}'} \setminus \{0\} \to \mathbb{'\{'}R{'\}'}.
  • f3:Yf_3: \emptyset \to Y — Since no elements are in the domain, uniqueness is vacuously satisfied. This is a valid (empty) function.

Range

The range (AA) of a function f:XYf: X \to Y is the set of all values actually produced:

A={f(x)xX},AYA = \{f(x) \mid x \in X\}, \quad A \subseteq Y

Classes of Functions

  • Surjective (onto): Every element of the codomain is hit: yY,  xX,  y=f(x)\forall y \in Y,\; \exists x \in X,\; y = f(x)
  • Injective (one-to-one): Distinct inputs give distinct outputs: f(x1)=f(x2)    x1=x2f(x_1) = f(x_2) \implies x_1 = x_2
  • Bijective: Both surjective and injective
  • Odd: f(x)=f(x)f(-x) = -f(x) for all x{R}x \in \mathbb{'\{'}R{'\}'}
  • Even: f(x)=f(x)f(-x) = f(x) for all x{R}x \in \mathbb{'\{'}R{'\}'}

Injectivity, Surjectivity, and Bijectivity — Worked Examples

Example: Determining injectivity and surjectivity

Let f:{R}{R},  f(x)=x2f: \mathbb{'\{'}R{'\}'} \to \mathbb{'\{'}R{'\}'},\; f(x) = x^2.

Injective? No. f(1)=f(1)=1f(1) = f(-1) = 1, so distinct inputs map to the same output. (This is also an even function.)

Surjective? No. There is no x{R}x \in \mathbb{'\{'}R{'\}'} such that f(x)=1f(x) = -1, so 1range(f)-1 \notin \mathrm{range}(f).

The range is [0,)[0, \infty), a proper subset of {R}\mathbb{'\{'}R{'\}'}.

Example: Proving a function is bijective

Let f:{R}{R},  f(x)=2x+3f: \mathbb{'\{'}R{'\}'} \to \mathbb{'\{'}R{'\}'},\; f(x) = 2x + 3.

Injective: Suppose f(x1)=f(x2)f(x_1) = f(x_2). Then 2x1+3=2x2+32x_1 + 3 = 2x_2 + 3, so x1=x2x_1 = x_2.

Surjective: Let y{R}y \in \mathbb{'\{'}R{'\}'}. We need 2x+3=y2x + 3 = y, i.e. x=y32x = \frac{y - 3}{2}. Since y32{R}\frac{y-3}{2} \in \mathbb{'\{'}R{'\}'}, every yy is in the range.

Therefore ff is bijective.

Inverse Functions

If f:XYf: X \to Y is bijective, the inverse function f1:YXf^{-1}: Y \to X exists and satisfies:

f1(f(x))=xforallxX,f(f1(y))=yforallyYf^{-1}(f(x)) = x \quad \mathrm{for all } x \in X, \qquad f(f^{-1}(y)) = y \quad \mathrm{for all } y \in Y

To find f1f^{-1}: write y=f(x)y = f(x), solve for xx in terms of yy, then interchange xx and yy.

Existence condition: A function has an inverse (on its given domain and codomain) if and only if it is bijective.

Example: Finding an inverse function

Let f:{R}{R},  f(x)=2x+1x3f: \mathbb{'\{'}R{'\}'} \to \mathbb{'\{'}R{'\}'},\; f(x) = \frac{2x + 1}{x - 3}, with domain {R}{3}\mathbb{'\{'}R{'\}'} \setminus \{3\}.

Set y=2x+1x3y = \frac{2x+1}{x-3}. Then y(x3)=2x+1y(x-3) = 2x+1, so yx3y=2x+1yx - 3y = 2x + 1, hence x(y2)=3y+1x(y-2) = 3y+1, giving x=3y+1y2x = \frac{3y+1}{y-2}.

Therefore f1(x)=3x+1x2f^{-1}(x) = \frac{3x+1}{x-2} with domain {R}{2}\mathbb{'\{'}R{'\}'} \setminus \{2\}.

Self-Inverse Functions

A function ff is self-inverse if f(f(x))=xf(f(x)) = x for all xx in the domain, i.e. f1=ff^{-1} = f.

Common examples: f(x)=1xf(x) = \frac{1}{x} on {R}{0}\mathbb{'\{'}R{'\}'} \setminus \{0\}; f(x)=axf(x) = a - x on {R}\mathbb{'\{'}R{'\}'}.

Domain Restriction to Achieve Injectivity

A non-injective function can be made injective by restricting its domain.

Example: Restricting domain

f(x)=x2f(x) = x^2 is not injective on {R}\mathbb{'\{'}R{'\}'} since f(1)=f(1)f(1) = f(-1). But by restricting to [0,)[0, \infty), every non-negative real has exactly one non-negative square root, so f:[0,)[0,)f: [0, \infty) \to [0, \infty) is bijective with inverse f1(x)=xf^{-1}(x) = \sqrt{x}.

Similarly, f:(,0][0,),  f(x)=x2f: (-\infty, 0] \to [0, \infty),\; f(x) = x^2 is bijective with inverse f1(x)=xf^{-1}(x) = -\sqrt{x}.

Scientific Notation and Approximation

Scientific Notation

A number in scientific notation has the form:

a=b×10k,b{R},  1b<10,  k{Z}a = b \times 10^k, \quad b \in \mathbb{'\{'}R{'\}'},\; 1 \le |b| \lt 10,\; k \in \mathbb{'\{'}Z{'\}'}

Multiplication of Numbers in Scientific Notation

Let a1=b1×10k1a_1 = b_1 \times 10^{k_1} and a2=b2×10k2a_2 = b_2 \times 10^{k_2}. Then:

a1a2=b1b2×10k1+k2a_1 \cdot a_2 = b_1 \cdot b_2 \times 10^{k_1 + k_2}

If b1b210|b_1 \cdot b_2| \ge 10 or b1b2<1|b_1 \cdot b_2| \lt 1, adjust the mantissa back into [1,10)[1, 10) by absorbing a factor of 1010 into the exponent.

Significant Figures

The rules for significant figures:

  1. All non-zero digits are significant.
  2. Zeros between non-zero digits are significant.
  3. Leading zeros are not significant.
  4. Trailing zeros after a decimal point are significant.
  5. Trailing zeros in a whole number without a decimal point are ambiguous.

Examples: 0.004500.00450 has 3 s.f.; 10201020 has at least 3 s.f.; 1020.1020. has 4 s.f.

Absolute and Relative Error

If a quantity's true value is x0x_0 and the approximate value is xax_a:

  • Absolute error: xax0|x_a - x_0|
  • Relative error: xax0x0\dfrac{|x_a - x_0|}{|x_0|}

Upper and Lower Bounds

If a value is given as x=12.5x = 12.5 (correct to 1 decimal place), then:

  • Upper bound: 12.5512.55
  • Lower bound: 12.4512.45

The interval is [12.45,  12.55)[12.45,\; 12.55). The maximum possible error (absolute) is 12×10d\frac{1}{2} \times 10^{-d} where dd is the number of decimal places.

Worked example: Bounds

The sides of a rectangle are measured as 5.2cm5.2\,\mathrm{cm} and 3.8cm3.8\,\mathrm{cm} (each to 1 d.p.).

Upper bounds: 5.255.25 and 3.853.85. Lower bounds: 5.155.15 and 3.753.75.

Maximum area: 5.25×3.85=20.2125cm25.25 \times 3.85 = 20.2125\,\mathrm{cm}^2.

Minimum area: 5.15×3.75=19.3125cm25.15 \times 3.75 = 19.3125\,\mathrm{cm}^2.

The area is 19.8cm2±0.45cm219.8\,\mathrm{cm}^2 \pm 0.45\,\mathrm{cm}^2 (to 1 d.p.), but in bounds form we write 19.3125A<20.212519.3125 \le A \lt 20.2125.

Sequences and Series

A sequence is a function ff with domain {N}\mathbb{'\{'}N{'\}'} (or {N}0\mathbb{'\{'}N{'\}'}_0) and codomain XX. Writing un=f(n)u_n = f(n), every sequence is ordered by its index.

f:{N}X,un=f(n),  n{N}f: \mathbb{'\{'}N{'\}'} \to X, \quad u_n = f(n), \; n \in \mathbb{'\{'}N{'\}'}

Series and Partial Sums

A series is the sum of the terms of a sequence. A partial sum SkS_k is the sum of the first kk terms:

Sk=n=1kunS_k = \sum_{n=1}^{k} u_n

Sigma Notation Properties

Sigma notation obeys the following rules (where cc is a constant independent of the index):

Linearity:

n=1k(aun+bvn)=an=1kun+bn=1kvn\sum_{n=1}^{k} (au_n + bv_n) = a\sum_{n=1}^{k} u_n + b\sum_{n=1}^{k} v_n

Proof. Distribute the sum over each term and factor constants out. Each term aunau_n appears exactly once in the expansion, so grouping gives aa times the sum of unu_n, and similarly for bvnbv_n. \blacksquare

Index shifting: Replacing nn with n+mn + m shifts the bounds:

n=pqun=n=p+mq+munm\sum_{n=p}^{q} u_n = \sum_{n=p+m}^{q+m} u_{n-m}

Telescoping: If un=vnvn1u_n = v_n - v_{n-1}, then n=1kun=vkv0\sum_{n=1}^{k} u_n = v_k - v_0.

Worked example: Sigma manipulation

Simplify n=150(3n+2)\sum_{n=1}^{50} (3n + 2).

By linearity: 3n=150n+n=1502=350512+250=3825+100=39253\sum_{n=1}^{50} n + \sum_{n=1}^{50} 2 = 3 \cdot \frac{50 \cdot 51}{2} + 2 \cdot 50 = 3825 + 100 = 3925.

Arithmetic Sequences

An arithmetic sequence has a constant common difference dd between consecutive terms:

an=a1+(n1)da_n = a_1 + (n-1)d

Arithmetic Series — Proof by Pairing

Theorem. Sk=k2(a1+ak)S_k = \frac{k}{2}(a_1 + a_k)

Proof. Write the sum forward and backward:

Sk=a1+(a1+d)+(a1+2d)++(a1+(k1)d)S_k = a_1 + (a_1 + d) + (a_1 + 2d) + \cdots + (a_1 + (k-1)d)

Sk=ak+(akd)+(ak2d)++(ak(k1)d)S_k = a_k + (a_k - d) + (a_k - 2d) + \cdots + (a_k - (k-1)d)

Adding term-by-term, each pair sums to a1+aka_1 + a_k, and there are kk such pairs:

2Sk=k(a1+ak)    Sk=k2(a1+ak)2S_k = k(a_1 + a_k) \implies S_k = \frac{k}{2}(a_1 + a_k)

Substituting ak=a1+(k1)da_k = a_1 + (k-1)d gives the alternative form:

Sk=k2(2a1+(k1)d)S_k = \frac{k}{2}\big(2a_1 + (k-1)d\big)

\blacksquare

warning

In the IB formula booklet this is written as:

Sn=n2(2u1+(n1)d)=n2(u1+un)S_n = \frac{n}{2}(2u_1 + (n-1)d) = \frac{n}{2}(u_1 + u_n)

Geometric Sequences

A geometric sequence has a constant common ratio rr between consecutive terms:

un=u1rn1u_n = u_1 \cdot r^{n-1}

Geometric Series — Proof by Subtraction

Theorem. Sk=u1(1rk)1rS_k = \dfrac{u_1(1 - r^k)}{1 - r} for r1r \ne 1.

Proof. Write SkS_k and rSkrS_k:

Sk=u1+u1r+u1r2++u1rk1S_k = u_1 + u_1 r + u_1 r^2 + \cdots + u_1 r^{k-1}

rSk=u1r+u1r2+u1r3++u1rkrS_k = u_1 r + u_1 r^2 + u_1 r^3 + \cdots + u_1 r^k

Subtracting:

SkrSk=u1u1rkS_k - rS_k = u_1 - u_1 r^k

Sk(1r)=u1(1rk)S_k(1 - r) = u_1(1 - r^k)

Sk=u1(1rk)1rS_k = \frac{u_1(1 - r^k)}{1 - r} \qquad \blacksquare

Convergence of Geometric Series

If r<1|r| \lt 1, then limkrk=0\lim_{k \to \infty} r^k = 0, so:

S=u11rS_{\infty} = \frac{u_1}{1 - r}

If r1|r| \ge 1, the series diverges.

Applications: Compound Interest

If a principal PP is invested at rate rr per period, compounded each period, the value after nn periods is:

A=P(1+r)nA = P(1 + r)^n

This is a geometric sequence with u1=Pu_1 = P and common ratio 1+r1 + r.

Applications: Annuities

An annuity pays dd per period for nn periods, with interest rate rr per period. The present value is:

PV=dr(11(1+r)n)PV = \frac{d}{r}\left(1 - \frac{1}{(1+r)^n}\right)

This follows directly from the geometric series sum with first term d1+r\frac{d}{1+r} and ratio 11+r\frac{1}{1+r}.

Worked example: Compound interest

A deposit of $5,000 earns 4% per year, compounded annually. Find the value after 10 years.

A=5000(1.04)105000×1.48024=7401.22A = 5000(1.04)^{10} \approx 5000 \times 1.48024 = 7401.22

The value is approximately $7,401.22.

Worked example: Summation

Find the sum of the first 20 terms of the arithmetic sequence 3,7,11,3, 7, 11, \ldots

Here a1=3a_1 = 3, d=4d = 4, n=20n = 20.

S20=202(2(3)+19(4))=10(6+76)=10×82=820S_{20} = \frac{20}{2}\big(2(3) + 19(4)\big) = 10(6 + 76) = 10 \times 82 = 820

Worked example: Infinite geometric series

Find the sum of 1+12+14+18+1 + \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + \cdots

Here u1=1u_1 = 1, r=12r = \frac{1}{2}. Since r<1|r| \lt 1:

S=111/2=11/2=2S_{\infty} = \frac{1}{1 - 1/2} = \frac{1}{1/2} = 2

Worked example: Geometric series — finding n

The sum of the first nn terms of 2,6,18,2, 6, 18, \ldots is 65606560. Find nn.

Here u1=2u_1 = 2, r=3r = 3. Using Sn=2(3n1)31=3n1S_n = \frac{2(3^n - 1)}{3 - 1} = 3^n - 1.

3n1=6560    3n=6561=38    n=83^n - 1 = 6560 \implies 3^n = 6561 = 3^8 \implies n = 8

Logarithms

A logarithm is the inverse function of the exponential f(x)=bxf(x) = b^x:

logb(bx)=x,b{r{R}r>0,  r1}\log_b(b^x) = x, \quad b \in \{r \in \mathbb{'\{'}R{'\}'} \mid r \gt 0,\; r \ne 1\}

The logarithm logbx\log_b x answers the question: "to what power must bb be raised to obtain xx?"

Logarithm Laws — Proofs

Law 1 (Product rule): loga(xy)=logax+logay\log_a(xy) = \log_a x + \log_a y

Proof. Let m=logaxm = \log_a x and n=logayn = \log_a y. Then am=xa^m = x and an=ya^n = y. So xy=aman=am+nxy = a^m \cdot a^n = a^{m+n}. Taking loga\log_a of both sides: loga(xy)=m+n=logax+logay\log_a(xy) = m + n = \log_a x + \log_a y. \blacksquare

Law 2 (Quotient rule): loga ⁣(xy)=logaxlogay\log_a\!\left(\dfrac{x}{y}\right) = \log_a x - \log_a y

Proof. Let m=logaxm = \log_a x and n=logayn = \log_a y. Then am=xa^m = x and an=ya^n = y. xy=aman=amn\frac{x}{y} = \frac{a^m}{a^n} = a^{m-n}. Taking loga\log_a: loga(x/y)=mn=logaxlogay\log_a(x/y) = m - n = \log_a x - \log_a y. \blacksquare

Law 3 (Power rule): loga(xm)=mlogax\log_a(x^m) = m\log_a x

Proof. Let n=logaxn = \log_a x, so an=xa^n = x. Then xm=(an)m=amnx^m = (a^n)^m = a^{mn}. Taking loga\log_a: loga(xm)=mn=mlogax\log_a(x^m) = mn = m\log_a x. \blacksquare

Change of Base Formula

Theorem. logax=logbxlogba\log_a x = \dfrac{\log_b x}{\log_b a} for any valid bases a,b>0a, b \gt 0, a,b1a, b \ne 1.

Proof. Let y=logaxy = \log_a x. Then ay=xa^y = x. Taking logb\log_b of both sides: logb(ay)=logbx\log_b(a^y) = \log_b x. By the power rule, ylogba=logbxy\log_b a = \log_b x, so y=logbxlogbay = \frac{\log_b x}{\log_b a}. \blacksquare

This is particularly useful for computing logarithms in bases other than 1010 or ee using a calculator.

Solving Exponential Equations

When the variable is in the exponent, take logarithms of both sides to bring it down.

Worked example: Exponential equation

Solve 32x+1=7x23^{2x+1} = 7^{x-2} for xx.

Taking ln\ln of both sides: (2x+1)ln3=(x2)ln7(2x+1)\ln 3 = (x-2)\ln 7.

2xln3+ln3=xln72ln72x\ln 3 + \ln 3 = x\ln 7 - 2\ln 7

x(2ln3ln7)=2ln7ln3x(2\ln 3 - \ln 7) = -2\ln 7 - \ln 3

x=2ln7ln32ln3ln7=2ln7+ln3ln72ln32(1.946)+1.0991.9462(1.099)4.9900.25219.8x = \frac{-2\ln 7 - \ln 3}{2\ln 3 - \ln 7} = \frac{2\ln 7 + \ln 3}{\ln 7 - 2\ln 3} \approx \frac{2(1.946) + 1.099}{1.946 - 2(1.099)} \approx \frac{4.990}{-0.252} \approx -19.8

Solving Logarithmic Equations

Use the logarithm laws to combine terms, then exponentiate both sides.

Worked example: Logarithmic equation

Solve log2(x+3)+log2(x3)=4\log_2(x + 3) + \log_2(x - 3) = 4.

By the product rule: log2 ⁣((x+3)(x3))=4\log_2\!\big((x+3)(x-3)\big) = 4, i.e. log2(x29)=4\log_2(x^2 - 9) = 4.

x29=24=16x^2 - 9 = 2^4 = 16, so x2=25x^2 = 25, giving x=5x = 5 or x=5x = -5.

Check domain: x+3>0x + 3 \gt 0 and x3>0x - 3 \gt 0 requires x>3x \gt 3. So x=5x = -5 is rejected.

Solution: x=5x = 5.

Worked example: Change of base

Evaluate log320\log_3 20 to 3 significant figures.

log320=ln20ln3=2.99571.09862.73\log_3 20 = \frac{\ln 20}{\ln 3} = \frac{2.9957\ldots}{1.0986\ldots} \approx 2.73

Worked example: Exponential growth

A bacteria culture doubles every 3 hours. If the initial population is 500500, when will it reach 32,000?

P(t)=5002t/3P(t) = 500 \cdot 2^{t/3}. Set 5002t/3=32000500 \cdot 2^{t/3} = 32000:

2t/3=64=262^{t/3} = 64 = 2^6, so t/3=6t/3 = 6, giving t=18t = 18 hours.

Alternatively, using logarithms: t3ln2=ln64=6ln2\frac{t}{3}\ln 2 = \ln 64 = 6\ln 2, so t=18t = 18.

Proof by Mathematical Induction

Mathematical induction is a technique for proving statements that are true for all natural numbers (or all integers greater than or equal to some starting value).

Structure of an Inductive Proof

To prove P(n)P(n) for all nn0n \ge n_0:

  1. Base case: Verify P(n0)P(n_0) is true directly.
  2. Inductive hypothesis: Assume P(k)P(k) is true for some arbitrary kn0k \ge n_0.
  3. Inductive step: Using the hypothesis, prove that P(k+1)P(k+1) is true.
  4. Conclusion: By the principle of mathematical induction, P(n)P(n) is true for all nn0n \ge n_0.

The logic is analogous to an infinite chain of dominoes: the base case knocks over the first domino, and the inductive step ensures each domino knocks over the next.

Sum Formula Proofs

Example: Prove the sum of squares formula

Prove i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}.

Base case (n=1n = 1): LHS =1= 1. RHS =1236=1= \frac{1 \cdot 2 \cdot 3}{6} = 1. True.

Inductive hypothesis: Assume i=1ki2=k(k+1)(2k+1)6\sum_{i=1}^{k} i^2 = \frac{k(k+1)(2k+1)}{6} for some k1k \ge 1.

Inductive step:

i=1k+1i2=k(k+1)(2k+1)6+(k+1)2\sum_{i=1}^{k+1} i^2 = \frac{k(k+1)(2k+1)}{6} + (k+1)^2

=k(k+1)(2k+1)+6(k+1)26= \frac{k(k+1)(2k+1) + 6(k+1)^2}{6}

=(k+1)[k(2k+1)+6(k+1)]6= \frac{(k+1)\big[k(2k+1) + 6(k+1)\big]}{6}

=(k+1)(2k2+k+6k+6)6= \frac{(k+1)(2k^2 + k + 6k + 6)}{6}

=(k+1)(2k2+7k+6)6=(k+1)(k+2)(2k+3)6= \frac{(k+1)(2k^2 + 7k + 6)}{6} = \frac{(k+1)(k+2)(2k+3)}{6}

This equals (k+1)((k+1)+1)(2(k+1)+1)6\frac{(k+1)((k+1)+1)(2(k+1)+1)}{6}, which is the formula for n=k+1n = k+1. \blacksquare

Divisibility Proofs

Example: Prove a divisibility result

Prove 32n13^{2n} - 1 is divisible by 8 for all n{N}n \in \mathbb{'\{'}N{'\}'}.

Base case (n=1n = 1): 321=91=83^2 - 1 = 9 - 1 = 8, which is divisible by 8. True.

Inductive hypothesis: Assume 32k1=8m3^{2k} - 1 = 8m for some integer mm.

Inductive step: Consider 32(k+1)1=32k+21=932k13^{2(k+1)} - 1 = 3^{2k+2} - 1 = 9 \cdot 3^{2k} - 1.

We rewrite: 932k1=9(32k1)+91=98m+8=8(9m+1)9 \cdot 3^{2k} - 1 = 9(3^{2k} - 1) + 9 - 1 = 9 \cdot 8m + 8 = 8(9m + 1).

Since 9m+19m + 1 is an integer, 32(k+1)13^{2(k+1)} - 1 is divisible by 8. \blacksquare

Inequality Proofs

Example: Prove 2n>n2^n \gt n for all n1n \ge 1

Base case (n=1n = 1): 21=2>12^1 = 2 \gt 1. True.

Inductive hypothesis: Assume 2k>k2^k \gt k for some k1k \ge 1.

Inductive step: 2k+1=22k>2k2^{k+1} = 2 \cdot 2^k \gt 2k (by the hypothesis).

Since k1k \ge 1, we have 2k=k+kk+12k = k + k \ge k + 1. Therefore 2k+1>k+12^{k+1} \gt k + 1. \blacksquare

Common Mistakes in Induction

  • Forgetting the base case: The inductive step alone proves only an implication P(k)    P(k+1)P(k) \implies P(k+1). Without the base case, the chain never starts.
  • Using what you need to prove: The inductive hypothesis is P(k)P(k), not P(k+1)P(k+1). You must derive P(k+1)P(k+1), not assume it.
  • Incorrect algebra: Errors in the inductive step (especially with fractions or factorisation) are the most common source of failed induction proofs.
  • Wrong starting value: If the statement is only claimed for n3n \ge 3, verify the base case at n=3n = 3, not n=1n = 1.

The Binomial Theorem

Statement

For any non-negative integer nn and any a,b{R}a, b \in \mathbb{'\{'}R{'\}'}:

(a+b)n=k=0n(nk)ankbk(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k

where the binomial coefficient is:

(nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!(n-k)!}

Pascal's Triangle

The binomial coefficients can be generated recursively via Pascal's triangle. Each entry is the sum of the two entries above it:

(nk)=(n1k1)+(n1k)\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}

Proof of Pascal's identity. Using the factorial definition:

(n1k1)+(n1k)=(n1)!(k1)!(nk)!+(n1)!k!(n1k)!\binom{n-1}{k-1} + \binom{n-1}{k} = \frac{(n-1)!}{(k-1)!(n-k)!} + \frac{(n-1)!}{k!(n-1-k)!}

=(n1)!kk!(nk)!+(n1)!(nk)k!(nk)!= \frac{(n-1)! \cdot k}{k!(n-k)!} + \frac{(n-1)! \cdot (n-k)}{k!(n-k)!}

=(n1)!(k+nk)k!(nk)!=n(n1)!k!(nk)!=n!k!(nk)!=(nk)= \frac{(n-1)!\big(k + n - k\big)}{k!(n-k)!} = \frac{n \cdot (n-1)!}{k!(n-k)!} = \frac{n!}{k!(n-k)!} = \binom{n}{k} \qquad \blacksquare

Properties of Binomial Coefficients

  • Symmetry: (nk)=(nnk)\dbinom{n}{k} = \dbinom{n}{n-k}
  • Sum of row: k=0n(nk)=2n\displaystyle\sum_{k=0}^{n} \binom{n}{k} = 2^n (set a=b=1a = b = 1 in the theorem)
  • Alternating sum: k=0n(1)k(nk)=0\displaystyle\sum_{k=0}^{n} (-1)^k \binom{n}{k} = 0 (set a=1,  b=1a = 1,\; b = -1)

Finding Specific Terms

The general term (the (k+1)(k+1)-th term, since the sum starts at k=0k=0) is:

Tk+1=(nk)ankbkT_{k+1} = \binom{n}{k} a^{n-k} b^k

Worked example: Expansion

Expand (2x3)4(2x - 3)^4 using the binomial theorem.

(2x3)4=(40)(2x)4+(41)(2x)3(3)+(42)(2x)2(3)2+(43)(2x)(3)3+(44)(3)4(2x - 3)^4 = \binom{4}{0}(2x)^4 + \binom{4}{1}(2x)^3(-3) + \binom{4}{2}(2x)^2(-3)^2 + \binom{4}{3}(2x)(-3)^3 + \binom{4}{4}(-3)^4

=16x448x33+64x2942x27+81= 16x^4 - 4 \cdot 8x^3 \cdot 3 + 6 \cdot 4x^2 \cdot 9 - 4 \cdot 2x \cdot 27 + 81

=16x496x3+216x2216x+81= 16x^4 - 96x^3 + 216x^2 - 216x + 81

Worked example: Finding a specific coefficient

Find the coefficient of x3x^3 in the expansion of (1+2x)7(1 + 2x)^7.

The term containing x3x^3 occurs when k=3k = 3:

T4=(73)(1)73(2x)3=358x3=280x3T_4 = \binom{7}{3}(1)^{7-3}(2x)^3 = 35 \cdot 8x^3 = 280x^3

The coefficient is 280280.

Worked example: Binomial coefficient properties

Evaluate (100)+(101)+(102)++(1010)\binom{10}{0} + \binom{10}{1} + \binom{10}{2} + \cdots + \binom{10}{10}.

By the row-sum property: k=010(10k)=210=1024\sum_{k=0}^{10} \binom{10}{k} = 2^{10} = 1024.

Common Pitfalls

Confusing Subset and Element

1{1,2,3}1 \in \{1, 2, 3\} but 1{{1},2,3}1 \notin \{\{1\}, 2, 3\}. In the second set, {1}\{1\} is an element, not 11. Meanwhile, {1}{1,2,3}\{1\} \subseteq \{1, 2, 3\} is true, but {1}{1,2,3}\{1\} \in \{1, 2, 3\} is false.

Domain and Range Errors

When finding inverse functions, always check that the original function is bijective on the given domain. A common error is to write f1(x)=xf^{-1}(x) = \sqrt{x} for f(x)=x2f(x) = x^2 without restricting the domain to [0,)[0, \infty) first.

Off-by-One in Sigma Notation

n=1k\sum_{n=1}^{k} has kk terms, not k1k-1. n=0k\sum_{n=0}^{k} has k+1k+1 terms. Be careful when shifting indices.

Induction Base Case Errors

If the statement is claimed for n2n \ge 2, verify the base case at n=2n = 2, not n=0n = 0 or n=1n = 1. A base case at the wrong value invalidates the entire proof.

Logarithm Domain Restrictions

The arguments of logarithms must be strictly positive. When solving logaf(x)=c\log_a f(x) = c, always check that f(x)>0f(x) \gt 0 in your solution. A solution that violates this is extraneous.

Problem Set

Problem 1: Sets

Let U={1,2,3,4,5,6,7,8,9,10}U = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10\}, A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}, B={3,4,5,6,7}B = \{3, 4, 5, 6, 7\}.

Find: (a) ABA \cap B, (b) ABA \cup B, (c) AA', (d) (AB)(A \cap B)', (e) AB|A \cup B|.

Solution.

(a) AB={3,4,5}A \cap B = \{3, 4, 5\}

(b) AB={1,2,3,4,5,6,7}A \cup B = \{1, 2, 3, 4, 5, 6, 7\}

(c) A={6,7,8,9,10}A' = \{6, 7, 8, 9, 10\}

(d) (AB)={1,2,6,7,8,9,10}(A \cap B)' = \{1, 2, 6, 7, 8, 9, 10\}. (Verify: this equals ABA' \cup B' by De Morgan's law.)

(e) AB=7|A \cup B| = 7

Problem 2: Functions — bijectivity

Let f:{R}{R}f: \mathbb{'\{'}R{'\}'} \to \mathbb{'\{'}R{'\}'} be defined by f(x)=x3xf(x) = x^3 - x. Determine whether ff is injective, surjective, or neither.

Solution.

Injective? No. f(0)=0f(0) = 0 and f(1)=0f(1) = 0, so distinct inputs map to the same output.

Surjective? Yes. f(x)=x3x=x(x1)(x+1)f(x) = x^3 - x = x(x-1)(x+1). As xx \to \infty, f(x)f(x) \to \infty; as xx \to -\infty, f(x)f(x) \to -\infty. By continuity (a polynomial is continuous everywhere), ff attains every real value by the Intermediate Value Theorem.

Therefore ff is surjective but not injective.

Problem 3: Scientific notation and error

The speed of light is measured as 3.00×108m/s3.00 \times 10^8\,\mathrm{m/s} to 3 s.f. Find the absolute and relative error.

Solution.

Upper bound: 3.005×1083.005 \times 10^8. Lower bound: 2.995×1082.995 \times 10^8.

Maximum absolute error: 12×1082=0.005×108=5×105m/s\frac{1}{2} \times 10^{8-2} = 0.005 \times 10^8 = 5 \times 10^5\,\mathrm{m/s}.

Relative error: 5×1053.00×108=5300=1600.0167\frac{5 \times 10^5}{3.00 \times 10^8} = \frac{5}{300} = \frac{1}{60} \approx 0.0167 (about 1.67%).

Problem 4: Arithmetic series

The sum of the first 40 terms of an arithmetic sequence is 42004200. The sum of the first 20 terms is 16001600. Find the first term and the common difference.

Solution.

S40=20(2a1+39d)=4200    2a1+39d=210(1)S_{40} = 20(2a_1 + 39d) = 4200 \implies 2a_1 + 39d = 210 \quad \cdots (1)

S20=10(2a1+19d)=1600    2a1+19d=160(2)S_{20} = 10(2a_1 + 19d) = 1600 \implies 2a_1 + 19d = 160 \quad \cdots (2)

(1)(2)(1) - (2): 20d=50    d=2.520d = 50 \implies d = 2.5

From (2): 2a1+19(2.5)=160    2a1=16047.5=112.5    a1=56.252a_1 + 19(2.5) = 160 \implies 2a_1 = 160 - 47.5 = 112.5 \implies a_1 = 56.25

Problem 5: Geometric series

A geometric series has first term 55 and common ratio 13\frac{1}{3}. Find the sum to infinity and determine how many terms are needed for the partial sum to exceed 99% of SS_{\infty}.

Solution.

S=511/3=52/3=7.5S_{\infty} = \frac{5}{1 - 1/3} = \frac{5}{2/3} = 7.5

We need Sn>0.99×7.5=7.425S_n \gt 0.99 \times 7.5 = 7.425.

Sn=5(1(1/3)n)2/3=7.5(1(1/3)n)S_n = \frac{5(1 - (1/3)^n)}{2/3} = 7.5\big(1 - (1/3)^n\big)

7.5(1(1/3)n)>7.425    1(1/3)n>0.99    (1/3)n<0.017.5\big(1 - (1/3)^n\big) \gt 7.425 \implies 1 - (1/3)^n \gt 0.99 \implies (1/3)^n \lt 0.01

nln(1/3)<ln(0.01)n\ln(1/3) \lt \ln(0.01). Since ln(1/3)<0\ln(1/3) \lt 0, dividing reverses the inequality:

n>ln(0.01)ln(1/3)=4.6051.0994.19n \gt \frac{\ln(0.01)}{\ln(1/3)} = \frac{-4.605}{-1.099} \approx 4.19

So n5n \ge 5 terms are needed.

Problem 6: Logarithms

Solve for xx: log3(x1)+log3(x+1)=log38\log_3(x - 1) + \log_3(x + 1) = \log_3 8.

Solution.

By the product rule: log3 ⁣((x1)(x+1))=log38\log_3\!\big((x-1)(x+1)\big) = \log_3 8

(x1)(x+1)=8    x21=8    x2=9    x=3orx=3(x-1)(x+1) = 8 \implies x^2 - 1 = 8 \implies x^2 = 9 \implies x = 3 \mathrm{ or } x = -3

Domain check: x1>0    x>1x - 1 \gt 0 \implies x \gt 1. So x=3x = -3 is rejected.

Solution: x=3x = 3.

Problem 7: Mathematical induction

Prove by induction that n3+2nn^3 + 2n is divisible by 33 for all n{N}n \in \mathbb{'\{'}N{'\}'}.

Solution.

Base case (n=1n = 1): 13+2(1)=31^3 + 2(1) = 3, which is divisible by 33. True.

Inductive hypothesis: Assume k3+2k=3mk^3 + 2k = 3m for some integer mm.

Inductive step:

(k+1)3+2(k+1)=k3+3k2+3k+1+2k+2(k+1)^3 + 2(k+1) = k^3 + 3k^2 + 3k + 1 + 2k + 2

=(k3+2k)+3k2+3k+3= (k^3 + 2k) + 3k^2 + 3k + 3

=3m+3(k2+k+1)=3(m+k2+k+1)= 3m + 3(k^2 + k + 1) = 3\big(m + k^2 + k + 1\big)

Since m+k2+k+1m + k^2 + k + 1 is an integer, (k+1)3+2(k+1)(k+1)^3 + 2(k+1) is divisible by 33. \blacksquare

Problem 8: Binomial theorem

Find the term independent of xx in the expansion of (x2+1x)9\left(x^2 + \dfrac{1}{x}\right)^9.

Solution.

The general term is Tk+1=(9k)(x2)9k ⁣(1x)k=(9k)x182kk=(9k)x183kT_{k+1} = \binom{9}{k}(x^2)^{9-k}\!\left(\dfrac{1}{x}\right)^k = \binom{9}{k} x^{18-2k-k} = \binom{9}{k} x^{18-3k}.

For the term to be independent of xx, we need 183k=018 - 3k = 0, so k=6k = 6.

The term is (96)x0=(93)=84\binom{9}{6} x^0 = \binom{9}{3} = 84.


tip

tip Ready to test your understanding of Number and Algebra? The diagnostic test contains the hardest questions within the IB specification for this topic, each with a full worked solution.

Unit tests probe edge cases and common misconceptions. Integration tests combine Number and Algebra with other IB mathematics topics to test synthesis under exam conditions.

See Diagnostic Guide for instructions on self-marking and building a personal test matrix.