Magnetism is generated by moving charged particles: it can be either single moving particles, or electric current moving through a conductor. It can also be generated by permanent magnets, or the Earth.
Magnetism affects other moving charged particles. Like an electric field, it can be represented with a vector field, called a magnetic field (big surprise!). The magnetic field has units called tesla, and magnetic field lines have no ends: however, unlike electric field lines, which run to infinity, magnetic field lines always run in loops.
A moving point charge q moving with velocity v has a magnetic field given by the following equation:
๐ต = (๐0/4๐) * (๐๐ฃ * ๐ฬ)/(๐2)
B is the magnetic field in units of tesla (T), q is the charge, v is the velocity of the charge, r is the distance from the moving charge, ๐ฬis the radial outward unit vector from the charge (for direction), and ๐0 is the permeability of free space, which is a measure of how well a space can become magnetized.
๐0 is about 4๐ * 10-7๐๐/๐ด.
The magnetic field generated by an electric current is really the sum of all the contributions of each charge moving along through the conductor. The total magnetic field in the wire is the integral of the contributions of the current in each infinitesimally small section of the conductor. We use the Biot-Savart Law for this.
๐๐ต = (๐0/4๐) * (๐ผ๐๐ฟ * ๐ฬ)/(๐2)
Given an infinitely long and straight wire, the Biot-Savart law simplifies greatly. Current is given by:
๐ต = ๐0(๐ผ ร ๐ฬ)/2๐๐ ๐๐ ๐ต = ๐0๐ผ/2๐๐
The equation on the right is the scalar form, for when you donโt want or need to deal with vectors and directions.
The magnetic field inside of a solenoid is uniform, and the strength is given by:
๐ต = ๐๐๐ผ/๐ฟ
Here, L is the length of the solenoid, while N is the amount of coils in the solenoid. The direction of B is determined using the right hand rule.
Gaussโs Law is used to calculate electric fields and fluxes, and Ampereโs Law does the same for magnetic fields for symmetric configurations.
Ampereโs Law using a closed curve C around a current, called an Amperian Loop. We do a closed line integral instead of a closed surface integral on the curve.
โฎCย ๐ต * ๐๐ = ๐0๐ผc
d๐ is an infinitesimal length along the closed curve. Ic is the net current that penetrates the area that is bound by C.
Remember that infinitely long wire from before? Well, we know that it must generate a magnetic field that only depends on radial distance, due to symmetry. We can draw an Amperian loop that is just a circle of radius r around the wire, and do some calculations.
โฎcย ๐ต * ๐๐ = ๐0๐ผc โถ ๐ต(2๐๐) = ๐0๐ผ โถ ๐ต = ๐0๐ผ/2๐๐
Magnetic fields are generated by moving charges. A moving charge will also create an electric field. So, if you want to figure out the influence on another moving charge affected by both E and B, you add their influences together, which gives the Lorentz force law.
๐น = ๐(๐ธ + ๐ฃ * ๐ต)
B generated by a moving charge or conductor carrying a current will exert a force on another conductor that carries a current.
๐นM = ๐ผ๐ * ๐ต
Here, I is treated as a vector. ๐ is the length of the conductor, in meters.
When we have 2 parallel current-carrying wires of length L, currents I1 and I2, and distance between them of r, the force of the magnetic field B from I1 on I2 is:
๐น = ๐ผ2๐ฟ๐ต = ๐0๐ผ1๐ผ2๐ฟ/2๐๐ โถ ๐น/๐ฟ = ๐0๐ผ1๐ผ2/2๐๐
I1 and I2 are pulled together because of Newtonโs Third Law of motion.
When a charged particle enters a magnetic field at a right angle, the magnetic force FM is perpendicular to both velocity v and the magnetic field B, because itโs a cross product. This will result in circular motion.
The centripetal force FC is provided by the magnetic force. Letโs equate the 2 expressions.
๐๐ฃ2/๐ = ๐๐ฃ๐ต
We can now rearrange this equation to solve for the radius of motion of a charge with known mass, or work out the mass of the charge using its radius.
๐ = ๐๐ฃ/๐๐ต ๐๐๐ ๐ = ๐๐๐ต/v