Skip to content

Color Math

Some cool math explained with colors.


Color Maths

Because it helps to know which part of an equation does what.

Bayes' Theorem


Pr(HE)=Pr(EH)Pr(H)Pr(EH)Pr(H)+Pr(E¬H)Pr(¬H)

The chance evidence is real (supports a hypothesis) and is the chance of a true positive among all positives (true or false).

Combination


C(n,k)=P(n,k)k!

To group (combine) k items from n choices, count the specific permutations and consolidate the reorderings within the group.

Sines

Sine is a fundamental wave function, appearing in geometry, calculus, physics, and signal processing.

Sine (Unit Circle)


sin(θ)=heightradius

Pick an angle on the unit circle: sine is the vertical coordinate as a percent of the maximum.


Sine (Series Definition)


sin(x)=xx33!+x55!+

Sine is an initial impulse, with a restoring force, with a restoring force on the restoring force, and so on.


Sine (Geometric Definition)


sin(θ)=oppositehypotenuse

In a right triangle, pick an angle: sine is the opposite side as a percent of the largest side.

Radian


x

Degrees see angles from the viewer’s perspective (0-360 scale)

θ=sr

Radians measure the mover’s path
in terms of the radius.

Pythagorean Theorem


c2=a2+b2

When an object spans perpendicular directions, its area is the combined area of each part.

Permutation


P(n,k)=n!(nk)!

To order (permute) k items from n choices,
start counting all orderings and
stop counting after k items are found.

Imaginary Number

A maybe different way to think about imaginary numbers:

  • What's an imaginary number?
    • A number pointing sideways (North/South) instead of the typical East/West number line.
  • What does i mean?
    • i, by itself, points North. Multiplying by i rotates you 90 degrees. 2 rotations points you backwards (ii=1), 4 rotations spins you around fully (i4=1)
1i2=1i=1

Facing forward, two 90-degree rotations is backward.
An imaginary number is halfway backward.

LaPlace Transform


est=e(a+bi)t=eatebit

A complex exponential spiral has an implied decay and spin rate

F(s)=0f(t)estdt

To measure a specific decay and spin rate in a signal,
project onto a spiral of that rate.

Fourier Transform


Xk=1Nn=0N1xnei2πknN

To find the energy at a particular frequency,
spin your signal around a circle at that frequency, and
average a bunch of points along that path.

Euler's Identity


eiπ=1

Growth pushing sideways lasting for half a circle
points you backwards.

Eulers Formula


eix=cos(x)+isin(x)

Growth in a perpendicular direction over time
is circular: here are the horizontal
and vertical coordinates

E

The constant e (approximately 2.718) is the base of natural logarithms and arises naturally in many areas of mathematics, especially those involving growth and change.

  • Why's e special?
    • All circles are the unit circle, scaled up. All continuously growing systems are ert, scaled to some rate and time.

E (Compound Interest Definition)


e=limn(1+1n)1n

The base for continuous growth is
the unit quantity earning unit interest for unit time, compounded as fast as possible


E (Derivative Definition)


ddxex=100%ex

ex is the function where the rate of change
is always 100% of your current value.


E (Natural Log Definition)


ln(a)=1a1xdxln(e)=1

The natural log is the time to grow from 1 to a value
using 100% continuous interest.

e is the number that takes the natural logarithm
1 unit of time to reach.


E (Series Definition)


e=1+11!+12!+13!+

The base for continuous growth is
the unit quantity earning unit interest

plus the interest on the interest

plus the interest on the interest on the interest and so on

Convolution


(fg)(t)=deff(τ)g(tτ)dτ

To convolve a kernel with an input signal:
flip the signal, move to the desired time,
and accumulate every interaction with the kernel.

Derivative


dfdt=limh0f(t+h)f(t)h

Take the new value minus the old value to get the change of value of the quantity,
then divide by the time interval,
and let that interval tend to 0 to get the
rate of change of quantity with respect to time.



Wow, you made it to the bottom. Here, have a cookie: 🍪

Loosely based on Kalid Azad's ColorizedMath - but cleaned up and extended.

Last updated:

© NullDev 2025