ECE 106: Electricity and Magnetism¶
MATH 117 review¶
Definition
A definite integral is composed of:
- the upper limit, ,
- the lower limit, ,
- the integrand, , and
- the differential element, .
The original function cannot be recovered from the result of a definite integral unless it is known that is a constant.
N-dimensional integrals¶
Much like how represents an infinitely small line, represents an infinitely small rectangle. This means that the surface area of an object can be expressed as:
Therefore, the area of a function can be expressed as:
where is usually equal to , changing on each iteration.
Example
The area of a circle can be expressed as . This can be reduced to because of the symmetry of the equation.
Warning
Similar to parentheses, the correct integral squiggly must be paired with the correct differential element.
These rules also apply for a system in three dimensions:
Vector | Length | Area | Volume |
---|---|---|---|
Although differential elements can be blindly used inside and outside an object (e.g., area), the rules break down as the boundary of an object is approached (e.g., perimeter). Applying these rules to determine an object's perimeter will result in the incorrect deduction that .
Therefore, further approximations can be made using the Pythagorean theorem to represent the perimeter.
Polar coordinates¶
Please see MATH 115: Linear Algebra#Polar form for more information.
In polar form, the difference in each "rectangle" side length is slightly different.
Vector | Length difference |
---|---|
Therefore, the change in surface area can be approximated to be a rectangle and is equal to:
Example
The area of a circle can be expressed as .
If does not depend on , part of the integral can be pre-evaluated:
So long as the variables are independent of each other, their order does not matter. Otherwise, the dependent variable must be calculated first.
Tip
There is a shortcut for integrals of cosine and sine squared, so long as and is a multiple of :
The side length of a curve is as follows:
Example
The side length of the curve (Archimedes' spiral) from to :
Polar volume is the same as Cartesian volume:
Example
For a cylinder of radius and height :
Moment of inertia¶
The mass distribution of an object varies depending on its surface density . In objects with uniformly distributed mass, the surface density is equal to the total mass over the total area.
The formula for the moment of inertia of an object is as follows, where is the distance from the axis of rotation:
If the axis of rotation is perpendicular to the plane of the object, . If the axis is parallel, is the shortest distance to the axis. Setting an axis along the axis of rotation is easier.
Example
In a uniformly distributed disk rotating about the origin like a CD with mass and radius :
Electrostatics¶
Definition
- The polarity of a particle is whether it is positive or negative.
The law of conservation of charge states that electrons and charges cannot be created nor destroyed, such that the net charge in a closed system stays the same.
The law of charge quantisation states that charge is discrete — electrons have the lowest possible quantity.
Please see SL Physics 1#Charge for more information.
Coulomb's law states that for point charges with distance from the first to the second :
Warning
Because Coulomb's law is an experimental law, it does not quite cover all of the nuances of electrostatics. Notably:
- and must be point charges, making distributed charges inefficient to calculate, and
- the formula breaks down once charges begin to move (e.g., if a charge moves a lightyear away from another, Coulomb's law says the force changes instantly. In reality, it takes a year before the other charge observes a difference.)
Dipoles¶
An electric dipole is composed of two equal but opposite charges separated by a distance . The dipole moment is the product of the two, .
The charge experienced by a positive test charge along the dipole line can be reduced to as the ratio between the two charges decreases to the point that they are basically zero:
Maxwell's theorems¶
Compared to Coulomb's law, creates an electric field around itself — each point in space is assigned a vector that depends on the distance away from the charge. interacts with the field. According to Maxwell, as a charge moves, it emits a wave that carries information to other charges.
The electric field strength is the force per unit positive charge at a specific point :
Please see SL Physics 1#Electric potential for more information.
Electric field calculations¶
If charge is distributed over a three-dimensional object, integration similar to moment of inertia can be used. Where is an infinitely small point charge at point , is the electric field at that point, and is the vector representing the distance from any arbitrary point:
Warning
As the arbitrary point moves, both the direction and the magnitude of the distance from the desired point change (both and ).
Generally, if a decomposing the vector into Cartesian forms , , and is helpful even if it is easily calculated in polar form because of the significantly easier ability to detect symmetry in the shape. Symmetry about the axis allows deductions such as , which makes calculations easier.
In a one-dimensional charge distribution (a line), the charge density is used in a similar way as moment of inertia's surface density:
Two-dimensional charge distributions are more or less the same, but polar or Cartesian forms of the surface area work depending on the shape.
Example
A rod of uniform charge density and length has a charge density of .
- Determine the formula for the charge density
- Choose an origin and coordinate system (along the axes of the object when possible)
- Choose an arbitrary point on the charge
- Create a right-angle triangle with , the desired point, and usually the origin
- Attempt to find symmetry
- Solve
Gauss's law¶
Definition
- A closed surface is any closed three-dimensional object.
- Electric flux represents the number of electric field lines going through a surface.
At an arbitrary surface, the normal to the plane is its vector form:
The electric flux density is an alternate representation of electric field strength. In a vacuum:
Electric flux is the electric flux density multiplied by the surface area at every point of an object.
The flux from charges outside a closed surface will always be zero at the surface. A point charge in the centre of a closed space has a flux equal to its charge. Regardless of the charge distribution or shape, the total flux through a closed surface is equal to the total charge within the closed surface.
This implies is a net positive charge enclosed.
Warning
Gauss's law only applies when is from all charges in the system
Charge distributed over a line/cylinder¶
Limitations
To apply this strategy, the following conditions must hold:
- must not vary with the length of the cylinder or
- The charge must be distributed over either a cylindrical surface or the volume of the cylinder.
- In the real world, must be significantly smaller than as an approximation.
- The strategy is more accurate for points closer to the centre of the wire.
Please see Maxwell's integral equations#Gauss's law for more information.
Outside the radius of the cylinder of the Gaussian surface, the enclosed charge is, where is the length of the cylinder:
$$Q_{enc}=\pi R^2\rho_0L$
such that the field at any radius is equal to:
Inside the radius of the cylinder, the enclosed charge depends on . For a uniform charge density:
such that the field at any radius is equal to:
The direction of should always be equal to that of . Generally, where is if is inside the cylinder or otherwise, is the function for charge density based on radius, and is hell if I know:
Charge distributed over a plane¶
Warning
To apply this strategy, the following conditions must hold:
- must not vary with the lengths of the plane
- The charge must be distributed over a plane or slab
- In the real world, the thickness must be significantly smaller than the lengths as an approximation
Where is an even surface density function and is from to if the desired field is outside of the charge, or to field height if it is inside the charge:
Any two points have equal electric fields regardless of distance due to the construction of a uniform electric field.
Where is not an even surface density function, is the thickness of the slab, and is the electric field outside the slab:
Where is the electric field inside the slab at some height :
If is negative, it must point opposite the original direction ().
Generally:
- Determine outside the slab.
- Set one outside surface and one inside surface as a pillbox and apply rules.
Electrostatic potential¶
At a point , the electrostatic potential or voltage is the work done per unit positive test charge from infinity to bring it to point by an external agent.
Because the desired force acts opposite to the force from the electric field, as long as is known at each point:
The work done only depends on initial and final positions — it is conservative, thus implying Kirchoff's voltage law.
Where is the path of the test charge from infinity to the point, and is the direct path from the origin through the point to the charge, because :
Therefore, the potential due to a point charge is equal to (the latter is true only if distance from charge is always constant, regardless of distribution):
Positive charges naturally move to lower potentials ( decreases) while negative charges do the opposite. Potential energy always decreases.
In order to calculate the voltage for charge distributions:
- If is easy to find via Gauss law:
- If the charge is asymmetric:
The electric field always points in the direction of lower potential, and is equal to the negative gradient of potential.
If is constant:
The superposition principle allows potential due to different charges to be calculated separately and summed together to achieve the same result.
Conductors¶
An ideal conductor has electrons loosely bound to atoms such that an electric field causes them to freely move by . However, this assumes that there are infinite electrons in the conductor, and that the electrons will move with zero resistance to the surface of the conductor but not leave it.
A conductor placed in an external electric field will cause electrons to hop from atom to atom to reach the surface, charging one surface negatively and the other positively. The induced electric field from this imbalance opposes the external field force, slowing down electron movement until equilibrium is reached.
At equilibrium, every point in the conductor is equipotential. Gauss's law implies that there is no volume charge inside a conductor.
At its surface, tangent to the surface must be zero. Normal to the surface:
- is negative if field lines enter the conductor.
- is positive if field lines exit the conductor.
Conductor cavities¶
A cavity surface must have zero surface charge. This creates a Faraday cage — outside fields cannot affect the cavity, but fields from the cavity can affect the outside world.
If there is a fixed/non-moving charge in the cavity:
- inside the conductor, so the boundary surface charge must be .
- Electrons are taken from the surface, so the surface charge outside the conductor must be , propagating the effect of the charge to the outside world.
Ground¶
A ground is a reservoir or sink of charges that never changes, regardless of the quantity added or removed from it. At the connection point, is always guaranteed.
Grounding a conductor means that it takes charges from the ground to balance an internal charge, neutralising it.
A charge released into a conductor (e.g., battery into wire) will always go to the outside surface, regardless of the point of insertion. Two charged objects connected by a thin conductor will redistribute their charge such that:
- their potentials are equal
- conservation of charge is followed.
This implies that a larger object has more charge, but a smaller object has a denser charge and thus stronger electric field.
Example
For two spheres, as :
A non-uniform object, such as a cube, will have larger charge density / stronger electric field at sharper points in its shape. Symmetrical surfaces always have uniform charge density.
Warning
An off-centre charge in a cavity will require a non-uniform induced charge to cancel out the internal field, but the external surface charge will be uniform (or non-uniform if the surface is odd).
Nutshell¶
Inside a conductor:
Inside a cavity, if there exists an external field:
The inner surface charge distribution matches that of the inner charge, but the outer surface charge distribution is dependent only on the shape of the conductor.
On conductor surfaces, the only is normal to the surface and dependents on the shape of the surface.
Grounding a conductor neutralises any free charges.
In slabs, as , assume is uniformly distributed.
To solve systems:
- Assigning charge density is easier with sheets
- Assigning charges is easier with cylinders/spheres
Dielectrics¶
Definition
- An insulator has electrons tightly bound to atoms.
Polarisation¶
Polarisation is the act of inducing a dipole to a lesser extent than conductors. The induced field cannot reduce inside the insulator to zero, but it will reduce its effects. The polarisation vector is an average of the effects of all induced fields on a certain point inside a volume.
where:
- is the volume of the insulator
- is the dipole moment at a point
- is the total number of atoms in the volume
Polarisation is proportional to electric field and the electric susceptibility of a material to external fields.
The relative permittivity of a material is the ratio of decreasing inside a medium relative to free space.
The new flux density formula includes polarised charges, so now includes only free charges (i.e., not polarised charges).
In uniform charge distributions, the surface charge density is related to its polarisation. Where is the unit normal of the surface:
Boundary conditions¶
Regardless of permittivity, the tangential to the boundary between two materials must be equal.
Capacitors¶
Definition
- A capacitor is a device that uses the capacitance of materials to store energy in electric fields. It is usually composed of two conductors separated by a dielectric.
Capacitance is a measurement of the charge that can be stored per unit difference in potential.
To determine :
- Place a positive and a negative charge on conductors
- Determine charge distribution
- Determine between the conductors
- Find a path from the negative to the positive conductor and determine voltage
Example
For two plates separated by distance , with charges of and , and a dielectric in between with permittivity :
- Clearly as sheets must have uniform distribution. is on the negative plate.
- From Gauss' law, creating a Gaussian surface outside the capacitor to between the plates gives .
- gives
- Sheets have uniform fields, thus
- Finally,
Warning
If three dielectrics with different permittivities are allowed to touch each other, they will create fringe fields at their intersection that destroy the boundary condition.
Capacitors and energy¶
The stored energy inside capacitors is the same as any other energy.
Much like VIR, it's usually easier to work with the form of the equation that has squared constants.
Adding dielectrics increases capacitance but decrease stored energy.
Magnetism¶
All magnetic field lines are closed, i.e., they all return to the same magnetic object, much like a dipole. All lines must be perpendicular to the surface:
Per Biot-Savart's law, magnets are complicated.
where:
- is the magnetic permeability of free space
- is the unit vector pointing from an arbitrary point of a wire to the desired point
- is current
- follows the direction of current
The final direction can be determined in advance with the right-hand rule. Therefore, magnitude can be reduced to:
Calculations¶
- Define coordinate system
- Go to some arbitrary point on a coordinate axis such that
- Determine magnitude of the cross product
- Determine final magnetic field direction (should be constant)
- Rewrite equation in terms of one variable (usually )
- Integrate
Selenoids¶
It's easiest to place the origin at the target point.
A selenoid with turns around a coil of length has density , and has parallel electric fields inside.
The effective current of a selenoid for magnetic purposes is the sum of all currents.
where:
- is the axis in the direction of current
- is current
This can be substituted directly into Biot-Savart's law, although definite integration should be done in the direction of the axis (from the desired point to the farthest point of the selenoid).
Velocity and current¶
Biot-Savart's law can be applied to moving charges:
Ampere's law¶
Definition
- Drift velocity is the average speed of electrons through a material.
The current density is the amount of charge per unit time that flows through a unit area of a cross section.
where:
- is drift velocity
- is the charge per unit volume
- is the total charge
Ohmic resistors have current density proportional to electric field by a material's conductivity .
Resistivity is related to conductivity:
Integrating over a cross section returns current:
Ampere's law asserts that magnetic flux due to all currents is equal to current enclosed inside a closed boundary/loop.
where:
- is the line along the loop/boundary in an arbitrary direction
- is the sum of all enclosed currents
(along the loop) and are related in direction with each other per the right hand rule.
Warning
Ampere's law is only true in when dealing with DC.
For each enclosed , if its direction is:
- the same as , it is positive in the sum term
-
opposite , it is negative in the sum term
-
Use to find or vice versa
- Determine
- Solve
The angle of a cut to a surface does not affect any equations and can be treated identically. Any imaginary closed loop such that is constant over the loop and parallel to the loop is usable with Ampere's law as can be reduced to a constant scalar.
The geometries that work include:
- Infinite cylinders with that may vary with but not
- Infinite sheets/slabs where may vary with but not
- Infinite selenoids
-
Toroids (a selenoid bent into a donut shape)
-
Create a cross-section perpendicular to the current and determine if symmetry of the loop can meet conditions for geometry
- Choose in the direction of (counterclockwise)
- Determine (out of the page) and apply Ampere's law
Warning
A spinning cylinder rotates faster along its outer ring, forcing an integral setup.
Faraday's law¶
Faraday's law states relates magnetic flux similarly to electric flux. Where is the open surface bounded by the conductor:
A flux that changes with time results in an induced voltage across the terminals of the conductor. Per Faraday's law of electromagnetic induction, magnetic energy is convertible to electric energy.
As the electric field is always perpendicular to a magnetic field, this indicates that it will curl around a straight magnetic field.
Relating and with the right-hand rule accounts for Lenz's law, which creates a to create a to oppose the change in that created the current.
If there is a conducting loop in a time-varying magnetic field, a is formed such that the current is in the direction of the induced field:
Time-varying magnetic fields are formed if the field or charge is moving or if bounds change.
Inductance¶
Kirchoff's voltage law is a simplification of Faraday's law, valid when there is no fluctuating magnetic field within the closed loop, so it's used with low frequency waves with less time variation.
The inductance is the flux travelling through a medium over its current.
If there are loops in a selenoid, where is the total flux/flux linkage, is the current in one loop, and is the current of all loops:
The energy density per unit volume is .
The total work done to charge current from to is related to energy density.
Self-inductance¶
A magnetic flux that passes through the current that created it will induce voltage if changes.
Mutual inductance is wireless charging as changing current in one coil produces a changing magnetic flux in another, creating a voltage .
The mutual inductance is the rate of change of magnetic flux proportional to the rate of change of current. It is equal regardless of direction.