Math, stats and MLyou can actually see.

Short visual lessons that show why the formulas work: calculus, probability, statistics and machine learning, one picture at a time.

CalculusLinear algebraProbabilityStatisticsMachine learning
Drag the point · from the reel “Where does the minus come from?”

Follow the learning path

Each subject builds on the one before. Start anywhere, but if machine learning feels like magic, the answer is usually one step to the left.

Where does the minus come from?

Why the derivative of sin is cos, but the derivative of cos is minus sin. Drag the slider and watch the point move.

1. A point on a circle

Take a circle of radius 1. A point at angle x sits at

\( (\color{#4D9DFF}{\cos x},\ \color{#3DDC97}{\sin x}) \)

2. Let it move

As x grows, the point travels around the circle. Its velocity is the radius turned a quarter-turn (90°), so it always points along the circle.

\( \text{velocity} = (\color{#FF5D6C}{-}\color{#3DDC97}{\sin x},\ \color{#4D9DFF}{\cos x}) \)

3. Read off the two speeds

The height changes at rate cos x. The sideways position changes at rate −sin x, because in the top half the point is moving left, so cos x is shrinking.

\( \dfrac{d}{dx}\color{#3DDC97}{\sin x} = \color{#4D9DFF}{\cos x} \qquad \dfrac{d}{dx}\color{#4D9DFF}{\cos x} = \color{#FF5D6C}{-}\color{#3DDC97}{\sin x} \)

The minus is just a direction. Differentiate four times (four quarter-turns) and you're back at sin x.

50°
height: sin x0.77
sideways: cos x0.64
height speed: (sin x)′ = cos x0.64
sideways speed: (cos x)′ = −sin x−0.77

Cheat sheets & study packs

Printable PDFs in the same colour-coded style as the videos. Instant download through Gumroad.

Sample products and prices. Swap in your own Gumroad links in the PRODUCTS list at the bottom of this file.

Watch the shorts

New visual explainers every week. Follow wherever you scroll.

Why Logic Gate?

Most people don't struggle with math because it's hard. They struggle because nobody showed them the picture. Every Logic Gate lesson starts with one image that makes the formula obvious, then builds the math on top of it.

Green is always sin
Blue is always cos
Red marks the minus sign
Gold is velocity and slope