ContentsFoundations to FrontierBezhig

Foundationsto Frontier

Mathematics, computer science, AI and engineering on one integrated path.

Caleb Kious

10f(x) = 1 / (1 + e−x)10.23
x = 0.60height f(x) = 0.646slope f′(x) = 0.229
Drag the point, or focus it and press the arrow keys. The orange line is the tangent; its slope is the derivative at that point. Module 08 builds it from two nearby points.

Why one path

Most people meet mathematics, computer science, artificial intelligence and hardware engineering as separate subjects, in separate courses, from separate books. The connections, which are what an engineer actually uses, are left for later, and later rarely comes.

This book closes those gaps. A derivative arrives with the program that computes it, a gradient with the network it trains, and a drone with the force balance that keeps it in the air.

Read the preface, or see how to use this book for reading paths by goal.

Picture first

Wherever a picture can carry it, a chapter’s central idea comes with one.259 figures were drawn for this book.

Practice that stays

954 exercises, each with a complete solution, and hints that come in rungs so you take only the help you need.

Checked, and honest about it

Answers verified by script, lab tests tested against deliberately wrong code, and dated sources for every fact that can change. How this book was checked says what was verified and what was not.

The route

Fourteen parts. You do not need to read them all, or in order.

Learn how to learn

How the sessions work, how to use AI tools without losing the skill, and where to start.

  1. Part IStart here5 chapters, 33 exercisesHow learning works, how to use AI without losing the skill, and how to plan a path that fits your week.

The core

Foundations, three semesters of calculus, and algorithms and systems, taught side by side.

  1. Part IIFoundations10 chapters, 63 exercisesAlgebra, functions, and trigonometry, side by side with your first programs and proofs.
  2. Part IIICalculus I18 chapters, 185 exercisesRates, limits, derivatives, and integrals, each one computed, checked, and connected to code.
  3. Part IVAlgorithms and systems17 chapters, 87 exercisesFrom data structures and proofs of correctness to machines, operating systems, databases, networks, and distributed systems.
  4. Part VCalculus II15 chapters, 124 exercisesIntegration strategy, honest numerical error, differential equations, series, and curves in the plane.
  5. Part VICalculus III16 chapters, 132 exercisesVectors, surfaces, gradients, multiple integrals, and the theorems of vector calculus.

Applied and graduate work

The mathematics every engineering track leans on, five bounded projects, and the graduate core.

  1. Part VIIApplied mathematics and computation14 chapters, 70 exercisesLinear algebra, probability, statistics, numerical methods, and differential equations, put to work in systems, GPUs, machine learning, robotics, and aerospace.
  2. Part VIIIProjects5 chapters, 5 exercisesFive bounded engineering projects, each with a specification, independent tests, and stated limits.
  3. Part IXThe graduate core23 chapters, 127 exercisesSpecifications, semantics, algorithms with certificates, measurement, architecture, and machine learning you can derive and defend.

Frontier tracks

Each track opens with a map of its whole route and teaches its first module in full.

  1. Part XFrontier engineering3 chapters, 22 exercisesWhat engineers are building now, and the mathematics and code underneath it: drones that hold altitude, cars that follow a lane, and machines that run models fast.
  2. Part XIThe AI Lab2 chapters, 25 exercisesFrom the chain rule to a small code model you train with reinforcement learning, reward with a grader you wrote, and then open up to see what it learned.
  3. Part XIIThe Engineering Lab2 chapters, 26 exercisesFrom Newton’s second law to a drone you design, analyse, build, test, and fly with your own C++ attitude controller.
  4. Part XIIIGeometry2 chapters, 40 exercisesFrom angle chasing to olympiad circles, with the two bridges an engineer needs: geometry as the constraint language of CAD, and geometry as code.
  5. Part XIVThe Algorithms Lane2 chapters, 15 exercisesFrom your first loop to choosing, proving, and coding the right algorithm under a clock.

From the engine

The author builds game engines and aerospace simulations, and 25 chapters end their teaching with a short piece of that code, quoted unedited and explained, most with a small example worked by hand.

All 25 notes, by project

Explorers

Four chapters come with an interactive model you can push around before you do the mathematics.

Ways to read

Here, in your browser

The whole book, with three reading themes, search, and solutions that stay folded until you ask for them. Open the contents.

With the lab code

Starters you type into, the tests that judge them, and the worked code the book prints. Browse the code.

Cover of Foundations to Frontier