Skip to content
mentoor

Topic 5 of 5 · 4 min read

How much math an engineer needs

Goal: Plan a math study path matched to a stated goal (apply, fine-tune or research) with named free resources.

The math you need depends on what you do with models: using them needs almost none beyond reading numbers, fine-tuning needs the intuition from this skill, and research needs proofs and fluency. Decide your goal first, then learn only what it asks for.

Check yourself · 1 of 3

An engineer only calls a hosted model's API to add summarisation to an app. Which math is most useful to learn first?

Choose one answer

Why it matters

Many engineers delay useful work for months because they believe they must finish a textbook first. Others skip the basics and cannot read a loss curve. Matching the study plan to a goal saves time in both cases.

How to do it

  1. Apply (call models in products). Learn to read probabilities, similarity scores and token costs, and to reason about evaluation. This skill's first two topics are enough to start, plus the basics of statistics for test sets.
  2. Fine-tune or train. Add all of this skill: shapes, softmax, cross-entropy, gradients and the learning rate. You should be able to explain why a loss is NaN or why a run is flat. Reading a gradient-descent trace is the target, not deriving it.
  3. Research or build new architectures. Add linear algebra beyond the basics (eigenvectors, decompositions), multivariable calculus and probability proofs. The free book Mathematics for Machine Learning is written for this path.
  4. Skip, for now, anything you cannot name a use for: proofs of convergence, measure theory, and hand-derived backpropagation for exotic layers.
  5. Fill gaps with tools. Use video and interactive sites for intuition, and an AI tutor to explain one step at a time. Ask the tutor to give a worked example with small numbers, then verify by running a few lines of NumPy.

Before and after

Weak plan: "Read a linear algebra textbook, then calculus, then statistics, then start building." No goal, no end date, and nothing is built until the end.

Fixed plan for an engineer who wants to fine-tune a small open-weight model in six weeks:

  • Week 1: watch the vectors and matrices videos, then write the shape examples in NumPy.
  • Week 2: softmax and cross-entropy by hand on three tokens, then check against a library.
  • Week 3: gradients and learning rate, using a one-weight toy problem.
  • Weeks 4 to 6: run a fine-tune, and every time something is unclear, study that one concept.

What goes wrong

  • Learning without running anything. Math stays abstract until you check it on numbers in code.
  • Trusting an AI tutor blindly. Tutors can state a wrong formula in a confident voice. Test every formula on a tiny case.
  • Studying topics in textbook order. Pull concepts in when a project needs them.

Examples

Three engineers, three plans

Goal Learn Free resources
Add AI search to a product cosine similarity, probabilities, evaluation basics Seeing Theory, NumPy basics
Fine-tune a small model all five topics here 3Blue1Brown series, Karpathy's Zero to Hero
Research new architectures full linear algebra, calculus, probability Mathematics for Machine Learning

Each row is a different depth, not a different quality of engineer.

Using an AI tutor well

Prompt: "Explain softmax with logits [2, 1, 0], show each step with numbers, and then give me three more examples to check myself." Then run the numbers in NumPy. If the tutor's answer and the code disagree, trust the code and ask the tutor to find its mistake.

Key points

  • Choose the goal first: applying, fine-tuning or researching models need different amounts of math.
  • Applying models needs numeracy about probabilities and evaluation, while fine-tuning adds shapes, softmax, cross-entropy and gradients.
  • Research work needs deeper linear algebra, multivariable calculus and proofs.
  • Learn just in time: study a concept when a project needs it, and check it in a few lines of code.
  • AI tutors and visual tools help, but verify every formula they give on a small numeric case.

Common mistakes

  • Starting with a whole textbook instead of a project and a goal.
  • Skipping the basics of shapes and loss, then being unable to debug a failing run.
  • Studying only by watching, without computing anything on small numbers.
  • Accepting an AI tutor's formulas without a numeric check.

Check yourself · 2 of 3

What is the best way to use an AI tutor for a formula you have not seen before?

Choose one answer

Check yourself · 3 of 3

Which plan best matches the goal of fine-tuning a small open-weight model in six weeks?

Choose one answer

Practice items, not counted towards your mastery.

Start here