College · 30 classes

Mathematics - Discrete Mathematics

Each class is a short animated explainer with narration and illustrations, plus quick checks and a mastery quiz. Your progress saves automatically as you complete classes.

▶ Watch class 1 free — no sign-up
Progress map · 30 classes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Not startedStartedCompletedMastered
01
What Makes Mathematics 'Discrete'?
Not started
Start →
02
How Do We Construct a Sound Argument?
Not started
Start →
03
For All X, There Exists a Y
Not started
Start →
04
The Architect's Toolkit: Essential Proof Techniques
Not started
Start →
05
What Do We Mean When We Say 'Collection'?
Not started
Start →
06
Are There Enough Pigeons for the Holes?
Not started
Start →
07
How Are Things Related?
Not started
Start →
08
Are All Infinities Created Equal?
Not started
Start →
09
Counting Without Counting: The Product and Sum Rules
Not started
Start →
10
What Can Pascal's Triangle Teach Us?
Not started
Start →
11
How Do We Avoid Counting Things Twice?
Not started
Start →
12
Can Polynomials Solve Counting Problems?
Not started
Start →
13
What Are the Chances?
Not started
Start →
14
What is the Sound of One Hand Clapping?
Not started
Start →
15
How Can We Unwind a Recurrence?
Not started
Start →
16
Why is Merge Sort so Fast?
Not started
Start →
17
How Do You Prove Things About Trees?
Not started
Start →
18
Welcome to the Network
Not started
Start →
19
Can You Walk Across Every Bridge Exactly Once?
Not started
Start →
20
What is the Simplest Connected Network?
Not started
Start →
21
What's the Quickest Way from A to B?
Not started
Start →
22
How Do You Build a Network on a Budget?
Not started
Start →
23
How Many Colors Does it Take to Paint a Map?
Not started
Start →
24
How Fast is 'Fast Enough'?
Not started
Start →
25
Are There Problems Computers Can Never Solve?
Not started
Start →
26
The Million-Dollar Question: Does P Equal NP?
Not started
Start →
27
How Does a Vending Machine 'Think'?
Not started
Start →
28
What Time Will it Be in 100 Hours?
Not started
Start →
29
What are the Building Blocks of the Integers?
Not started
Start →
30
How Can You Share a Secret in Public?
Not started
Start →
See inside a class

Here’s all of Class 1, in full.

Every class is 13 cards · narrated film + illustration · 3 quick checks · an interactive · a 5-question mastery quiz. Nothing hidden — this is the complete text of What Makes Mathematics 'Discrete'?.

▸ Read the full class — What Makes Mathematics 'Discrete'?

Look at the smooth, elegant curve of a function drawn on a blackboard. Now look at the image of that same curve on your computer screen. What you see is not a curve. It's a collection of discrete, individual pixels, each with a specific color and coordinate. For centuries, mathematics was dominated by the continuous. Calculus gave us the tools to describe motion, change, and the infinitely small. It is the mathematics of the analog world. But the modern world—the world of computation, information, and networks—is built on the pixel, not the curve. It is built on individual bits, finite steps, and distinct connections. This course is about the mathematics of that world. Welcome to Discrete Mathematics.

1. Why Continuity Fails Us

How does Google Maps find the shortest path from your apartment to the airport? It's not by solving a differential equation. It's by analyzing a network of discrete points and connections.

The tools of calculus are powerful but ill-suited for the problems at the heart of modern computation. Computers do not operate on the continuous real number line; they operate on finite, discrete bits. This fundamental mismatch presents a puzzle: how do we model, analyze, and prove properties about systems built from distinct, individual parts?

  • The tools of calculus are powerful
  • An algorithm doesn't 'approach' a solution
  • A network isn't a continuous field
  • The problem discrete mathematics was developed to solve
  • Computers do not operate on the continuous real number line

2. Defining the Discrete

Discrete mathematics is the study of mathematical structures that are fundamentally countable or otherwise distinct and separable.

Unlike continuous mathematics, which deals with objects that can vary smoothly (like real numbers), discrete mathematics focuses on objects that can be counted. Its primary subjects include integers, graphs, and logical statements. The core idea is a shift from the world of f(x) where x is a real number, to the world of f(n) where n is an integer.

  • The term 'discrete' is the opposite of 'continuous
  • We are concerned with countable sets, such as the integers
  • This property this lack of an 'in-between
  • This isn't a single
  • We focus on counting, logical proof, and algorithmic construction

3. From Logic to Computation

The field wasn't invented for computers. It was invented to solve a foundational crisis in mathematics, and computers just happened to be the perfect application.

While components like number theory and combinatorics are ancient, discrete mathematics as a unified field is a 20th-century creation. It grew from the work of logicians like George Boole and Gottlob Frege, who sought to formalize mathematical reasoning, and was crystallized by Alan Turing's work on the theory of computation.

  • In the late 19th and early 20th centuries
  • This work on formal systems logic
  • Pioneers like Alan Turing and Alonzo Church
  • When the first electronic computers were actually built
  • Computer science didn't invent discrete math

4. The Four Pillars of Discrete Math

How do we actually *do* discrete mathematics? We operate within four interconnected domains.

The study of discrete mathematics is generally organized around four main areas: 1) Logic and Proof, the language of rigor; 2) Combinatorics, the art of counting; 3) Graph Theory, the study of networks and relationships; and 4) Number Theory and Set Theory, which provide foundational objects and concepts.

  • We move beyond intuitive arguments to construct rigorous
  • The language of mathematical certainty
  • **Combinatorics**, the art of counting
  • **Number Theory and Set Theory**
  • Set theory provides the basic vocabulary for all of mathematics

5. The Language of Logic

This isn't code in a programming sense, but it's a formal language with just as much rigor. Let's dissect a statement.

Let's look at the syntax we'll be using. This isn't code in a programming sense, but it's a formal language with just as much rigor. Consider this statement from predicate logic. It expresses the idea that for every integer, there exists another integer that is greater. The first symbol, ∀, is the universal quantifier. It means 'for all' or 'for every.' Next, `x ∈ ℤ` specifies the domain. It says 'x is an element of the set of integers.' The comma can be read as 'it is the case that.' The next symbol, ∃, is the existential quantifier, meaning 'there exists.' Then, `y ∈ ℤ` introduces another variable `y`, also an integer. The part after the colon, `y > x`, is the predicate. It's the condition that must be met. So, stringing it all together, we read: 'For every integer x, there exists an integer y, such that y is greater than x.' This is a profoundly different way of communicating than natural language. It is unambiguous, precise, and allows us to build complex arguments from simple, well-defined components.

  • This statement from predicate logic
  • The first symbol, ∀, is the universal quantifier
  • The part after the colon `y > x`
  • Stringing it all together we read: 'For every integer x
  • For every integer x

6. Core Properties of Discrete Systems

As we study discrete structures, several key properties emerge that distinguish them from their continuous counterparts.

Discrete mathematics is characterized by several key features: a focus on countable sets, an absence of the concept of limits central to calculus, a heavy reliance on rigorous proof methods like induction, and an intrinsically algorithmic nature that connects directly to computation.

  • There are no 'in-between' values
  • This allows for enumeration and inductive reasoning
  • The concept of a limit so central to calculus
  • Is the paramount importance of **Rigorous Proof**
  • An intrinsically **Algorithmic Nature** to many of the problems

7. The Handshake Lemma

At any party, the number of people who have shaken an odd number of other people's hands must be even. Let's prove it.

Let's make this concrete with a classic result from graph theory: the Handshake Lemma. It states that in any party, the number of people who have shaken an odd number of other people's hands must be even. Let's model this with a graph. People are vertices, and a handshake between two people is an edge connecting them. The 'degree' of a vertex is the number of edges connected to it—the number of hands that person shook. The lemma states that the sum of the degrees of all vertices is equal to twice the number of edges. Why? Let's prove it by double counting. Consider the sum of all degrees. Each time we add a vertex's degree to our sum, we are counting the edges connected to it. Now, think about it from the perspective of the edges. Every single edge connects exactly two vertices. So, when we sum up the degrees of all vertices, each edge gets counted precisely twice: once for each of its endpoints. Therefore, the sum of the degrees must equal two times the number of edges. From this, it follows that the number of vertices with an odd degree must be even, otherwise the sum would be odd, which is impossible.

  • The sum of all degrees
  • Each time we add a vertex's degree to our sum
  • Every single edge connects exactly two vertices
  • LHS: Summing degrees counts each edge from the vertex's perspective
  • RHS: Each edge has two endpoints

8. When Discreteness Isn't Enough

Discrete mathematics is a powerful lens, but it is not the only one. Its primary limitation is that the physical world is, at many scales, better described by continuous functions.

Discrete models are not always the right tool. For phenomena in physics, engineering, and finance that involve continuous change, the methods of calculus and differential equations are indispensable. The key is to recognize when a problem is fundamentally discrete, continuous, or a hybrid of both.

  • Discrete mathematics is a powerful lens
  • For modeling phenomena like fluid dynamics planetary motion
  • Some problems live at the intersection of both worlds
  • Digital signal processing for instance
  • The key is not to see these fields as competitors

9. Discrete vs. Continuous: A Tale of Two Maths

The most direct comparison for discrete mathematics is, of course, continuous mathematics. The contrast reveals the core philosophy of each.

We can draw direct parallels: Integers vs. Real Numbers. Summation (Σ) vs. Integration (∫). Logic and Induction vs. Limits and Analysis. Graphs vs. Curves. These pairs highlight a fundamental difference in mindset: one focused on structure and computation, the other on dynamics and approximation.

  • The fundamental object in discrete math is the integer
  • We build arguments using formal logic and proof by induction
  • Our primary tool for modeling relationships is the graph
  • Draw direct parallels: Integers vs. Real Numbers
  • Logic and Induction vs. Limits and Analysis

10. Four Common Stumbling Blocks

As you begin your journey in discrete mathematics, there are a few common pitfalls to watch out for.

Students new to discrete math often struggle with a few key areas: off-by-one errors in counting, misinterpreting the order and scope of logical quantifiers, making faulty assumptions in inductive proofs, and confusing statistical correlation with formal logical implication.

  • The first and most famous is the **off-by-one error**
  • Students often struggle with the **scope of quantifiers**
  • The statement 'for every person
  • A third issue is **faulty induction**
  • Be careful not to confuse statistical correlation with **logical implication**

11. Your Mathematical Toolkit

To succeed in this course and beyond, you'll need to build a toolkit of texts, software, and resources.

Essential tools include standard textbooks like Rosen's 'Discrete Mathematics and Its Applications', software for graph analysis like Gephi or Python's NetworkX library, and the LaTeX typesetting system for writing clear, formal mathematical arguments.

  • The textbook for this course is excellent
  • For a more computer science-focused perspective
  • For exploring graph theory
  • For formal logic and proof

12. The Pigeonhole Principle

For this week, engage with one of the simplest yet most powerful ideas in combinatorics: the Pigeonhole Principle.

The principle states that if you have n items to put into m containers, and n > m, then at least one container must hold more than one item. Use this to prove several statements: about birthdays in a month, pairs of integers summing to 9, and the number of friends people have in a group.

  • It sounds obvious, but its applications are profound
  • Prove that in any group of 13 people
  • What are the pigeons, and what are the pigeonholes
  • Write up your arguments formally
  • Discuss your approaches at the beginning of our next session

13. Discrete vs. Continuous

This lecture defined discrete mathematics as the study of countable, distinct structures, contrasting it with the continuous world of calculus. We established its core pillars and its fundamental role in computer science.

  • Discrete math deals with countable objects like integers, graphs, and logical statements.
  • It is the language of computer science, essential for algorithms, data structures, and networks.
  • The core pillars are logic, combinatorics, graph theory, and number theory.
  • Its methods rely on rigorous, formal proof rather than intuition or approximation.
  • Key concepts include countability and algorithmic thinking, contrasting with the limits and continuity of calculus.

Mastery quiz

  1. Which pairing of discrete vs. continuous tools is given in the lecture?
    • Summation (Σ) vs. Integration (∫)
    • Graphs vs. matrices
    • Integers vs. natural numbers
    • Logic vs. set theory
  2. Which is listed as one of the four pillars of discrete mathematics?
    • Differential equations
    • Combinatorics, the art of counting
    • Real analysis
    • Fluid dynamics
  3. The corollary of the Handshake Lemma is that the number of vertices with odd degree must be:
    • Odd
    • Zero
    • Even
    • Prime
  4. In the predicate-logic statement '∀x ∈ ℤ, ∃y ∈ ℤ : y > x', the symbol ∃ means:
    • For all
    • Is an element of
    • Implies
    • There exists
  5. Which is named as a common stumbling block for students new to discrete math?
    • Off-by-one errors in counting
    • Confusing addition with subtraction
    • Forgetting to integrate
    • Using the wrong calculator
HomePracticeFeedBlogMe