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
∅ — the empty set (contains no elements)
x∈X — the element x belongs to the set X
x∈/X — the element x does not belong to X
A⊆B — A is a subset of B: every element of A is also an element of B
∣A∣ — the cardinality (number of elements) of a finite set A
P(A) — the power set of A: the set of all subsets of A
Set-Builder Notation
A set can be defined by a property:
{x∈R∣x2−4=0}={−2,2}
The vertical bar is read “such that.”
Set Operations
Let A and B be subsets of a universal set U.
Union:A∪B={x∈U∣x∈Aorx∈B}
Intersection:A∩B={x∈U∣x∈Aandx∈B}
Complement:A"={x∈U∣x∈/A}
Set difference:A∖B={x∈A∣x∈/B}
These operations are conveniently visualised with Venn diagrams. In a Venn diagram, the universal Set U is drawn as a rectangle, and subsets are drawn as overlapping circles. The union A∪B Is the entire region covered by either circle; the intersection A∩B is the overlapping Region; the complement A′ is everything in the rectangle outside the circle for A.
De Morgan’s Laws
Theorem. For any subsets A and B of a universal set U:
(A∪B)′=A′∩B′
(A∩B)′=A′∪B′
Proof of the first law. We show mutual inclusion.
(⊆) Suppose x∈(A∪B)′. Then x∈/A∪BSo x∈/A and x∈/B. Hence x∈A′ and x∈B′Which means x∈A′∩B′.
(⊇) Suppose x∈A′∩B′. Then x∈A′ and x∈B′So x∈/A and x∈/B. Therefore x∈/A∪BGiving x∈(A∪B)′.
The second law follows by symmetry or by applying the first law to A′ and B′. ■
Power Sets
The power setP(A) of a set A is the set of all subsets of AIncluding ∅ and A itself.
If ∣A∣=nThen ∣P(A)∣=2n.
Worked example: Power set
Let A={1,2,3}. Then P(A)={∅,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}.
There are 23=8 subsets, as expected.
Cardinality of Finite Sets
For finite sets A and B:
∣A∪B∣=∣A∣+∣B∣−∣A∩B∣
This is the inclusion-exclusion principle for two sets. It subtracts the overlap that would Otherwise be double-counted.
For three sets A, B, C:
∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣A∩C∣−∣B∩C∣+∣A∩B∩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?
∣P∪C∣=∣P∣+∣C∣−∣P∩C∣=25+20−10=35.
The number studying neither is 40−35=5.
Functions
A function f is an assignment from a domain (XThe set of acceptable inputs) to a codomain (YThe set into which all outputs must fall), such that:
Every element in X is mapped to an element in Y: ∀x∈X,f(x)∈Y
No element in X is mapped to more than one element in Y: f(x1)=f(x2)⟹x1=x2
Notation
A function f with domain X and codomain Y:
f:X→Y
Non-examples of functions
f1:R+→R,f(x)=±x — Since x maps to two values, f1 is not a function.
f2:R→R,f2(x)=x1 — At x=0, f2(0) is undefined, so not every element of the domain is mapped. Redefine as f2:R∖{0}→R.
f3:∅→Y — Since no elements are in the domain, uniqueness is vacuously satisfied. This is a valid (empty) function.
Range
The range (A) of a function f:X→Y is the set of all values actually produced:
A={f(x)∣x∈X},A⊆Y
Classes of Functions
Surjective (onto): Every element of the codomain is hit: ∀y∈Y,∃x∈X,y=f(x)
Injective (one-to-one): Distinct inputs give distinct outputs: f(x1)=f(x2)⟹x1=x2
Bijective: Both surjective and injective
Odd:f(−x)=−f(x) for all x∈R
Even:f(−x)=f(x) for all x∈R
Injectivity, Surjectivity, and Bijectivity — Worked Examples
Example: Determining injectivity and surjectivity
Let f:R→R,f(x)=x2.
Injective? No. f(1)=f(−1)=1So distinct inputs map to the same output. (This is also an Even function.)
Surjective? No. There is no x∈R such that f(x)=−1So −1∈/range(f).
The range is [0,∞)A proper subset of R.
Example: Proving a function is bijective
Let f:R→R,f(x)=2x+3.
Injective: Suppose f(x1)=f(x2). Then 2x1+3=2x2+3So x1=x2.
Surjective: Let y∈R. We need 2x+3=yI.e. x=2y−3. Since 2y−3∈REvery y is in the range.
Therefore f is bijective.
Inverse Functions
If f:X→Y is bijective, the inverse functionf−1:Y→X exists and satisfies:
f−1(f(x))=xforallx∈X,f(f−1(y))=yforally∈Y
To find f−1: write y=f(x)Solve for x in terms of yThen interchange x and y.
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)=x−32x+1With domain R∖{3}.
Set y=x−32x+1. Then y(x−3)=2x+1So yx−3y=2x+1Hence x(y−2)=3y+1 Giving x=y−23y+1.
Therefore f−1(x)=x−23x+1 with domain R∖{2}.
Self-Inverse Functions
A function f is self-inverse if f(f(x))=x for all x in the domain, i.e. f−1=f.
Common examples: f(x)=x1 on R∖{0}; f(x)=a−x on R.
Domain Restriction to Achieve Injectivity
A non-injective function can be made injective by restricting its domain.
Example: Restricting domain
f(x)=x2 is not injective on R since f(1)=f(−1). But by restricting to [0,∞)Every non-negative real has exactly one non-negative square root, so f:[0,∞)→[0,∞) is bijective with inverse f−1(x)=x.
Similarly, f:(−∞,0]→[0,∞),f(x)=x2 is bijective with inverse f−1(x)=−x.
Scientific Notation and Approximation
Scientific Notation
A number in scientific notation has the form:
a=b×10k,b∈R,1≤∣b∣<10,k∈Z
Multiplication of Numbers in Scientific Notation
Let a1=b1×10k1 and a2=b2×10k2. Then:
a1⋅a2=b1⋅b2×10k1+k2
If ∣b1⋅b2∣≥10 or ∣b1⋅b2∣<1Adjust the mantissa back into [1,10) by Absorbing a factor of 10 into the exponent.
Significant Figures
The rules for significant figures:
All non-zero digits are significant.
Zeros between non-zero digits are significant.
Leading zeros are not significant.
Trailing zeros after a decimal point are significant.
Trailing zeros in a whole number without a decimal point are ambiguous.
Examples:0.00450 has 3 s.f.; 1020 has at least 3 s.f.; 1020. has 4 s.f.
Absolute and Relative Error
If a quantity’s true value is x0 and the approximate value is xa:
Absolute error:∣xa−x0∣
Relative error:∣x0∣∣xa−x0∣
Upper and Lower Bounds
If a value is given as x=12.5 (correct to 1 decimal place), then:
Upper bound:12.55
Lower bound:12.45
The interval is [12.45,12.55). The maximum possible error (absolute) is 21×10−d where d is the number of decimal places.
Worked example: Bounds
The sides of a rectangle are measured as 5.2cm and 3.8cm (each to 1 d.p.).
Upper bounds: 5.25 and 3.85. Lower bounds: 5.15 and 3.75.
Maximum area: 5.25×3.85=20.2125cm2.
Minimum area: 5.15×3.75=19.3125cm2.
The area is 19.8cm2±0.45cm2 (to 1 d.p.), but in bounds form we write 19.3125≤A<20.2125.
Sequences and Series
A sequence is a function f with domain N (or N0) and codomain X. Writing un=f(n)Every sequence is ordered by its index.
f:N→X,un=f(n),n∈N
Series and Partial Sums
A series is the sum of the terms of a sequence. A partial sumSk is the sum of the first k terms:
Sk=∑n=1kun
Sigma Notation Properties
Sigma notation obeys the following rules (where c is a constant independent of the index):
Linearity:
∑n=1k(aun+bvn)=a∑n=1kun+b∑n=1kvn
Proof. Distribute the sum over each term and factor constants out. Each term aun appears Exactly once in the expansion, so grouping gives a times the sum of unAnd similarly for bvn. ■
Index shifting: Replacing n with n+m shifts the bounds:
∑n=pqun=∑n=p+mq+mun−m
Telescoping: If un=vn−vn−1Then ∑n=1kun=vk−v0.
Worked example: Sigma manipulation
Simplify ∑n=150(3n+2).
By linearity: 3∑n=150n+∑n=1502=3⋅250⋅51+2⋅50=3825+100=3925.
Arithmetic Sequences
An arithmetic sequence has a constant common differenced between consecutive terms:
an=a1+(n−1)d
Arithmetic Series — Proof by Pairing
Theorem.Sk=2k(a1+ak)
Proof. Write the sum forward and backward:
Sk=a1+(a1+d)+(a1+2d)+⋯+(a1+(k−1)d)
Sk=ak+(ak−d)+(ak−2d)+⋯+(ak−(k−1)d)
Adding term-by-term, each pair sums to a1+akAnd there are k such pairs:
2Sk=k(a1+ak)⟹Sk=2k(a1+ak)
Substituting ak=a1+(k−1)d gives the alternative form:
Sk=2k(2a1+(k−1)d)
■
:::caution In the IB formula booklet this is written as:
Sn=2n(2u1+(n−1)d)=2n(u1+un)
:::
Geometric Sequences
A geometric sequence has a constant common ratior between consecutive terms:
un=u1⋅rn−1
Geometric Series — Proof by Subtraction
Theorem.Sk=1−ru1(1−rk) for r=1.
Proof. Write Sk and rSk:
Sk=u1+u1r+u1r2+⋯+u1rk−1
rSk=u1r+u1r2+u1r3+⋯+u1rk
Subtracting:
Sk−rSk=u1−u1rk
Sk(1−r)=u1(1−rk)
Sk=1−ru1(1−rk)■
Convergence of Geometric Series
If ∣r∣<1Then limk→∞rk=0So:
S∞=1−ru1
If ∣r∣≥1The series diverges.
Applications: Compound Interest
If a principal P is invested at rate r per period, compounded each period, the value after n Periods is:
A=P(1+r)n
This is a geometric sequence with u1=P and common ratio 1+r.
Applications: Annuities
An annuity pays d per period for n periods, with interest rate r per period. The present value Is:
PV=rd(1−(1+r)n1)
This follows directly from the geometric series sum with first term 1+rd and ratio 1+r1.
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)10≈5000×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,…
Here a1=3, d=4, n=20.
S20=220(2(3)+19(4))=10(6+76)=10×82=820
Worked example: Infinite geometric series
Find the sum of 1+21+41+81+⋯
Here u1=1, r=21. Since ∣r∣<1:
S∞=1−1/21=1/21=2
Worked example: Geometric series — finding n
The sum of the first n terms of 2,6,18,… is 6560. Find n.
Here u1=2, r=3. Using Sn=3−12(3n−1)=3n−1.
3n−1=6560⟹3n=6561=38⟹n=8
Logarithms
A logarithm is the inverse function of the exponential f(x)=bx:
logb(bx)=x,b∈{r∈R∣r>0,r=1}
The logarithm logbx answers the question: “to what power must b be raised to obtain x?”
Logarithm Laws — Proofs
Law 1 (Product rule):loga(xy)=logax+logay
Proof. Let m=logax and n=logay. Then am=x and an=y. So xy=am⋅an=am+n. Taking loga of both sides: loga(xy)=m+n=logax+logay. ■
Law 2 (Quotient rule):loga(yx)=logax−logay
Proof. Let m=logax and n=logay. Then am=x and an=y. yx=anam=am−n. Taking loga: loga(x/y)=m−n=logax−logay. ■
Law 3 (Power rule):loga(xm)=mlogax
Proof. Let n=logaxSo an=x. Then xm=(an)m=amn. Taking loga: loga(xm)=mn=mlogax. ■
Change of Base Formula
Theorem.logax=logbalogbx for any valid bases a,b>0, a,b=1.
Proof. Let y=logax. Then ay=x. Taking logb of both sides: logb(ay)=logbx. By the power rule, ylogba=logbxSo y=logbalogbx. ■
This is particularly useful for computing logarithms in bases other than 10 or e using a Calculator.
Solving Exponential Equations
When the variable is in the exponent, take logarithms of both sides to bring it down.
Use the logarithm laws to combine terms, then exponentiate both sides.
Worked example: Logarithmic equation
Solve log2(x+3)+log2(x−3)=4.
By the product rule: log2((x+3)(x−3))=4I.e. log2(x2−9)=4.
x2−9=24=16So x2=25Giving x=5 or x=−5.
Check domain: x+3>0 and x−3>0 requires x>3. So x=−5 is rejected.
Solution: x=5.
Worked example: Change of base
Evaluate log320 to 3 significant figures.
log320=ln3ln20=1.0986…2.9957…≈2.73
Worked example: Exponential growth
A bacteria culture doubles every 3 hours. If the initial population is 500When will it reach 32,000?
P(t)=500⋅2t/3. Set 500⋅2t/3=32000:
2t/3=64=26So t/3=6Giving t=18 hours.
Alternatively, using logarithms: 3tln2=ln64=6ln2So t=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) for all n≥n0:
Base case: Verify P(n0) is true directly.
Inductive hypothesis: Assume P(k) is true for some arbitrary k≥n0.
Inductive step: Using the hypothesis, prove that P(k+1) is true.
Conclusion: By the principle of mathematical induction, P(n) is true for all n≥n0.
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=6n(n+1)(2n+1).
Base case (n=1): LHS =1. RHS =61⋅2⋅3=1. True.
Inductive hypothesis: Assume ∑i=1ki2=6k(k+1)(2k+1) for some k≥1.
Inductive step:
∑i=1k+1i2=6k(k+1)(2k+1)+(k+1)2
=6k(k+1)(2k+1)+6(k+1)2
=6(k+1)[k(2k+1)+6(k+1)]
=6(k+1)(2k2+k+6k+6)
=6(k+1)(2k2+7k+6)=6(k+1)(k+2)(2k+3)
This equals 6(k+1)((k+1)+1)(2(k+1)+1)Which is the formula for n=k+1. ■
Divisibility Proofs
Example: Prove a divisibility result
Prove 32n−1 is divisible by 8 for all n∈N.
Base case (n=1):32−1=9−1=8Which is divisible by 8. True.
Inductive hypothesis: Assume 32k−1=8m for some integer m.
Since 9m+1 is an integer, 32(k+1)−1 is divisible by 8. ■
Inequality Proofs
Example: Prove $2^n \gt n$ for all $n \ge 1$
Base case (n=1):21=2>1. True.
Inductive hypothesis: Assume 2k>k for some k≥1.
Inductive step:2k+1=2⋅2k>2k (by the hypothesis).
Since k≥1We have 2k=k+k≥k+1. Therefore 2k+1>k+1. ■
Common Mistakes in Induction
Forgetting the base case: The inductive step alone proves only an implication P(k)⟹P(k+1). Without the base case, the chain never starts.
Using what you need to prove: The inductive hypothesis is P(k)Not P(k+1). You must deriveP(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 …/1-number-and-algebra/3_proof-and-logics.
Wrong starting value: If the statement is only claimed for n≥3Verify the base case at n=3Not n=1.
The Binomial Theorem
Statement
For any non-negative integer n and any a,b∈R:
(a+b)n=∑k=0n(kn)an−kbk
Where the binomial coefficient is:
(kn)=k!(n−k)!n!
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:
(kn)=(k−1n−1)+(kn−1)
Proof of Pascal’s identity. Using the factorial definition:
Find the coefficient of x3 in the expansion of (1+2x)7.
The term containing x3 occurs when k=3:
T4=(37)(1)7−3(2x)3=35⋅8x3=280x3
The coefficient is 280.
Worked example: Binomial coefficient properties
Evaluate (010)+(110)+(210)+⋯+(1010).
By the row-sum property: ∑k=010(k10)=210=1024.
Common Pitfalls
Confusing Subset and Element
1∈{1,2,3} but 1∈/{{1},2,3}. In the second set, {1} is an element, not 1. Meanwhile, {1}⊆{1,2,3} is true, but {1}∈{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 f−1(x)=x for f(x)=x2 without restricting the Domain to $ 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 for instructions on self-marking and building a personal test matrix.
Summary
This topic covers the mathematical techniques and concepts related to number and algebra, including key theorems, methods, and problem-solving approaches.
Key concepts include:
quadratic equations and the discriminant
simultaneous equations
polynomial division and the factor theorem
partial fractions
binomial expansion
Regular practice with a variety of question types is essential to build fluency and confidence in applying these mathematical techniques.
Worked Examples
Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.