Mathematics for ML
YOUR STUDY WORKBOOKOctober 25 – December 21, 2026
Before you beginHow to follow the plan

Start with Lesson 01 and follow the numbered sequence. Each session is 90 minutes, 22:30–00:00 Japan time. If you miss a session, resume the next unfinished lesson in your next study slot.

Language learning is scheduled from 22:00 to 22:30 before each math session. There are no study sessions on November 22 or 23; Lesson 13 resumes on Wednesday, November 25.

Bring paper and a pen. From Lesson 16, use a calculator with exp and ln. Code exercises ask you to predict results; installing or running software is not required.

Follow the exact resource boundaries. Resource times are study budgets, including pauses. Where a published exercise is assigned, do it instead of the specified local question. The local version remains available if the source is unavailable.

Attempt each problem before revealing its answer. If you are stuck for eight minutes, reveal the first solution step, close it, and continue. Save the final question for the last block and attempt it with answers closed.

For Lessons 1–21, continue when you can explain the final check. A self-corrected arithmetic slip is fine. If the main reasoning is unclear, use the next study slot to reread the notes and redo that lesson with solutions closed. If it is still unclear, bring your attempt to this chat. Follow the specific completion rules in Lessons 22–24.

Stop at midnight. There is no homework outside the three weekly sessions. This course prepares you for the mathematical parts of Transformer inference.

LESSON 01 /24Learn & practice

Vectors: coordinates, addition, and scaling

·22:30–00:00 JST·90 minutes
Recall10 min
Learn20 min
Break5 min
Practice40 min
Check15 min
01

Recall

22:30–22:40 · 10 minutes

Try these without notes. Reveal each answer after your attempt.

R1

Warm-up: calculate −3+5-3 + 5 and 2×(−4)2 \times (-4).

Show R1 answer

−3+5=2-3 + 5 = 2; 2×(−4)=−82 \times (-4) = -8.

R2

Warm-up: solve x+2=5x + 2 = 5.

Show R2 answer

Subtract 22 from both sides: x=3x = 3.

02

Watch & read

22:40–23:00 · 20 minutes

Watch20 min
3Blue1Brown — Vectors | Chapter 1, Essence of linear algebra

Watch the full video once. Pause to copy one addition and one scaling example. The 20-minute block includes pauses and the mini-lesson below; it is not the video runtime.

LESSON NOTES

A scalar is one number. Here a vector is an ordered list, such as (2,−1)(2, -1). On a drawing, this means move 22 units right and 11 unit down. Use the same scale on both axes. Add or subtract matching coordinates: (a,b)+(c,d)=(a+c,b+d)(a, b) + (c, d) = (a+c, b+d). Multiply every coordinate when scaling: 3(a,b)=(3a,3b)3(a, b) = (3a, 3b). An arrow from point P to point Q has coordinates Q−PQ-P. We write small vectors horizontally for convenience; later AxAx will treat x as a column vector.

Five-minute break23:00–23:05 · leave the screen
03

Practice · L01

23:05–23:45 · 40 minutes

Write an attempt before opening an answer. Check and correct your work in the next block.

Q1

Let u=(2,−1)u = (2, -1) and v=(−3,4)v = (-3, 4). Draw both from the origin and label their endpoints. Then draw u+vu+v using head-to-tail addition.

Show Q1 answer

u ends at (2,−1)(2, -1); v ends at (−3,4)(-3, 4). Move a copy of v so its tail is at u’s endpoint. Its tip is (2−3,−1+4)=(−1,3)(2-3, -1+4) = (-1, 3), the endpoint of u+vu+v.

Q2

Calculate u+vu+v, u−vu-v, and 2u+v2u + v for the same u and v. Show the coordinate arithmetic.

Show Q2 answer

u+v=(2−3,−1+4)=(−1,3)u+v = (2-3, -1+4) = (-1, 3). u−v=(2−(−3),−1−4)=(5,−5)u-v = (2-(-3), -1-4) = (5, -5). 2u+v=(4,−2)+(−3,4)=(1,2)2u+v = (4, -2)+(-3, 4) = (1, 2).

Q3

Calculate 3u3u and −2v-2v. For each, describe the change in length and direction.

Show Q3 answer

3u=(6,−3)3u = (6, -3), three times the length with the same direction as u. −2v=(6,−8)-2v = (6, -8), twice the length with the opposite direction to v. The minus sign reverses direction; the absolute value scales length.

Q4

An arrow starts at (1,2)(1, 2) and ends at (4,0)(4, 0). Find its vector coordinates and draw an equivalent arrow from the origin.

Show Q4 answer

End minus start gives (4−1,0−2)=(3,−2)(4-1, 0-2) = (3, -2). The equivalent arrow starts at (0,0)(0, 0) and ends at (3,−2)(3, -2). Moving an arrow without changing its length or direction preserves the vector.

Q5

A feature vector uses [length, width, height]. Explain whether [2,3,4][2, 3, 4] and [4,3,2][4, 3, 2] describe the same measurements.

Show Q5 answer

They do not. The first has length 22 and height 44; the second has length 44 and height 22. Positions have assigned meanings, so order matters.

04

Check & correct

23:45–00:00 · 15 minutes total

Reveal the answers above one at a time. Compare the reasoning, correct any errors, and record at most one unresolved issue. Then attempt the final check with answers closed. For a learning session, both steps share the last 15 minutes.

05

Final check

Within the final 15-minute block

Without notes, let a=(−1,2),b=(3,1)a = (-1, 2), b = (3, 1). Calculate 2a−b2a - b and explain the first coordinate.

Show final answer

2a−b=(−2,4)−(3,1)=(−5,3)2a-b = (-2, 4)-(3, 1) = (-5, 3). The first coordinate is 2×(−1)−3=−52\times (-1)-3 = -5.

WHEN YOU FINISH

Attempt all five exercises, correct every mismatch, then solve the exit question without copying its answer. You can explain why vector subtraction is coordinatewise.