Lecture notes · Math for Computer Science · Lecture 2

Induction

MIT 6.042J Mathematics for Computer Science, lecture 2, explained in plain English

Want this lecture to stick? In LessonBound you get checked practice questions for every part, can ask about anything you don't get, and can listen with your screen off. Free, no ads.

Learn this lecture free

Watch or read the original lecture: MIT OpenCourseWare.

Part 1 · 0:00–10:00

This part teaches proof by contradiction, a way to prove something is true by assuming it is false and showing that leads to an impossible result.

Key ideas

Words to know

contradiction
A statement that cannot be true, such as saying something is both true and false at the same time.
irrational
A number that cannot be written as a fraction of two whole numbers.
lowest terms
A fraction that has been simplified so the top and bottom numbers share no common factors except 1.
divides
One number divides another if the second number can be split into equal whole groups of the first, like 2 dividing 8.

Example

Think of checking a receipt. If the receipt's total only adds up correctly when you assume two different prices for the same item, then the receipt must be wrong. In the same way, assuming a claim is false and finding a clear impossibility shows the claim is true.

3 checked practice questions for this part are in the app.

Part 2 · 10:00–20:00

This part explains how the ancient Greeks' beliefs about numbers ran into trouble with the square root of 2, and how a false proof that 90 is bigger than 92 shows the danger of trusting a drawing.

Key ideas

Words to know

axiom
a basic belief or rule that you accept without proof and build other proofs on.
rational number
a number that can be written as a fraction, so its decimal form ends or repeats in a pattern of finite length.
irrational number
a number that cannot be written as a fraction, so its decimal goes on forever without a repeating pattern.
inconsistent
when two or more beliefs or rules contradict each other, so they cannot all be true together.

Example

Imagine a subway map drawn with two stops that look far apart on paper, but the map is not to scale. If you plan your trip from the picture, you might make wrong choices, even though every step of your plan seems sensible. The error came from the drawing, not from your reasoning.

3 checked practice questions for this part are in the app.

Part 3 · 20:00–30:00

This part introduces proof by induction, explains why it works as a rule we accept, and shows the first steps of a sample proof about adding up numbers.

Key ideas

Words to know

axiom
A basic rule that we accept as true without proving it first.
predicate
A statement with a letter in it, like P(n), that is true or false depending on the value of n.
base case
The first step of an induction proof, where you check that the statement is true for the starting value, such as n = 0.
sigma notation
A short way to write a sum using the capital Greek letter sigma, so you do not have to write out every number with dots.

Example

Imagine a ladder that goes up forever. If you can step onto the first rung, and you know that any time you stand on one rung you can step to the next, then you can reach every rung. Induction works the same way: the base case gets you on the first rung, and the step from one case to the next gets you to all the others.

3 checked practice questions for this part are in the app.

Part 4 · 30:00–40:00

This part shows how to prove a statement holds for every whole number n by checking a starting case and then showing that each case leads to the next, using a sum formula and a divisibility-by-3 example.

Key ideas

Words to know

base case
The first check in a proof, where you show the statement is true for the starting value, usually n equals 0.
inductive step
The part of the proof where you show that if the statement is true for one value, it is also true for the next value.
inductive hypothesis
The statement you assume is true for some value n, so you can use it to show it is true for n plus 1.
implication
A statement of the form 'if this, then that.' It is only false in the single case where the first part is true and the second part is false.

Example

Think of a row of dominoes. If the first domino falls (base case), and every domino that falls knocks over the next one (inductive step), then every domino in the row falls. Induction works the same way: one starting check plus one reliable link between each step covers every case.

3 checked practice questions for this part are in the app.

Part 5 · 40:00–50:00

This part shows the standard steps of a proof by induction, how to start one at a number other than 0, and why a flawed proof (about horses) fails.

Key ideas

Words to know

predicate
A statement that has a number n in it, so it can be true for some values of n and false for others. For example, "n cubed minus n is a multiple of 3" is a predicate.
base case
The first step of an induction proof, where you check that the statement is true at the starting value, usually n equals 0.
inductive step
The main step of an induction proof, where you show that if the statement is true for n, it must also be true for n plus 1.
inductive hypothesis
The statement you assume is true for some n during the inductive step. The lesson says it is another name for pn.

Example

Think of a line of dominoes. The base case is knocking over the first domino. The inductive step is the rule that any domino falling knocks over the next one. If both are true, every domino falls. (This is an everyday comparison I am adding to help the idea click, not something from the lesson.)

3 checked practice questions for this part are in the app.

Part 6 · 50:00–1:00:00

This part shows how a proof by induction can go wrong when its steps are not checked carefully, using a famous horse-color example.

Key ideas

Words to know

proposition
a statement that is either true or false.
base case
the starting point of an induction proof, where you show the claim is true for the first number.
inductive step
the part of the proof that shows if the claim is true for one number, it is also true for the next number.
empty set
a group with no members at all, like a box with nothing inside it.

Example

Think of a chain of linked paper clips where each clip is hooked to the next. If you show that any clip hooked to the next one is connected, you still need the first clip to be attached to something, or the whole chain never starts. The base case is like that first clip, and the inductive step is like the hooks between clips.

3 checked practice questions for this part are in the app.

Part 7 · 1:00:00–1:10:00

The lecture starts proving, by induction, that a courtyard of size 2 to the n by 2 to the n can be tiled with L-shaped tiles and one center square left for a statue, and finds that the first try does not work.

Key ideas

Words to know

induction
A way to prove something for every size. You prove the first case, then prove that if one case works, the next one works too.
base case
The first, simplest case you check by hand. Everything else builds on it.
inductive hypothesis
The statement you assume is true for some size n, so you can use it to prove the statement for the next size.
predicate
A statement that depends on a number, such as P(n), which is either true or false for each n.

Example

Think of a row of dominoes. If the first one falls, and every domino is set up so that it knocks over the next one, then all of them fall, even though you never checked each one by hand. Induction works the same way: the base case starts the fall, and the inductive step passes it on.

3 checked practice questions for this part are in the app.

Part 8 · 1:10:00–1:19:22

The professor shows that to prove a harder claim with induction, you can state a stronger assumption, which often makes the proof easier.

Key ideas

Words to know

inductive hypothesis
The assumption you make about a smaller case, which you use to prove the next, bigger case.
base case
Checking that the claim is true for the smallest case, such as a 1 by 1 square, to get the chain started.
lemma
A helper result you prove first so that it can be used to prove a bigger result.
tile
To cover a floor or area completely with flat shapes, with no gaps and no overlaps.

Example

Think of a line of dominoes. If you know that each domino knocks over the next one, and you have knocked over the first one, then every domino falls. Induction works the same way: prove the first case, then prove that each case leads to the next.

3 checked practice questions for this part are in the app.

← Lecture 1: Introduction and Proofs · Lecture 6: Graph Theory and Coloring →

Notes written by AI (Claude) from the lecture's official transcript, so check anything important against the lecture. MIT OpenCourseWare · CC BY-NC-SA 4.0 · not affiliated with or endorsed by MIT. These notes are shared under the same license.

LessonBound · Free lecture notes · Privacy · Terms · New York