Index Ai Academy
Foundation · Foundation mathNumbers

Multiplying and dividing fractions

About 35 minLooking ahead: some prerequisites aren't done yet

Why this matters

Half of a third. Three quarters of the signs, and two thirds of those. A share of a share comes up constantly, and it's a multiplication. In AI it's how chances combine: the chance of several things all happening is their chances multiplied, and it gets small fast. This lesson shows why multiplying fractions is easier than adding them, and what dividing by a fraction really asks.

  • Read "a fraction of a fraction" as a multiplication, and multiply tops and bottoms
  • Divide by a fraction by multiplying by its flip
  • Multiply and divide Fractions in Python, and chain several shares
  • See why chances of things happening one after another multiply and shrink
Quick check
Have a guess before you start. What is half of a third of a trail bar?

The math: a share of a share

Purpose. "Of" turns up whenever you take a part of a part: half of a third, three quarters of the signs, two thirds of those. In math, "of" means multiply.

Picture a square trail map. Cut it into 3 columns and shade 2: that's 2/3 of the map. Now cut the same map into 4 rows, and keep 3 of the rows within the shaded columns. The piece that's shaded both ways is 3/4 of 2/3.

Count the small pieces: the map is now cut into 3 × 4 = 12 of them. The doubly shaded part is 2 × 3 = 6 of them. So 3/4 of 2/3 is 6/12, which is 1/2.

Notice what happened: the tops multiplied (2 × 3 = 6) and the bottoms multiplied (3 × 4 = 12). Unlike adding, there's no need to make the pieces the same size first. Cutting both ways makes the pieces for you.

The picture. The flow draws the map as a square, 1 wide and 1 tall. The first cut lights 2/3 of its width. The second keeps 3/4 of its height, and only the piece shaded both ways stays lit: a rectangle 2/3 wide and 3/4 tall. Under the picture, the number cells count its small pieces.