antifold

Toolkit

Physics Toolkit: A Guided Tour

Physics keeps reusing a small set of ideas: how arrows align, how transformations stretch space, how coordinates rotate, how energy drains away, how any signal breaks into pure tones. Master these five tools and you hold the Swiss Army knife of modern physics. Each one below has a live visual you can play with and a short breakdown of the math.

Hover here for how this toolkit plugs into Spacetime, Fields, and Light.

Connections

Pointers to where each tool appears in context:

Vectors and Dot Product

Here is one of the most useful questions in all of physics: "How much do these two things point in the same direction?" The dot product answers it. $\mathbf a\cdot\mathbf b=\|a\|\,\|b\|\cos\theta$ -- projection times length, nothing more.

Think of one arrow asking the other, “how much of you points in my direction?” That number is the length of the projection, scaled by the length of the receiver. In mechanics this shows up as work: force dot displacement. In statistics it becomes correlation. In machine learning it becomes similarity. Same picture, same rule.

When the green arrow swings to be perpendicular to the blue one, the dot product goes to zero: no alignment, no work. When they overlap, it’s maximal and positive; when they point opposite, it’s large in magnitude but negative (same line, opposite direction).

Drag the sliders to swing the arrows around. The blue and green vectors move independently; the orange arrow is the projection of one onto the other. Readout: a·b =

Terms in the formula: $\|a\|,\|b\|$ are lengths; $\theta$ is angle between; $\cos\theta$ is the fraction of one along the other; the projection arrow shows $\|b\|\cos\theta$.

Linear Maps and Eigenvectors

A $2\times2$ matrix sends grids to sheared, stretched, or rotated grids. But here is the remarkable thing: no matter how complicated the transformation looks, there are almost always special directions that refuse to turn. They just stretch (or shrink) by a factor $\lambda$. Those are the eigenvectors, and finding them is one of the most powerful moves in applied mathematics.

Watch the gray grid warp into its image as you drag the sliders. The unit circle deforms into a green ellipse. The ellipse’s principal axes are exactly those stubborn directions that the map does not rotate (shown in orange), and the radii along them are the eigenvalues.

Why this matters: preferred directions show up everywhere. Diffusion is fastest along one axis of a crystal; a covariance matrix has principal components; stability near an equilibrium point is set by the eigenvalues of the linearized system. This little picture is the common thread.

Notice how the circle stretches into an ellipse whose axes reveal the eigenvectors. Gray grid and its image, unit circle (blue) and its image (green). Readout:

Terms in the formulas: $\begin{bmatrix}a&b\\c&d\end{bmatrix}$ sets the map; eigenvalues solve $\det(A-\lambda I)=0$; eigenvectors solve $(A-\lambda I)\,\mathbf v=0$; real eigenvectors appear as orange arrows.

Basis Mixing

Changing basis rotates coordinates. A rotation by $\theta$ mixes components: $\begin{bmatrix}\cos\theta & \sin\theta\\-\sin\theta & \cos\theta\end{bmatrix}$.

You can describe the same vector using different rulers. Rotate the axes and the numbers change, even though the arrow is the same. That’s all a basis change is. In physics this shows up as moving between lab axes and a convenient frame, or between “flavor” and “mass” bases in mixing problems.

What to notice: the columns of the rotation matrix are just the new axes drawn in old coordinates. Multiplying by the matrix answers, “where do the old basis vectors land?” Everything else follows by linearity.

This picture shows original axes (gray), rotated axes (blue), a fixed vector (orange), and its coordinates in the rotated basis. Readout:

Terms in the formulas: $\cos\theta$ keeps the part along the new axis; $\sin\theta$ moves the cross‑component; the matrix columns are where the unit basis vectors go.

Damped Oscillator

Push a swinging door and let go. It swings back, overshoots, swings again, and gradually settles. That is a damped oscillator, and the equation $\ddot x + \gamma\dot x + \omega^2 x=0$ captures everything about it -- the spring-like restoring force, the friction that drains energy, and the phase-space spiral that shows the whole story at a glance.

Set $\gamma=0$ and the trail is a closed loop: energy cycles between potential ($\omega^2x^2$) and kinetic ($\dot{x}^2$). Add damping and the loop spirals inward. Mathematically, $\tfrac{\mathrm d}{\mathrm dt}\big[\tfrac12(\omega^2x^2+\dot{x}^2)\big] = -\gamma\,\dot{x}^2 \le 0$; in short, drag always drains energy.

Three regimes sit in that one line: underdamped ($\gamma<2\omega$) spirals with decaying oscillations; critically damped ($\gamma=2\omega$) returns fastest without overshoot; overdamped ($\gamma>2\omega$) crawls back with no wiggles. Car suspensions, microphones, and qubits all live on this diagram.

Watch the spiral tighten as damping steals energy, or set damping to zero and see a perfect closed loop -- energy cycling forever. Readout: energy-like value $E=\tfrac12(\omega^2 x^2 + \dot{x}^2)$ =

Terms in the formula: $x$ is displacement; $\dot x$ is velocity; $\ddot x$ is acceleration; $\gamma$ controls damping strength; $\omega$ sets the natural frequency; with $\gamma=0$, $E$ stays constant.

A Tiny Fourier Builder

Every sound you hear -- a violin note, a spoken vowel, a drum hit -- is a sum of pure tones at different frequencies. Fourier's insight was that any repeating signal can be written this way: $s(t)=\sum_k A_k\cos(2\pi k t)$. It is one of the most far-reaching ideas in all of science.

Turn up the second harmonic and the curve grows shoulders; add a third and corners begin to form. Higher $k$ brings finer detail. This is the time-frequency tradeoff in action: the blue curve is the signal in time, the green bars show “how much” of each frequency you used. JPEG images, MP3 audio, and MRI scans all rely on this same decomposition. Here we keep the idea minimal.

Why this matters: waves, heat flow, circuits, and quantum dynamics all become easier when you think in frequencies. Many equations diagonalize in a Fourier basis, turning hard derivatives into simple multipliers.

Slide the amplitudes and watch the waveform reshape in real time. Blue is the combined signal; green bars show the strength of each frequency component ($k=1..5$).

Terms in the formula: $A_k$ is the amplitude of tone $k$; the cosine sets the shape; higher $k$ means higher frequency; the bar height shows $|A_k|$.

Summary

Five tools, and you have already seen them all in action. The dot product tells you how things align. Eigenvectors reveal the directions a transformation cares about most. A change of basis lets you describe the same reality from a different vantage point. Phase-space spirals show you where energy goes. And Fourier analysis lets you hear the individual notes inside any signal.

These are not five separate tricks. They are five views of the same deep idea: physics simplifies when you find the right way to look at it. Keep playing with the sliders until the shapes feel like old friends -- they will show up again and again as you go deeper.