Sub topic 2
The Cross Product and the Right-Hand Rule
Assume you know vector components, basic trigonometry, and that a magnetic field can exert a force on a moving charge. This chapter develops the vector operation that determines the force direction.
The vector cross product
The cross product combines two vectors to produce a third vector perpendicular to both. For vectors \(\mathbf{A}\) and \(\mathbf{B}\),
\mathbf{A} \times \mathbf{B}has magnitude
|\mathbf{A} \times \mathbf{B}| = AB\sin\theta,where \(A\) and \(B\) are the vector magnitudes and \(\theta\) is the smaller angle between them.
The cross product is zero when the vectors are parallel because \(\sin 0^\circ=0\). It is largest when the vectors are perpendicular because \(\sin 90^\circ=1\).
The order matters:
\mathbf{A}\times\mathbf{B}=-(\mathbf{B}\times\mathbf{A}).This property is called anti-commutativity. Reversing the order reverses the direction.
| Angle between vectors | Cross-product magnitude | Direction |
|---|---|---|
| \(0^\circ\) | \(0\) | None |
| \(90^\circ\) | \(AB\) | Perpendicular to both |
| \(180^\circ\) | \(0\) | None |
Finding the direction with the right-hand rule
Use your right hand in this order:
- Point your fingers in the direction of \(\mathbf{A}\).
- Curl them toward \(\mathbf{B}\) through the smaller angle.
- Your thumb points in the direction of \(\mathbf{A}\times\mathbf{B}\).
For magnetic force,
\mathbf{F}=q\mathbf{v}\times\mathbf{B}.For a positive charge, use the right-hand rule directly with velocity \(\mathbf{v}\) first and magnetic field \(\mathbf{B}\) second. For a negative charge, reverse the resulting direction.
For example, let a positive charge move along \(+x\) while the field points along \(+z\). The force points along \(-y\):
\hat{\mathbf{x}}\times\hat{\mathbf{z}}=-\hat{\mathbf{y}}.The unit-vector relationships are
\hat{\mathbf{x}}\times\hat{\mathbf{y}}=\hat{\mathbf{z}},\quad
\hat{\mathbf{y}}\times\hat{\mathbf{z}}=\hat{\mathbf{x}},\quad
\hat{\mathbf{z}}\times\hat{\mathbf{x}}=\hat{\mathbf{y}}.Reversing any pair changes the sign.
import numpy as np
q = 1.602176634e-19
v = np.array([1.0e6, 0.0, 0.0]) # +x, m/s
B = np.array([0.0, 0.0, 0.5]) # +z, tesla
F = q * np.cross(v, B)
print(F) # [0.0, -8.01088317e-14, 0.0] NThe component form is useful for calculation:
\mathbf{A}\times\mathbf{B}
=
\begin{vmatrix}
\hat{\mathbf{x}} & \hat{\mathbf{y}} & \hat{\mathbf{z}}\\
A_x & A_y & A_z\\
B_x & B_y & B_z
\end{vmatrix}.Expanding this determinant gives
\mathbf{A}\times\mathbf{B}
=
(A_yB_z-A_zB_y)\hat{\mathbf{x}}
-(A_xB_z-A_zB_x)\hat{\mathbf{y}}
+(A_xB_y-A_yB_x)\hat{\mathbf{z}}.Exercise
A positive charge moves along \(+y\) in a magnetic field along \(+x\). What is the direction of the magnetic force?
Show answer
Use \(\hat{\mathbf{y}}\times\hat{\mathbf{x}}=-\hat{\mathbf{z}}\). The force points along \(-z\).