At a glance
A test charge crosses a uniform magnetic field. This sim reads that single instant from two inertial frames, Alice's lab and Bella's moving frame, and prints the fields and the force each observer measures. It shows how a field and a force are described by two observers in relative motion.
What you'll learn
- How the fields Bella measures depend on her velocity v.
- How the charge's speed and the force on it are measured in each frame.
- Which quantities differ between the two frames, and which are the same for both.
- How to read the two columns of the Readouts panel side by side.
What's on screen
- Test charge q (amber disc), with its velocity as an amber arrow labelled u or u′.
- B field (blue ⊗ lattice, into the page). Layer: Show B.
- E field (purple arrows). Layer: Show E.
- Net force on q (pink arrow, labelled |F| or |F′|). Layer: Show force.
- Readouts panel: one block per frame, with E, B, the force, and two green rows (see section 07).
The controls
Press ⌖ on a row to see where that control sits in the sim.
| Control | What it changes | Range | |
|---|---|---|---|
| Show E | Draws the electric-field arrows of the frame you are viewing. | on / off opens off | |
| Show B | Draws the magnetic-field lattice of the frame you are viewing. | on / off opens off | |
| Show force | Draws the net force on the charge, with its size. | on / off opens off | |
| Observer frame | Chooses whose reading the canvas shows: Alice (lab) or Bella (moving frame). The Readouts panel always lists both. | Alice / Bella opens on Alice | |
| Bella velocity v/c | Bella's velocity along x relative to Alice. It changes Bella's readouts and her view; Alice's stay put. | −0.9 to +0.9 opens at +0.50 | |
| Particle rest frame | Sets v equal to the charge's speed u and switches to Bella's view. | button sets v/c = +0.50 | |
| Charge q | The size and sign of the test charge. It scales the forces and never touches the fields. | −2 to +2 opens at +1.0 | |
| Readouts | Alice's and Bella's E, B, force magnitude, and two green invariant rows. | panel opens collapsed | |
| ↻ Reset | Back to Alice's view, v/c = +0.50, q = +1.0, all layers off. | top bar |
Fixed: u = 0.50c in Alice's frame and B₀ = 1 into the page, in units with c = 1. The sim shows one instant, so nothing moves: the frame choice and v/c select an observer, not a motion.
In Alice's frame the force is magnetic
A charge q with velocity u feels the Lorentz force F = q(E + u × B): an electric part qE and a magnetic part q u × B.
In Alice's lab the electric field is zero, so only the magnetic part is left:
- For q = +1 the force is Fy = quB₀ = +0.500, pointing up.
- It is perpendicular to u, so it bends the path and does no work on the charge.
- Changing the sign of q reverses the force and leaves its size alone.
A boost mixes E and B
Bella moves along +x at velocity v relative to Alice. Her fields follow from Alice's, with γv = 1/√(1 − v²/c²):
- The mixing terms v × B and v × E are perpendicular to v, so nothing new appears along the boost.
- Alice has E = 0 and B = −B₀ẑ. Bella therefore measures E′y = γv(v/c)B₀ and B′z = −γvB₀ (E in units of cB₀).
- At v/c = +0.50, γv = 1.155, so E′y = +0.577 and B′z = −1.155.
- Reversing v reverses E′y but not B′z, since γv is the same for ±v.
Bella's fields and speed change with v
In the sim's units (c = 1, B₀ = 1), the quantities Bella reads are:
- Both fields grow with |v| and have no limit as |v| → c (the sim stops at 0.9). Their ratio stays fixed: |E′|/(c|B′|) = |v|/c, always below 1.
- The charge's speed changes too. It follows the velocity-addition rule above: u′ = 0 at v = u, u′ = +0.80c at v/c = −0.50, and |u′| never reaches c.
- At v = 0 Bella is Alice: E′ = 0, B′ = −B₀, u′ = u.
The force depends on the frame
The force is dp/dt, and a boost changes both dp and dt. For a force perpendicular to u, as here:
- At v/c = +0.50: 0.500 / (1.155 × 0.75) = 0.577. At v/c = −0.50: 0.500 / (1.155 × 1.25) = 0.346. The force points along the same ±y in both frames; only its size changes.
- Bella adds her own electric and magnetic parts: F′ = qE′y − qu′B′z. At v = u, u′ = 0, so the magnetic part vanishes and the force is purely electric: F′ = qE′y = 0.577.
These sliders move the sim too.
What every observer agrees on
Some quantities have the same value in both frames. The sim prints two of them in green.
- E · B = 0 in both frames: E′ points along y and B′ along z.
- E² − c²B² = −c²B₀², printed as −1.000 at every v and q. A negative value means c²B² exceeds E²: the field is magnetically dominated.
- No frame is purely electric. The invariant stays negative, so B never vanishes. Equivalently, |E′|/(c|B′|) = |v|/c < 1.
- The four-force magnitude. Here F ⊥ u in each frame, so the time component is zero and the magnitude is γu|F| = 0.577|q|, the same in both panels.
Where it matters
- Wires and motors. A current-carrying wire is neutral in the lab, so it pulls a moving charge by a magnetic force. In the charge's frame the electrons and the ions are contracted by different amounts, the wire carries a net charge, and the same pull is electric.
- Accelerator magnets. In a particle's own rest frame a magnet's field acts as a purely electric force on it (u′ = 0), as in the sim at v = u.
- Magnetically dominated plasmas. Pulsar magnetospheres and the solar corona are commonly modelled with E · B = 0 and c²B² > E², the same class as the field in this sim.
Go deeper: the size of the wire's net charge
- In the charge's frame, the wire's net line density is λ′ = −γu u I / c², where I is the lab current.
- Its electric force is then γu times the lab's magnetic force, matching the force transform at v = u (here 0.577 against 0.500).
- The charge density is tiny, but copper has about 10²⁹ electrons per m³. For 1 A through 1 mm², the drift speed is only about 0.07 mm/s.
Summary
Key points
- From E = 0 and B = −B₀ẑ, Bella reads E′y = γv(v/c)B₀ (odd in v) and B′z = −γvB₀ (even in v).
- The three-force changes by F′y = Fy/[γv(1 − uv/c²)], and its direction stays the same.
- Here E² − c²B² = −c²B₀² < 0 in every frame, so no frame is purely electric.
Common mix-ups
- "Alice sees no electric field, so no one does." E is not invariant: Bella measures E′y = γv(v/c)B₀.
- "If some B became E, B must get weaker." Both transverse fields grow by γv: B′z = −1.155 against Alice's −1.000 at v/c = +0.50.
- "Every observer measures the same force." Alice reads 0.500 and Bella 0.577 at v/c = +0.50. The invariant is the four-force magnitude, 0.577 for both.
Things to try on your own
- Set q = −2 and v/c = −0.90. Compute |F′| from F′y = Fy/[γv(1 − uv/c²)] and compare it with the Readouts panel.
- Use Particle rest frame and divide |F′| by |F|. Compare the ratio with γv at v/c = +0.50.
- In Bella's frame with Show E and Show B on, sweep v/c from 0 up to +0.90 and note which arrows change.