
The Mathematics of Large Language Models
REAL MATHEMATICS. NOT RECIPES.
Written by former world #5-ranked Kaggle competitor, economist, and predictive-modeling practitioner Jason Karpeles, this 600-page desk reference is for readers who want the real mathematics behind modern AI, not another API cookbook or generic summary. Karpeles brings 30 years of forecasting and machine-learning experience, a master's degree in Economics from NYU, and an MBA from Duke.
The equations and derivations appear in the form researchers and engineers actually use, with plain-English orientation and symbol-by-symbol notation guides when notation becomes the obstacle.
Revised and updated for September 2026
46 original diagrams and figures
879 displayed equations
12,000+ mathematical expressions
17 connected chapters
Desktop cheat sheet The Mathematics Most AI Books Skip
Most AI explanations stop just before the mathematics becomes interesting. This book goes further.
It is for machine-learning engineers, data scientists, quantitative practitioners, technical leaders, STEM students, and self-taught readers who want to understand what is happening underneath.
You do not need to arrive fluent in every notation system. You do need to want the real equations. How the Mathematics Is Unpacked
Important equations are followed by two concise guides:
What It Does:
What the equation accomplishes, why it matters, and where it fits.
Reading the Formula:
A symbol-by-symbol walkthrough of the notation and the role of each term.
The equations, derivations, and results remain intact. The explanations are an on-ramp, not a substitute.
Already fluent in the notation? Skip the scaffolding and use the book as a technical reference. Built as a Desk Reference
The 17 chapters form a structured path through modern AI mathematics. The preface shows which chapters stand alone, which support later material, and several reading routes.
Each chapter tells you:
What it establishes
What it assumes
What later chapters build on it
The included desktop cheat sheet keeps key notation and concepts close at hand while you study, code, research, or work. The Mathematics Has a History
The book also follows the human story behind the equations: failed experiments, unexpected connections, competition results, and problems that changed how researchers thought about learning. What the Book Covers
Approximation and neural-network representation
Optimization and training
Generalization, implicit bias, and double descent
Convolution, recurrence, and state-space models
Attention and transformers
Graph models
Latent-variable and adversarial models
Diffusion and optimal transport
Continuous-depth models and operator learning
Bayesian methods and calibrated uncertainty
Robustness and causality
Scaling laws and in-context learning
Hallucination, model limits, and abstention Who This Book Is For
Choose this book if you want a single, rigorous mathematical reference that moves from notation to derivation to modern AI architecture without pretending the hard parts are easy.
If you already read the mathematics fluently, use it as a dense desk reference. If notation is the barrier, use the explanatory framework to cross it.
Either way, the mathematics stays intact.
Note: Older Kindle devices before 2018 may not render some equations correctly.
Book details
- Full title: The Mathematics of Large Language Models: Machine Learning Theory Made Readable: LLMs, Transformers, Diffusion, Neural Networks, Optimization, and ... (The Mathematics of Artificial Intelligence)
- Author: Jason Karpeles
- Publisher: Independently published
- Format: Paperback
- Pages: 590
- Language: English
- Publication date: July 7, 2026
- ISBN: 9798185219508
Secure checkout · Fast dispatch · Need 100+ copies? Email us for a quote.
| Quantity | Price | Discount |
|---|---|---|
| 5–10 | $27.97 | 3% |
| 10–25 | $27.39 | 5% |
| 25–100 | $25.95 | 10% |
| 100+ | Contact us | |








