iLabs

Shunya / Maths Explainers

Shunya · Maths lab

Maths explainers

Six ideas that are easier to see than to read. Watch a fraction turn into a repeating decimal, drag a complex number around the Argand plane, count possibilities with a tree and Pascal's triangle, grow an arithmetic or geometric series, fill in a Venn diagram, and solve a linear programming problem by sliding a line across a feasible region.

The maths behind it

What each explainer covers

Number systems — a fraction turned into a decimal by long division (and why it terminates or repeats), a repeating decimal turned back into a fraction, √n squeezed between decimals on the number line, and the square-root spiral. Classes 9 and 10.
Complex numbers — a draggable z on the Argand plane with its conjugate, modulus and argument; sum and difference as a parallelogram; product and quotient as a turn and a stretch; nth roots and powers (De Moivre). Class 11.
Counting — the multiplication principle as a tree you can follow, permutations and combinations listed out, Pascal's triangle and the binomial coefficients, and the arrangements of the letters of a word. Class 11.
Sequences & series — arithmetic progressions with draggable terms and bars for the sum, geometric progressions with partial sums closing in on the sum to infinity, AM ≥ GM ≥ HM on a semicircle, and the standard sums and Fibonacci numbers. Classes 10 and 11.
Sets & Venn diagrams — two and three sets by counts (inclusion–exclusion, impossible numbers flagged) and by typed elements (union, intersection, difference, complement, subsets, De Morgan). Class 11.
Linear programming — type an objective and up to six constraints, see the feasible region and its corner points, slide the objective line to the best corner, and meet unbounded, infeasible and many-optima cases. Class 12.

Part of Shunya. See the syllabus map for the chapters these explainers map to. Complex numbers and counting can be checked against the Function & Graph Explorer and the Statistics & Probability lab.

Formulas used in this lab

Number systems Class 9

A rational number
pq,p,q integers, q≠0\dfrac{p}{q},\qquad p, q \text{ integers},\ q \ne 0
Terminating decimal
q=2m⋅5n ⇒ pq terminatesq = 2^m \cdot 5^n \ \Rightarrow\ \dfrac{p}{q} \text{ terminates}
Repeating decimal to a fraction
0.ab‾=ab99,0.a‾=a90.\overline{ab} = \dfrac{ab}{99},\qquad 0.\overline{a} = \dfrac{a}{9}
Rationalising
1a+bc=a−bca2−b2c\dfrac{1}{a + b\sqrt{c}} = \dfrac{a - b\sqrt{c}}{a^2 - b^2 c}
Laws of surds
ab=ab,(a+b)(a−b)=a−b\sqrt{a}\sqrt{b} = \sqrt{ab},\qquad (\sqrt{a} + \sqrt{b})(\sqrt{a} - \sqrt{b}) = a - b

Arithmetic progressions Class 10

nth term
an=a+(n−1)da_n = a + (n - 1)d
Sum of n terms
Sn=n2 [2a+(n−1)d]S_n = \dfrac{n}{2}\,[2a + (n - 1)d]
Sum from the last term l
Sn=n2 (a+l)S_n = \dfrac{n}{2}\,(a + l)
A term from the sums
an=Sn−Sn−1a_n = S_n - S_{n-1}
Three numbers in AP
2b=a+c2b = a + c

Complex numbers Class 11

The imaginary unit
i2=−1,i4=1i^2 = -1,\qquad i^4 = 1
Modulus and conjugate
∣z∣=a2+b2,zzˉ=∣z∣2|z| = \sqrt{a^2 + b^2},\qquad z\bar{z} = |z|^2
Polar form
z=r(cos⁡θ+isin⁡θ),r=∣z∣z = r(\cos\theta + i\sin\theta),\qquad r = |z|
Product and quotient
∣z1z2∣=∣z1∣∣z2∣,arg⁡(z1z2)=arg⁡z1+arg⁡z2|z_1z_2| = |z_1||z_2|,\qquad \arg(z_1z_2) = \arg z_1 + \arg z_2
Quotient by the conjugate
z1z2=z1z2ˉ∣z2∣2\dfrac{z_1}{z_2} = \dfrac{z_1\bar{z_2}}{|z_2|^2}
Triangle inequality
∣z1+z2∣≤∣z1∣+∣z2∣|z_1 + z_2| \le |z_1| + |z_2|

Roots of complex numbers Class 11

De Moivre's theorem
[r(cos⁡θ+isin⁡θ)]n=rn(cos⁡nθ+isin⁡nθ)[r(\cos\theta + i\sin\theta)]^n = r^n(\cos n\theta + i\sin n\theta)
The nth roots of z (k = 0, 1, …, n − 1): modulus and angle
r1/n,θ+2πknr^{1/n},\quad \dfrac{\theta + 2\pi k}{n}
Roots of unity
ω=e2πi/n,1+ω+⋯+ωn−1=0\omega = e^{2\pi i/n},\qquad 1 + \omega + \dots + \omega^{n-1} = 0
Cube roots of unity
ω3=1,1+ω+ω2=0\omega^3 = 1,\qquad 1 + \omega + \omega^2 = 0

Locus and rotation of complex numbers Class 11 & 12

Circle
∣z−z1∣=r|z - z_1| = r
Perpendicular bisector
∣z−z1∣=∣z−z2∣|z - z_1| = |z - z_2|
Circle of Apollonius
∣z−z1∣=k ∣z−z2∣, k≠1|z - z_1| = k\,|z - z_2|,\ k \ne 1
Ellipse and hyperbola
∣z−z1∣+∣z−z2∣=k (k>∣z1−z2∣),∣∣z−z1∣−∣z−z2∣∣=k (k<∣z1−z2∣)|z - z_1| + |z - z_2| = k \ (k > |z_1 - z_2|),\quad \bigl||z - z_1| - |z - z_2|\bigr| = k \ (k < |z_1 - z_2|)
Ray and arc
arg⁡(z−z1)=θ,arg⁡z−z1z−z2=θ\arg(z - z_1) = \theta,\qquad \arg\dfrac{z - z_1}{z - z_2} = \theta
Rotation about c
z′−c=eiθ(z−c)z' - c = e^{i\theta}(z - c)
Equilateral triangle
z12+z22+z32=z1z2+z2z3+z3z1z_1^2 + z_2^2 + z_3^2 = z_1 z_2 + z_2 z_3 + z_3 z_1

Counting Class 11

Multiplication principle
m×n×p waysm \times n \times p \text{ ways}
Permutations
nPr=n!(n−r)!{}^nP_r = \dfrac{n!}{(n - r)!}
Combinations
nCr=n!r! (n−r)!{}^nC_r = \dfrac{n!}{r!\,(n - r)!}
Link between them
nPr=nCr⋅r!,nCr=nCn−r{}^nP_r = {}^nC_r \cdot r!,\qquad {}^nC_r = {}^nC_{n-r}
Pascal's rule
nCr=n−1Cr−1+n−1Cr{}^nC_r = {}^{n-1}C_{r-1} + {}^{n-1}C_r
Arrangements with repeats
n!p! q! r!\dfrac{n!}{p!\,q!\,r!}
In a circle
(n−1)!(n - 1)!

Binomial theorem Class 11

Expansion
(a+b)n=∑r=0nnCr an−rbr(a + b)^n = \sum_{r=0}^{n} {}^nC_r\, a^{n-r}b^r
General term
Tr+1=nCr an−rbrT_{r+1} = {}^nC_r\, a^{n-r}b^r
Number of terms
n+1n + 1
Sum of the coefficients
nC0+nC1+⋯+nCn=2n{}^nC_0 + {}^nC_1 + \dots + {}^nC_n = 2^n
Alternating sum
nC0−nC1+nC2−⋯=0{}^nC_0 - {}^nC_1 + {}^nC_2 - \dots = 0
General term of (axp + bxq)n
Tr+1=nCr an−rbr xp(n−r)+qrT_{r+1} = {}^nC_r\, a^{n-r}b^r\, x^{p(n-r)+qr}
Coefficient of xm
p(n−r)+qr=m⇒r=pn−mp−q (a whole number, 0≤r≤n)p(n-r)+qr = m \Rightarrow r = \dfrac{pn-m}{p-q}\ (\text{a whole number, } 0 \le r \le n)
Middle term
n even: Tn/2+1;n odd: T(n+1)/2 and T(n+3)/2n \text{ even: } T_{n/2+1};\quad n \text{ odd: } T_{(n+1)/2} \text{ and } T_{(n+3)/2}
Sum of the coefficients
put x=1: (a+b)n\text{put } x = 1:\ (a+b)^n

Counting with conditions Class 11 & 12

k particular objects together (row)
(n−k+1)!  k!(n-k+1)!\; k!
Round a table
(n−1)!(necklace, both ways the same: (n−1)!2)(n-1)!\quad\text{(necklace, both ways the same: } \tfrac{(n-1)!}{2}\text{)}
k together, round a table
(n−k)!  k!(n-k)!\; k!
Not together
all−together\text{all} - \text{together}
x1 + … + xk = n, xi ≥ 0
n+k−1Ck−1{}^{n+k-1}C_{k-1}
Same, every xi ≥ 1
n−1Ck−1{}^{n-1}C_{k-1}
Derangements
Dn=n!(1−11!+12!−⋯+(−1)nn!),Dn=(n−1)(Dn−1+Dn−2)D_n = n!\left(1-\tfrac1{1!}+\tfrac1{2!}-\dots+\tfrac{(-1)^n}{n!}\right),\quad D_n=(n-1)(D_{n-1}+D_{n-2})

Geometric progressions and means Class 11

nth term
an=arn−1a_n = ar^{n-1}
Sum of n terms
Sn=a(1−rn)1−r,r≠1S_n = \dfrac{a(1 - r^n)}{1 - r},\qquad r \ne 1
Sum to infinity
S∞=a1−r,∣r∣<1S_\infty = \dfrac{a}{1 - r},\qquad |r| \lt 1
The three means
AM=a+b2,GM=ab,HM=2aba+bAM = \dfrac{a + b}{2},\quad GM = \sqrt{ab},\quad HM = \dfrac{2ab}{a + b}
Order and link
AM≥GM≥HM,GM2=AM⋅HMAM \ge GM \ge HM,\qquad GM^2 = AM \cdot HM

Standard sums Class 11

Natural numbers
1+2+⋯+n=n(n+1)21 + 2 + \dots + n = \dfrac{n(n + 1)}{2}
Squares
12+22+⋯+n2=n(n+1)(2n+1)61^2 + 2^2 + \dots + n^2 = \dfrac{n(n + 1)(2n + 1)}{6}
Cubes
13+23+⋯+n3=[n(n+1)2]21^3 + 2^3 + \dots + n^3 = \left[\dfrac{n(n + 1)}{2}\right]^2
Fibonacci numbers
Fn=Fn−1+Fn−2,F1+⋯+Fn=Fn+2−1F_n = F_{n-1} + F_{n-2},\qquad F_1 + \dots + F_n = F_{n+2} - 1

Sets Class 11

Two sets
∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|
Three sets
∣A∪B∪C∣=∑∣A∣−∑∣A∩B∣+∣A∩B∩C∣|A \cup B \cup C| = \sum |A| - \sum |A \cap B| + |A \cap B \cap C|
De Morgan's laws
(A∪B)′=A′∩B′,(A∩B)′=A′∪B′(A \cup B)' = A' \cap B',\qquad (A \cap B)' = A' \cup B'
Difference and complement
A−B=A∩B′,A′=U−AA - B = A \cap B',\qquad A' = U - A
Number of subsets
∣P(A)∣=2n|P(A)| = 2^n

Linear programming Class 12

Objective function
Z=ax+byZ = ax + by
Constraints
a1x+b1y≤c1,a2x+b2y≥c2,x,y≥0a_1x + b_1y \le c_1,\quad a_2x + b_2y \ge c_2,\quad x, y \ge 0
Corner point theorem: the best Z is at
a corner point\text{a corner point}
Two optimal corners: the optimum is
the whole edge\text{the whole edge}
Unbounded region: check that
Z>M meets itZ \gt M \text{ meets it}

Mathematical reasoning Class 11 & 12

Implication as or
p→q≡¬p∨qp \to q \equiv \lnot p \lor q
Contrapositive, converse, inverse
p→q≡¬q→¬p;converse q→p≡inverse ¬p→¬qp\to q \equiv \lnot q\to\lnot p;\quad \text{converse } q\to p \equiv \text{inverse } \lnot p\to\lnot q
De Morgan's laws
¬(p∧q)≡¬p∨¬q,¬(p∨q)≡¬p∧¬q\lnot(p\land q)\equiv \lnot p\lor\lnot q,\qquad \lnot(p\lor q)\equiv\lnot p\land\lnot q
Negation of a conditional
¬(p→q)≡p∧¬q\lnot(p\to q)\equiv p\land\lnot q
Biconditional
p↔q≡(p→q)∧(q→p)p\leftrightarrow q \equiv (p\to q)\land(q\to p)
Negating quantifiers
¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x)\lnot\forall x\,P(x)\equiv \exists x\,\lnot P(x),\qquad \lnot\exists x\,P(x)\equiv\forall x\,\lnot P(x)
Tautology and contradiction
p∨¬p (always true),p∧¬p (always false)p\lor\lnot p \ \text{(always true)},\qquad p\land\lnot p\ \text{(always false)}