antifold

Toolkit

Physics Toolkit: A Guided Tour

Key tools used across the physics pieces here: vectors and dot product, linear maps and eigenvectors, basis mixing, damped motion, and small Fourier builds. Each has a live visual and a short breakdown of terms.

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

The dot product measures alignment: $\mathbf a\cdot\mathbf b=\|a\|\,\|b\|\cos\theta$. It is projection times length.

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).

This picture shows two vectors (blue, green), and the projection of one onto the other (orange). 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/scaled grids. Eigenvectors are directions that do not turn; they only stretch by $\lambda$.

Watch the gray grid go to tan: that’s the map acting on space. The unit circle goes to a green ellipse. The ellipse’s principal axes are the special directions that the map doesn’t rotate (those are the eigenvectors, 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.

This picture shows a grid (gray) and its image (tan), the 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

The equation $\ddot x + \gamma\dot x + \omega^2 x=0$ models a mass on a spring with drag. In phase space, spirals show energy loss.

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.

This picture shows the phase portrait trail from the current state. 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

Many signals can be written as a sum of tones: $s(t)=\sum_k A_k\cos(2\pi k t)$. Turning tones on/off changes shape instantly.

Add a 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 left plot is time, the tiny bars are “how much” of each frequency you used. Most real decompositions include sines and phases too; 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.

This picture shows time signal (blue) and a small bar spectrum (green) for $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

You now have visuals for core tools: alignment and projection (dot), linear maps and eigenvectors (shape & preferred directions), basis mixing (rotations), damped motion (phase space), and a tiny Fourier builder (time/frequency). Each term in the equations is spelled out where it appears; use the sliders until the shapes feel familiar.