Electric Fields
Physics & ML Basis Function: The Ant Model
1. The AS-Level (The Heuristic)
- The Analogy: We often draw "field lines" radiating out from a point charge like spokes on a wheel. But those lines aren't physical ropes. Instead, imagine placing a tiny, blind robotic ant near a central charge. The ant has one rule: measure the push/pull exactly where it is standing, and take one tiny step in that direction. If it keeps doing this, the path it leaves behind is the field line.
- The Key Takeaway: Field lines are just the recorded history of local, step-by-step decisions made by a test particle.
- Self-Assessment (Open Question): If we place two identical positive charges near each other, and drop our "ant" exactly halfway between them, where does it go?
Shift + Click: Place a random charge (+ or -).
Drag: Move existing charges to warp the field.
2. The BS/MS-Level (The Classical Mechanics)
- The Mechanics: The "Ant Model" is computationally known as Euler Integration of a vector field. The electric field \(\mathbf{E}\) of a point charge is a continuous vector space defined by Coulomb's Law. Our test particle updates its position \(\mathbf{r}\) iteratively based on the local field vector.
- The Universality of the Solver: Because Coulomb's Law and Newton's Law of Universal Gravitation share the exact same geometric \(1/r^2\) decay, this exact same mathematical solver handles multiple physical regimes. By adding an initial velocity vector (momentum), the massless "field line tracer" instantly becomes a massive particle navigating a potential well.
- The Math: The generalized central force field at position \(\mathbf{r}\) from a source at the origin is:
$$\mathbf{F}(\mathbf{r}) = C \frac{1}{|\mathbf{r}|^2} \mathbf{\hat{r}}$$(Where \(C\) represents either \(k_e q_1 q_2\) for electrostatics or \(-G m_1 m_2\) for gravity).
The computational trajectory updates via a discrete time step \(\Delta t\) using basic kinematics (\(\mathbf{v}_{n+1} = \mathbf{v}_n + \mathbf{a}\Delta t\) and \(\mathbf{r}_{n+1} = \mathbf{r}_n + \mathbf{v}_{n+1}\Delta t\)).
- Self-Assessment (Open Question): Why do field lines mathematically never cross in a static, conservative vector field?
3. The PhD-Level (The Unshielded Physics / ML Mapping)
The ML Bridge: The Ant Model is fundamentally Gradient Descent. The central source creates a scalar potential field \(V(\mathbf{r})\) (the loss landscape). The force vector is the negative gradient of that potential (\(\mathbf{F} \propto -\nabla V\)).
- When \(v_0 = 0\) (no momentum), we are computationally executing a first-order optimization algorithm tracing the steepest descent.
- When \(v_0 > 0\) (momentum added), we see orbital slingshots and Rutherford scattering. This physically proves why the Momentum parameter in ML optimizers (like Adam or SGD with momentum) allows algorithms to conserve kinetic energy, roll through local minima, and escape shallow potential wells.
v₀ = 0 acts as pure Gradient Descent.
v₀ > 0 adds momentum to roll through the landscape.
- The Foundational Reality: A "field line" is a macroscopic, continuous illusion derived from taking the limit as \(\Delta t \to 0\). In reality, the interaction is mediated by discrete, quantized photon exchanges. The continuous trajectory we see—whether it's an orbiting moon or a deflected electron—is a statistical expectation value of the particle's most probable quantum path.
- Self-Assessment (Open Question): If we add a frictional "drag" parameter to our scattering simulation (\(\mathbf{a}_{net} = \mathbf{a}_{coulomb} - \gamma \mathbf{v}\)), how does the resulting orbital decay map mathematically to the concept of Learning Rate Decay in a neural network?