Foundations · Lesson 4
Variables and unknowns
A variable is a name for a quantity that is not fixed yet. Naming the unknown is how relationships become thinkable - in equations, in science, and in machine learning features and parameters.
Core ~28 minDeep study ~78 minWhat is a variable?How do you isolate an unknown?
Before this: What numbers are, Operations as transformations, Fractions and ratios
How this idea was born
First principles
Name before you know
Unknowns versus placeholders
- Unknown: find such that .
- General quantity: for every real , .
- Parameter: a named quantity we set or learn ( in a model, in a dosing rule) while other letters play inputs.
Equations as truth conditions
- Subtract from both sides: .
- Divide by : .
al-Khwārizmī: restoration and balancing
- al-jabr (restoration): repairing an equation by moving terms.
- al-muqābala (balancing): canceling like terms on opposite sides.
Worked intuition
Solve .
Subtract : .
Add : .
Divide by : .
Each step is an invertible transformation applied to both sides.
"Let be the missing beam length. The known span is meters equals ." You can rearrange before the tape measure arrives.
is one sentence for every constant-speed trip. Plug in different numbers; the relationship stays. That is the joy of naming.
has no real solution. Historically and pedagogically, pressure like this pushes the number system to grow (complex numbers). You do not need the full theory yet. Feel the pressure: equations can force the toolkit to expand.
A linear model names inputs , parameters , and a prediction . Training searches for parameter values across many examples. Childhood "let be the unknown" becomes "let be what we learn."
Common confusions
- "A letter always means find its number." Sometimes it means "for all," sometimes "parameter," sometimes "unknown." Label the job.
- "Algebra is alphabet soup." Algebra begins as method: restore, balance, reduce. Letters are seats; the method is the craft.
- "al-Khwārizmī invented the letter x." Do not mythologize that. Credit systematic treatment of unknowns and teachable procedures.
- "Doing the same thing to both sides is a school rule." It is conservation of equality under invertible maps. Non-invertible moves (multiply both sides by zero) can destroy information.
- "If I found one solution, I'm done." Some equations have none, one, or many. The equation is a truth condition; the solution set can be rich.
History and stories
Real world
Open when you want the machine-learning connection. Skip freely.
Field notes, extra examples, and glossary live here when you want more than the core path.
Carry this forward
- Variables name quantities that vary or are unknown.
- Equations assert equality; solving undoes operations symmetrically.
- Algebra begins as method, not alphabet soup.
- Foundations checkpoint complete - ahead: equations in depth, functions, graphs, then the road toward linear algebra and probability for AI/ML.
Read more
Go deeper when curiosity hits - videos, essays, and primary trails.
- referenceMacTutor - al-KhwārizmīAlgebra text, Hindu-Arabic numerals, and the word algorithm.
- videoNumberphile - The word AlgebraLight entry into the linguistic and historical trail.
- videoKhan Academy - Intro to equationsWarm-up intuition for why we name unknowns.
- articleMacTutor - al-Khwarizmi (House of Wisdom context)Broader intellectual context around the House of Wisdom era - optional depth.
- articleAlgebrica - EquationsHow unknowns enter equations; good companion diagrams.
- bookSteven Strogatz - The Joy of XThe Joy of x and Finding Your Roots: naming unknowns and growing the number system.
Check your understanding
A short learning loop - try a few, learn from misses, mark complete when you have engaged. No timer, no scoreboard.
Try at least 3 core prompts, or choose I'll return later.