CLASS 12 · MATHEMATICAL TOOLS
3D Vectors & Trigonometry for EM
The dot and cross products you already met don't change in three dimensions, they just pick up a third component. What's new is where they show up: the magnetic force on a moving charge, the work an electric field does along a tilted path, and the flux through a slanted surface are all 3D dot or cross products in disguise, and a rotating vector in that same plane is exactly where sine and cosine waves come from.
Watch it happen
v × B always points perpendicular to the plane v and B are drawn in, which is why it shows here as a dot (toward you) or a crossed circle (away from you) rather than another arrow in the plane. Flip the charge sign from +q to −q without touching either slider and watch F flip to the opposite side, even though v, B, and the angle between them never changed.
Set v and B to any two angles and watch the force indicator at the origin switch between a dot (force toward you, out of the page) and a crossed circle (force away from you, into the page) as you sweep B past v. Then flip the charge sign and watch the indicator switch sides instantly, with neither slider moved.
Where it comes from
Quick recap first. For two vectors A and B separated by angle θ, the dot product is (a number) and the cross product’s magnitude is (a vector, direction by the right-hand rule). See Vectors & Vector Mathematics for the full derivation, if you need to rebuild it.
Now a genuine 3D calculation. Take and , and find the torque . Unlike the 2D case, every component can be nonzero now, so we need the full determinant expansion:
Each component is just the 2D cross-product formula applied to the pair of axes it leaves out, done three times over. Nothing new conceptually, just three bookkeeping passes instead of one.
Magnetic force needs exactly this. A charge moving with velocity through a field feels:
This is a cross product, not a dot product, precisely because the force has to be a new vector, perpendicular to both the charge’s motion and the field, rather than a single number. The right-hand rule gives the direction of itself; the sign of then decides whether points that way or the exact opposite way.
Work and flux use the dot product instead. The work an electric field does moving a charge through displacement is , and the flux through a surface of area vector (pointing along the surface’s normal) in a uniform field is . Both only care about how much of one vector lies along the other, which is exactly what a dot product measures, so a surface tilted 90° to the field carries zero flux no matter how large the field or the area is.
Where sine and cosine graphs come from. Picture a vector of fixed length (a phasor) spinning counterclockwise at a steady angular speed , starting at angle when . At any later time its angle is , so by the plain definition of sine and cosine on a circle of radius , its two components are:
Hold the phasor still and look only at as ticks forward: that single number traces out exactly a sine wave, rising from 0 to and back as the phasor sweeps around. This is the whole reason AC voltage and current are written as and : they’re the vertical shadow of two phasors spinning together, offset by the phase angle .
Where the shortcut stops working
The most common slip is applying the right-hand rule to find , then forgetting the charge sign entirely and reporting that direction as the force. For a positive charge the two do coincide, but for a negative charge the actual force points the exact opposite way. An electron and a proton moving identically through an identical field curve in opposite directions, which is the entire principle behind a mass spectrometer separating particles by charge.
A second trap: “perpendicular to both v and B” sounds like it pins down one direction, but geometrically there are always two opposite directions perpendicular to a given plane. Nothing about perpendicularity alone picks between them, only the handedness convention (right-hand rule, consistently applied) resolves the ambiguity. Switching to a left-hand rule partway through a problem, or applying it inconsistently when moving from to the scaled force , silently flips the answer without changing a single number in the calculation.
Third, it’s tempting to assume flux or work is simply or , dropping the angle entirely. That’s only true when the relevant vectors are perfectly aligned; a surface tilted at angle to the field carries flux , not , and at that flux vanishes completely even though the field and the surface both still exist.
Apply it under exam conditions
A particle carrying charge moves with velocity through a magnetic field . Find the magnetic force on the particle, as a vector and as a magnitude.
Start with the cross product in full component form:
Multiply by the charge to get the force:
Its magnitude follows from the usual 3D length formula:
Cross-check: m/s and T, and the angle between them works out to , so , matching from the component calculation, and scaling by gives the same N found above.
Quick answers
Why does the magnetic force need a cross product instead of a dot product?+
Because the magnetic force F = qv×B is a push sideways to both the charge's velocity and the field, never along either one. A dot product only ever returns a number built from how parallel two vectors are, it can never hand you a new direction. Only the cross product produces a vector of its own, perpendicular to both inputs, which is exactly the geometry a magnetic force has.
If F is perpendicular to both v and B, how do I know which of the two perpendicular directions it's actually in?+
By computing the cross product properly in components (or using the right-hand rule) rather than just noting 'perpendicular to both.' In three dimensions there are always exactly two directions perpendicular to a given plane, pointing opposite ways, and only the right-hand-rule convention picks the correct one. Get the handedness wrong and you'll have the right magnitude but the force on the wrong side.
Does the right-hand rule change for a negative charge?+
The rule itself doesn't change, but the charge's sign still flips the final answer: F = qv×B, so for negative q the force points exactly opposite to whatever v×B itself gives. Work out v×B with the right-hand rule first, then flip it if the charge is negative, rather than trying to build the sign into the rule itself.
Why does a rotating vector trace out a sine wave?+
If a vector of fixed length sweeps around a circle at a constant angular speed ω, its vertical component at time t is simply its length times sin(ωt), by definition of sine on a unit circle. Project that single rotating arrow onto one axis and the height traces out a sine curve over time; project it onto the perpendicular axis instead and you get a cosine curve, the same motion viewed 90° later.
What does 'phase' mean physically?+
Phase is just the starting angle of that rotating vector at t = 0. Two oscillating quantities (like voltage and current in an AC circuit) can have the same frequency and amplitude yet reach their peaks at different times, because their rotating vectors start at different angles. That offset angle is the phase difference, and it's why AC power calculations need cos(phase) rather than just the peak voltage and current multiplied together.
Related concepts
Physics doesn’t stay inside chapter boundaries. Neither should you.
Moving Charges and Magnetism
Crank up a charged particle's speed and watch its orbit grow, while the time for one full lap never changes at all.
ElectrostaticsElectric Charges and Fields
Drag two charges and watch the field between them flip and reshape, arrow by arrow.
ElectromagnetismAlternating Current
A 10V source somehow produces 500V inside its own circuit, and the loop law isn't broken at all.
