Exercise Inductance

Exercise here can be loaded by html files

current || inductance

Exercise - Definition of inductance

The values of two of the variables ($\Phi$, $L$, $I$) below has been given to you. Use that information to calculate the remaining unknown.

if (int_count_times_randomized == 0){ return 3; } else { return random_min_max_precision(1, 10, 0); //defined in setup_exercise_all.js. }
if (int_count_times_randomized == 0){ return 10; } else { return random_min_max_precision(1, 10, 0); //defined in setup_exercise_all.js. }
if (int_count_times_randomized == 0){ return 0; } else { return random_min_max_precision(0, 2, 0); //defined in setup_exercise_all.js. }
Hint:

Use $L = \frac{\Phi}{I}$.

Solution

Rearrange $L = \frac{\Phi}{I}$ to solve for what you need.

When $L$ and $I$ are given:
$\Phi = LI$.

When $\Phi$ and $I$ are given, we have:
$L = \frac{\Phi}{I}$.

When $\Phi$ and $L$ are given, we have:
$I = \frac{\Phi}{L}$.


$L = $
return (~~Phi / ~~I).toFixed(2);
10%
Unit:
return "H";
not_number

$\Phi=$
return ( ~~Phi).toFixed(2);
0.1
Unit:
return "Wb";
not_number

$I=$
return (~~I).toFixed(2);
0.1
Unit:
return "A";
not_number
current || inductance

Exercise - Solenoid inductor

if (int_count_times_randomized == 0){ return 3000; } else { return random_min_max_precision(1000, 9000, -3); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 20; } else { return random_min_max_precision(10, 30, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 5; } else { return random_min_max_precision(2, 10, 1); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 4; } else { return random_min_max_precision(1, 10, 0); //defined in setup_exercise_all.js }
return (true);
A solenoid has the following specifications: Find:
  1. The turns density (i.e. turns per unit length, $n$).
  2. The inductance.
  3. The magnetic field inside.
  4. The magnetic flux of one turn $\Phi_1$.
  5. The magnetic flux of all $N$ turns $\Phi_N$.
  6. The ratio $\frac{\Phi_N}{I}$.
Very big or very small numbers can be entered as "1.234e-6" (for $ 1.234\times 10^{-6}$).
$\mu_0 \approx 4\pi \times 10^{-7} H/m$
Hint:
  • $n=\frac{N}{l}$.
  • $L = \mu_0 N^2 A / l = \mu_0 n^2 A l$.
  • Convert to SI units below! Note that $1mm^2 = (0.001m)^2 = 10^{-6}m^2$.
  • $B = \mu_0 n I$.
  • $\Phi_1 = BA$.
  • $\Phi_N = N \Phi_1$.
  • $\frac{\Phi_N}{I}$ is $L$ by definition.
namespace_inductance.mu = 4*Math.PI*1e-7; namespace_inductance.n = ~N~ / (~l~ * 1e-3); namespace_inductance.A = Math.PI* ~r~ * ~r~ * 1e-6; namespace_inductance.L = namespace_inductance.mu * ~N~ * ~N~ * namespace_inductance.A / (~l~ * 1e-3); namespace_inductance.field = namespace_inductance.mu * namespace_inductance.n * ~i~; namespace_inductance.flux_one_turn = namespace_inductance.field * namespace_inductance.A; namespace_inductance.flux_total = ~N~ * namespace_inductance.flux_one_turn;

Solution

Turns density: $$ n = \frac{N}{l} = \frac{[[return ~N~]]}{[[return ~l~]] \times 10^{-3}m} = [[return sf_latex(namespace_inductance.n)]] m^{-1} $$

Area of one turn: $$ A = \pi r^2 = \pi ([[return ~r~]] \times 10^{-3})^2 = [[return sf_latex(namespace_inductance.A)]] m^2 $$

Inductance: $$ \begin{eqnarray} L &=& \mu_0 N^2 A / l \\ &=& (4\pi \times 10^{-7} H/m) ([[return ~N~]]^2) ([[return (namespace_inductance.A * 1e6).toFixed(1)]] \times 10^{-6} m^2) / ([[return ~l~]] \times 10^{-3} m) \\ &=& [[return sf_latex(namespace_inductance.L, 5)]] H \\ &=& [[return sf_latex(namespace_inductance.L * 1e3)]] mH \\ \end{eqnarray} $$ You can also use the equation $L = \mu_0 n^2 A l$ to get the same answer.

Magnetic field: $$ \begin{eqnarray} B &=& \mu_0 n I \\ &=& (4\pi \times 10^{-7} H/m) ([[return sf_latex(namespace_inductance.n)]] m^{-1}) (~i~ A) \\ &=& [[return sf_latex(namespace_inductance.field)]] T \end{eqnarray} $$

Flux of one turn: $$ \begin{eqnarray} \Phi_1 &=& BA \\ &=& ([[return sf_latex(namespace_inductance.field)]] T) ([[return sf_latex(namespace_inductance.A)]] m^2) \\ &=& [[return sf_latex(namespace_inductance.flux_one_turn)]] Wb \end{eqnarray} $$

Flux of $N$ turn: $$ \begin{eqnarray} \Phi_N &=& N \Phi_1 \\ &=& (~N~) ([[return sf_latex(namespace_inductance.flux_one_turn)]] Wb) \\ &=& [[return sf_latex(namespace_inductance.flux_total)]] Wb \end{eqnarray} $$

The ratio $\frac{\Phi_N}{I}$ should just be the inductance (by definition): $$ \begin{eqnarray} \frac{\Phi_N}{I} &=& \frac{[[return sf_latex(namespace_inductance.flux_total)]] Wb}{~i~ A} \\ &=& [[return sf_latex(namespace_inductance.L)]] H = L \end{eqnarray} $$

$n =$
return (namespace_inductance.n).toPrecision(3)
5%

$L =$
return (namespace_inductance.L).toPrecision(3)
5%

$B =$
return sf_math(namespace_inductance.field)
5%

$\Phi_1 =$
return sf_math(namespace_inductance.flux_one_turn)
5%

$\Phi_N =$
return sf_math(namespace_inductance.flux_total)
5%

$\frac{\Phi_N}{I} =$
return sf_math(namespace_inductance.L)
5%
Select unit for turns density:
$H$
$H/m$
$m^{-1}$
$turns$
2
Select unit for inductance:
$H$
$C/m$
$F$
$\Omega$
0
Select unit for magnetic field:
$V/m$
$T$
$A$
$Wb$
1
Select unit for magnetic flux:
$V/m$
$T$
$A$
$Wb$
3
current || inductance || energy

Exercise - Energy of an inductor

The values of two of the variables ($L$, $\Phi_B$, $I$) below has been given to you. Use that information to calculate the remaining unknowns, including the energy of the inductor $U_B$.

if (int_count_times_randomized == 0){ return 3; } else { return random_min_max_precision(1, 10, 0); //defined in setup_exercise_all.js. }
if (int_count_times_randomized == 0){ return 10; } else { return random_min_max_precision(1, 10, 0); //defined in setup_exercise_all.js. }
if (int_count_times_randomized == 0){ return 0; } else { return random_min_max_precision(0, 2, 0); //defined in setup_exercise_all.js. }
Hint:
  1. Use $L = \frac{\Phi_B}{I}$ to solve for the unknown.
  2. Energy can be found using one of the equations: $U_B = \frac{1}{2}L I^2 = \frac{1}{2}\Phi_B I = \frac{\Phi_B^2}{2L}$.

Solution

From $L = \frac{\Phi_B}{I}$ we get the values for $L$, $\Phi_B$, $I$.

Any of the equations from $U_B = \frac{1}{2}L I^2 = \frac{1}{2}\Phi_B I = \frac{\Phi_B^2}{2L}$ will give the right answer.

For example: $$ U_B = \frac{1}{2}\Phi_B I = \frac{1}{2}([[return ~~Phi]]) ([[return ~~I]]) = [[return (0.5* ~~Phi * ~~I).toFixed(2)]] J. $$


$L = $
return (~~Phi / ~~I).toFixed(2);
10%
Unit:
return "H";
not_number

$\Phi_B=$
return ( ~~Phi).toFixed(2);
0.1
Unit:
return "Wb";
not_number

$I=$
return (~~I).toFixed(2);
0.1
Unit:
return "A";
not_number

$U_B=$
return (0.5* ~~Phi * ~~I).toFixed(2);
10%
Unit:
return "J";
not_number
current || inductance

Exercise - Energy density of an inductor

if (int_count_times_randomized == 0){ return 3000; } else { return random_min_max_precision(1000, 9000, -3); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 20; } else { return random_min_max_precision(10, 30, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 5; } else { return random_min_max_precision(2, 10, 1); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 4; } else { return random_min_max_precision(1, 10, 0); //defined in setup_exercise_all.js }
return (true);
A solenoid has the following specifications: Find:
  1. The turns density (i.e. turns per unit length, $n$).
  2. The inductance.
  3. The magnetic field inside.
  4. The total energy.
  5. The energy density.
Very big or very small numbers can be entered as "1.234e-6" (for $ 1.234\times 10^{-6}$).
$\mu_0 \approx 4\pi \times 10^{-7} H/m$
Hint:
  • $n=\frac{N}{l}$.
  • $L = \mu_0 N^2 A / l = \mu_0 n^2 A l$.
  • $B = \mu_0 n I$.
  • $U_B = \frac{1}{2} LI^2$.
  • $u_B = \frac{1}{2 \mu_0} B^2$.
namespace_inductance.mu = 4*Math.PI*1e-7; namespace_inductance.n = ~N~ / (~l~ * 1e-3); namespace_inductance.A = Math.PI* ~r~ * ~r~ * 1e-6; namespace_inductance.L = namespace_inductance.mu * ~N~ * ~N~ * namespace_inductance.A / (~l~ * 1e-3); namespace_inductance.field = namespace_inductance.mu * namespace_inductance.n * ~i~; namespace_inductance.energy = 0.5 * namespace_inductance.L * ~i~ * ~i~; namespace_inductance.energy_density = 0.5/(namespace_inductance.mu) * namespace_inductance.field * namespace_inductance.field;

Solution

Turns density: $$ n = \frac{N}{l} = \frac{[[return ~N~]]}{[[return ~l~]] \times 10^{-3}m} = [[return sf_latex(namespace_inductance.n)]] m^{-1} $$

Area of one turn: $$ A = \pi r^2 = \pi ([[return ~r~]] \times 10^{-3})^2 = [[return sf_latex(namespace_inductance.A)]] m^2 $$

Inductance: $$ \begin{eqnarray} L &=& \mu_0 N^2 A / l \\ &=& (4\pi \times 10^{-7} H/m) ([[return ~N~]]^2) ([[return (namespace_inductance.A * 1e6).toFixed(1)]] \times 10^{-6} m^2) / ([[return ~l~]] \times 10^{-3} m) \\ &=& [[return sf_latex(namespace_inductance.L, 5)]] H \\ &=& [[return sf_latex(namespace_inductance.L * 1e3)]] mH \\ \end{eqnarray} $$ You can also use the equation $L = \mu_0 n^2 A l$ to get the same answer.

Magnetic field: $$ \begin{eqnarray} B &=& \mu_0 n I \\ &=& (4\pi \times 10^{-7} H/m) ([[return sf_latex(namespace_inductance.n)]] m^{-1}) (~i~ A) \\ &=& [[return sf_latex(namespace_inductance.field)]] T \end{eqnarray} $$

Energy: $$ \begin{eqnarray} U_B &=& \frac{1}{2} L I^2 \\ &=& \frac{1}{2} ([[return sf_latex(namespace_inductance.L)]] H) (~i~ A)^2 \\ &=& [[return sf_latex(namespace_inductance.energy)]] J \end{eqnarray} $$

Energy density: $$ \begin{eqnarray} u_B &=& \frac{1}{2 \mu_0} B^2 \\ &=& \frac{1}{2 (4\pi \times 10^{-7} H/m)} ([[return sf_latex(namespace_inductance.field)]] T)^2 \\ &=& [[return sf_latex(namespace_inductance.energy_density)]] J/m^3 \end{eqnarray} $$ Alternatively, one could calculate the volume $\pi r^2 l$ and use the definition $u_B = \frac{U_B}{volume}$.

$n =$
return (namespace_inductance.n).toPrecision(3)
5%

$L =$
return (namespace_inductance.L).toPrecision(3)
5%

$B =$
return sf_math(namespace_inductance.field)
5%

$U_B =$
return sf_math(namespace_inductance.energy)
5%

$u_B =$
return sf_math(namespace_inductance.energy_density)
5%
Select unit for turns density:
$H$
$H/m$
$m^{-1}$
$turns$
2
Select unit for inductance:
$H$
$C/m$
$F$
$\Omega$
0
Select unit for magnetic field:
$V/m$
$T$
$A$
$Wb$
1
Select unit for energy:
$J/m$
$J$
$J/m^3$
$N$
1
Select unit for energy density:
$J/m$
$J$
$J/m^3$
$N$
2
current || inductance

Exercise - Self-induced emf of an inductor

if (int_count_times_randomized == 0){ return 10; } else { return random_min_max_precision(1, 20, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 1; } else { return random_min_max_precision(0, 10, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 9; } else { return random_min_max_precision(0, 10, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 2; } else { return random_min_max_precision(1, 50, 0); //defined in setup_exercise_all.js }
return (true);
An inductor with a changing current.
The figure shows a current passing through an inductor with inductance $~inductance~ mH$. Initially the current is $I_1 = ~i_1~ A$. After $~t~ ms$ ("milliseconds"), the current is $I_2 = ~i_2~ A$. Find the self-induced emf (include the sign) and its direction.
Hint: $$ \mathcal{E}_L = \frac{dI}{dt} = \frac{\Delta I}{\Delta t} $$
namespace_inductance.i_delta = ~i_2~ - ~i_1~; namespace_inductance.di_by_dt = namespace_inductance.i_delta / (~t~ * 1e-3); namespace_inductance.emf = -1 * ~inductance~ * 1e-3 * namespace_inductance.di_by_dt;

Solution

The "+" side has the higher potential.
$\mathcal{E}_L= $
return sf_math(namespace_inductance.emf)
5%

Direction of emf =
if (~i_1~ == ~i_2~){ return "zero"; } else if (namespace_inductance.emf > 0){ return "down"; } else { return "up"; }
not_number
(type "up", "down", or "zero" for no current)
Select unit for $\mathcal{E}_L$:
$V$
$V/m$
$A/s$
$H$
0
current || inductance || circuit

Exercise - "Charging" an inductor

if (int_count_times_randomized == 0){ return 12; } else { return random_min_max_precision(3, 20, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 4; } else { return random_min_max_precision(3, 5, 1); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 24; } else { return random_min_max_precision(10, 30, 0); //defined in setup_exercise_all.js }
return 1;
return (true);
"Charging" in an $RL$ circuit.
A inductor with $L = ~l~ H$ is "charged" by a battery with emf $\mathcal{E} = ~v_0~ V$, through a resistor $R = ~r~ \Omega$. Calculate the following:
Hint:
  • $\tau = \frac{L}{R}$.
  • $I_{max} = \frac{\mathcal{E}}{R}$.
  • $I(t) = \frac{\mathcal{E}}{R} (1 - e^{-t/\tau}) = I_{max} (1 - e^{-t/\tau})$.
  • Set $I(t) = \frac{1}{2} I_{max}$ and solve for the time to get $T_{1/2}$.
  • $\mathcal{E}_L = - \mathcal{E} e^{-t/\tau}$.
namespace_inductance.tau = ~l~ / ~r~; namespace_inductance.I_max = ~v_0~/ ~r~; namespace_inductance.I_t = namespace_inductance.I_max * (1- Math.exp(-1* ~t~/namespace_inductance.tau));
$I$ as a function of time.

Solution

Time constant
$$ \tau = \frac{L}{R} = \frac{[[return ~l~]] H}{[[return (~r~).toFixed(1)]] \Omega} = [[return (namespace_inductance.tau).toFixed(2)]] s $$
Maximum charge
$$ I_{max} = \frac{\mathcal{E}}{R} = \frac{ ~v_0~ V}{[[return (~r~).toFixed(1)]] \Omega} = [[return (namespace_inductance.I_max).toFixed(2)]] A $$
Current at $t = ~t~ s$
$$ \begin{eqnarray} I(t) &=& I_{max} (1 - e^{-t/\tau}) \\ &=& ([[return (namespace_inductance.I_max).toFixed(2)]] A) (1 - e^{- ~t~/[[return (namespace_inductance.tau).toFixed(2)]]}) \\ &=& [[return sf_latex(namespace_inductance.I_t)]] A \end{eqnarray} $$
$T_{1/2}$ and $T_{3/4}$
$$ \begin{eqnarray} I(t) &=& I_{max} (1 - e^{-t/\tau}) \\ \Rightarrow 1 - e^{-t/\tau} &=& \frac{I(t)}{I_{max}} \\ \Rightarrow e^{-t/\tau} &=& 1 - \frac{I(t)}{I_{max}} \\ \Rightarrow -t/\tau &=& \ln(1 - \frac{I(t)}{I_{max}}) \\ \Rightarrow t &=& - \tau \ln(1 - \frac{I(t)}{I_{max}}) \end{eqnarray} $$ For $\frac{I(t)}{I_{max}} = \frac{1}{2}$: $$ \begin{eqnarray} T_{1/2} &=& t = - \tau \ln(1 - \frac{1}{2}) \\ &=& -\tau \ln \frac{1}{2} \\ &=& \tau \ln 2 \\ &=& ([[return (namespace_inductance.tau).toFixed(2)]] s)(0.693) \\ &=& [[return (namespace_inductance.tau * 0.693).toFixed(2)]] s \end{eqnarray} $$ For $\frac{I(t)}{I_{max}} = \frac{3}{4}$: $$ \begin{eqnarray} T_{3/4} &=& t = - \tau \ln(1 - \frac{3}{4}) \\ &=& -\tau \ln \frac{1}{4} \\ &=& \tau \ln 4 \\ &=& ([[return (namespace_inductance.tau).toFixed(2)]] s)(1.386) \\ &=& [[return (namespace_inductance.tau * 1.386).toFixed(2)]] s \end{eqnarray} $$
Emf at $t=0$

$\mathcal{E}_L$ must be exactly opposite to the battery emf, so: $$ \mathcal{E}_L = -\mathcal{E} = - ~v_0~ V $$

Emf at $t=T_{1/2}$

We showed before $e^{-t/\tau} = 1 - \frac{I(t)}{I_{max}}$, so when $I(t) = I_{max}/2$, we have $e^{-T_{1/2}/\tau} = 1/2$. Therefore the emf is: $$ \begin{eqnarray} \mathcal{E}_L &=& - \mathcal{E} e^{-t/\tau} \\ &=& - \mathcal{E} e^{-T_{1/2}/\tau} \\ &=& - \mathcal{E}/2 \\ &=& - (~v_0~ V)/2 \\ &=& [[return sf_latex(- ~v_0~ /2)]] V \end{eqnarray} $$

$\tau = $
return (namespace_inductance.tau).toFixed(2)
5%
$s$
$I_{max} =$
return (namespace_inductance.I_max).toFixed(2)
5%
$A$
$I(1 s) = $
return (namespace_inductance.I_t).toFixed(2)
5%
$A$
$T_{1/2} = $
return (namespace_inductance.tau * 0.693).toFixed(2)
0.2
$s$
$T_{3/4} = $
return (namespace_inductance.tau * 1.386).toFixed(2);
5%
$s$
At $t=0s$: $\mathcal{E}_L = $
return (-1 * ~v_0~);
5%
$V$
At $T_{1/2}$: $\mathcal{E}_L = $
return (-0.5 * ~v_0~);
5%
$V$
current || inductance || circuit

Exercise - "Discharging" an inductor

"Discharging" in an $RL$ circuit.
A inductor with $L = ~~L H$ carrying an initial current $I_0 = ~~I0 A$ "discharges" through a resistor $R = ~~R \Omega$. Calculate the following:
if (int_count_times_randomized == 0){ return 12; } else { return random_min_max_precision(5, 20, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 4; } else { return random_min_max_precision(1, 15, 0); //defined in setup_exercise_all.js }
return 6;
return 1;
Hint 1:
  • $\tau = \frac{L}{R}$.
  • $I(t) = I_0 e^{-t/\tau}$.
  • Set $I(t) = \frac{1}{2} I_0$ and solve for the time to get $T_{1/2}$.
  • Set $I(t) = \frac{1}{4} I_0$ and solve for the time to get $T_{1/4}$.

Solution

$I$ as a function of time.
[[ var nsp = namespace_inductance; nsp.tau = ~~L / ~~R; nsp.I_t = ~~I0 * Math.exp(-1* ~~t/nsp.tau); return ""; ]] Time constant: $$ \tau = \frac{L}{R} = \frac{[[return ~~L]] H}{[[return (~~R).toFixed(1)]] \Omega} = [[return (namespace_inductance.tau).toFixed(2)]] s $$ At time $t = ~~t s$: $$ I(t) = I_0 e^{-t/\tau} = ([[return ~~I0]] A) e^{- ~~t/[[return (namespace_inductance.tau).toFixed(2)]]} = [[return (namespace_inductance.I_t).toFixed(2)]] A $$ To find the time: $$ I(t) = I_0 e^{-t/\tau} \Rightarrow e^{-t/\tau} = \frac{I(t)}{I_0} $$ $$ \Rightarrow -t/\tau = \ln\frac{I(t)}{I_0} \Rightarrow t = - \tau \ln \frac{I(t)}{I_0} $$ For $\frac{I(t)}{I_0} = \frac{1}{2}$: $$ T_{1/2} = t = -\tau \ln \frac{1}{2} = \tau \ln 2 = ([[return (namespace_inductance.tau).toFixed(2)]] s)(0.693) = [[return (namespace_inductance.tau * 0.693).toFixed(2)]] s $$ For $\frac{I(t)}{I_0} = \frac{1}{4}$: $$ T_{3/4} = t = -\tau \ln \frac{1}{4} = \tau \ln 4 = ([[return (namespace_inductance.tau).toFixed(2)]] s)(1.386) = [[return (namespace_inductance.tau * 1.386).toFixed(2)]] s $$
$\tau = $
return (namespace_inductance.tau).toFixed(2)
5%
$s$
$I(1 s) = $
return (namespace_inductance.I_t).toFixed(2)
5%
$A$
$T_{1/2} = $
return (namespace_inductance.tau * 0.693).toFixed(2)
0.2
$s$
$T_{1/4} = $
return (namespace_inductance.tau * 1.386).toFixed(2);
5%
$s$
current || inductance || transformer

Exercise - Ideal transformer basic

if (int_count_times_randomized == 0){ return 100; } else { return random_min_max_precision(100, 1000, -2); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 2000; } else { return random_min_max_precision(100, 1000, -2); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 3; } else { return random_min_max_precision(1, 20, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 2; } else { return random_min_max_precision(1, 5, 0); //defined in setup_exercise_all.js }
return (~N_1~ != ~N_2~);
An a.c. power supply connected to a transformer.
Given (think of the voltage and current below as the instantaneous values): Find:
  1. The output voltage $V_2$ in the secondary coil.
  2. The output current $I_2$ in the secondary coil.
  3. The resistance $R$.
  4. The power input $P_1$ of the primary circuit.
  5. The power output $P_2$ of the secondary circuit.
Very big or very small numbers can be entered as "1.234e-6" (for $ 1.234\times 10^{-6}$).
Hint: $$ \begin{eqnarray} \frac{V_1}{V_2} &=& \frac{N_1}{N_2} \\ I_1 N_1 &=& I_2 N_2 \\ P &=& IV \end{eqnarray} $$
namespace_inductance.ratio_turn_21 = ~N_2~ / ~N_1~; namespace_inductance.ratio_turn_12 = ~N_1~ / ~N_2~; namespace_inductance.v_2 = ~v_1~ * ~N_2~ / ~N_1~; namespace_inductance.i_2 = ~i_1~ * ~N_1~ / ~N_2~; namespace_inductance.power = ~i_1~ * ~v_1~; namespace_inductance.resistance = namespace_inductance.v_2 / namespace_inductance.i_2;

Solution

Voltage
$$ \begin{eqnarray} \frac{V_2}{V_1} &=& \frac{N_2}{N_1} \\ \Rightarrow V_2 &=& \frac{N_2}{N_1} V_1 \\ &=& \frac{~N_2~}{~N_1~} (~v_1~ V) \\ &=& [[return sf_latex(namespace_inductance.ratio_turn_21)]] (~v_1~ V) \\ &=& [[return sf_latex(namespace_inductance.v_2)]] V \end{eqnarray} $$
Current
$$ \begin{eqnarray} I_2 N_2 &=& I_1 N_1 \\ \Rightarrow I_2 &=& \frac{N_1}{N_2} I_1 \\ &=& \frac{~N_1~}{~N_2~} (~i_1~ A) \\ &=& [[return sf_latex(namespace_inductance.ratio_turn_12)]] (~i_1~ A) \\ &=& [[return sf_latex(namespace_inductance.i_2)]] A \end{eqnarray} $$
Resistance
$$ \begin{eqnarray} R &=& \frac{V_2}{I_2} &\text{ Ohm's law} \\ &=& \frac{[[return sf_latex(namespace_inductance.v_2)]] V}{[[return sf_latex(namespace_inductance.i_2)]] A} \\ &=& [[return sf_latex(namespace_inductance.resistance)]] \Omega \end{eqnarray} $$
Power in
$$ \begin{eqnarray} P_1 &=& I_1 V_1 \\ &=& (~i_1~ A) (~v_1~ V) \\ &=& [[return sf_latex(namespace_inductance.power)]]W \end{eqnarray} $$
Power out

By conservation of energy, $P_2 = P_1 = [[return sf_latex(namespace_inductance.power)]]W$. You can also check by using $P_2 = I_2 V_2$ or $P_2 = I_2^2 R$.

$V_2= $
return sf_math(namespace_inductance.v_2)
5%
$V$
$I_2= $
return sf_math(namespace_inductance.i_2)
5%
$A$
$R= $
return sf_math(namespace_inductance.resistance)
5%
$\Omega$
$P_1= $
return sf_math(namespace_inductance.power)
5%

$P_2= $
return sf_math(namespace_inductance.power)
5%
Select unit for power:
$J$
$J/m$
$V$
$W$
3
current || inductance || transformer

Exercise - Primary current in an ideal transformer

if (int_count_times_randomized == 0){ return 100; } else { return random_min_max_precision(100, 1000, -2); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 2000; } else { return random_min_max_precision(100, 1000, -2); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 3; } else { return random_min_max_precision(1, 20, 0); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 20; } else { return random_min_max_precision(5, 20, 0); //defined in setup_exercise_all.js }
return (~N_1~ != ~N_2~);
An a.c. power supply connected to a transformer.
Given (think of the voltage below as the instantaneous values): Find:
  1. The output voltage $V_2$ in the secondary coil.
  2. The output current $I_2$ in the secondary coil.
  3. The input current $I_1$ in the primary coil.
  4. The power input $P_1$ of the primary circuit.
  5. The power output $P_2$ of the secondary circuit.
Very big or very small numbers can be entered as "1.234e-6" (for $ 1.234\times 10^{-6}$).
Hint: $$ \begin{eqnarray} \frac{V_1}{V_2} &=& \frac{N_1}{N_2} \\ I_1 N_1 &=& I_2 N_2 \\ P &=& IV \end{eqnarray} $$
namespace_inductance.ratio_turn_21 = ~N_2~ / ~N_1~; namespace_inductance.ratio_turn_12 = ~N_1~ / ~N_2~; namespace_inductance.v_2 = ~v_1~ * ~N_2~ / ~N_1~; namespace_inductance.i_2 = namespace_inductance.v_2 / ~r~; namespace_inductance.i_1 = namespace_inductance.i_2 * ~N_2~ / ~N_1~; namespace_inductance.power = namespace_inductance.i_1 * ~v_1~;

Solution

Voltage
$$ \begin{eqnarray} \frac{V_2}{V_1} &=& \frac{N_2}{N_1} \\ \Rightarrow V_2 &=& \frac{N_2}{N_1} V_1 \\ &=& \frac{~N_2~}{~N_1~} (~v_1~ V) \\ &=& [[return sf_latex(namespace_inductance.ratio_turn_21)]] (~v_1~ V) \\ &=& [[return sf_latex(namespace_inductance.v_2)]] V \end{eqnarray} $$
Secondary current
$$ \begin{eqnarray} I_2 &=& \frac{V_2}{R} &\text{ Ohm's law} \\ &=& \frac{[[return sf_latex(namespace_inductance.v_2)]] V}{~r~ \Omega} \\ &=& [[return sf_latex(namespace_inductance.i_2)]] A \end{eqnarray} $$
Primary current
$$ \begin{eqnarray} I_1 N_1 &=& I_2 N_2 \\ \Rightarrow I_1 &=& \frac{N_2}{N_1} I_2 \\ &=& \frac{~N_2~}{~N_1~} ([[return sf_latex(namespace_inductance.i_2)]] A) \\ &=& [[return sf_latex(namespace_inductance.ratio_turn_21)]] ([[return sf_latex(namespace_inductance.i_2)]] A) \\ &=& [[return sf_latex(namespace_inductance.i_1)]] A \end{eqnarray} $$
Power in
$$ \begin{eqnarray} P_1 &=& I_1 V_1 \\ &=& ([[return sf_latex(namespace_inductance.i_1)]] A) (~v_1~ V) \\ &=& [[return sf_latex(namespace_inductance.power)]]W \end{eqnarray} $$
Power out

By conservation of energy, $P_2 = P_1 = [[return sf_latex(namespace_inductance.power)]]W$. You can also check by using $P_2 = I_2 V_2$ or $P_2 = I_2^2 R$.

$V_2= $
return sf_math(namespace_inductance.v_2)
5%
$V$
$I_2= $
return sf_math(namespace_inductance.i_2)
5%
$A$
$I_1= $
return sf_math(namespace_inductance.i_1)
5%
$A$
$P_1= $
return sf_math(namespace_inductance.power)
5%

$P_2= $
return sf_math(namespace_inductance.power)
5%
Select unit for power:
$J$
$J/m$
$V$
$W$
3
current_ac || capacitance || inductance || lc

Example - Initial conditions of a LC circuit

A LC circuit.
Suppose at $t=0s$, the initial charge on the capacitor is $q_0 = 3C$ while no current is present. Given $C=0.5F$ and $L=4H$, find:
  1. The resonant angular frequency.
  2. The expressions for the charge and current over time.

Solution

$$ \begin{eqnarray} \omega_0 &=& \frac{1}{\sqrt{LC}} \\ &=& \frac{1}{\sqrt{(4H)(0.5F)}} \\ &=& \frac{1}{\sqrt{2}} rad/s \\ &=& 0.707 rad/s \end{eqnarray} $$ We have the general solutions: $$ \left\{ \begin{eqnarray} q &=& q_p \sin (\omega_0 t + \phi) \\ I &=& I_p \cos (\omega_0 t + \phi) \end{eqnarray} \right. $$ At $t=0s$: $$ \left\{ \begin{eqnarray} q_0 &=& q_p \sin ( \phi) & \text{ because $q=q_0$ initially}\\ 0 &=& I_p \cos (\phi) & \text{ no current} \end{eqnarray} \right. $$ This gives $q_p=q_0$ and $\phi = \frac{\pi}{2}$, therefore: $$ \left\{ \begin{eqnarray} q &=& q_0 \sin (\omega_0 t + \frac{\pi}{2}) = q_0 \cos \omega_0 t \\ I &=& I_p \cos (\omega_0 t + \frac{\pi}{2}) = -\omega_0 q_0 \sin \omega_0 t \end{eqnarray} \right. $$ where we used $I_p = \omega_0 q_p$ and also the trig identities $\sin(\theta + \frac{\pi}{2}) = \cos \theta$ and $\cos(\theta + \frac{\pi}{2}) = -\sin \theta$.

In Mastering Physics, it sometimes defines $I=-\frac{dq}{dt}$ (not the best convention), which gives the opposite sign for the current as $I = \omega_0 q_0 \sin \omega_0 t$. If you keep getting sign errors, look carefully at how the question defines $I$.
current_ac || capacitance || inductance || lc

Exercise - LC circuit basic

if (int_count_times_randomized == 0){ return 1.5; } else { return random_min_max_precision(0.5, 2, 1); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 0.8; } else { return random_min_max_precision(0.5, 2, 1); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 4; } else { return random_min_max_precision(1, 10, 1); //defined in setup_exercise_all.js }
if (int_count_times_randomized == 0){ return 0.1; } else { return random_min_max_precision(0, 3, 1); //defined in setup_exercise_all.js }
return (true);
A LC circuit.
Suppose at $t=0s$, the initial charge on the capacitor is $q_0 = ~q_0~ C$ while no current is present. Given $C= ~c~ F$ and $L= ~l~ H$, find:
  1. The resonant angular frequency.
  2. The resonant frequency.
  3. The period $T$ at resonance.
  4. The peak current.
  5. The total energy.
  6. The charge $q$ at $t=~t~ s$.
  7. The current at $t=~t~ s$.
  8. The energy of the capacitor at $t=~t~ s$.
  9. The energy of the inductor at $t=~t~ s$.
You may use the result from the last example: $$ \left\{ \begin{eqnarray} q &=& q_0 \cos \omega_0 t \\ I &=& -I_p \sin \omega_0 t \end{eqnarray} \right. $$ where $I_p = \omega_0 q_0$.
Hint:
  • $\omega_0 = \frac{1}{\sqrt{LC}}$
  • Use $\omega = \frac{2\pi}{T} = 2\pi f$ to find $f$ and $T$ from $\omega$. This equation also implies $T=\frac{1}{f}$.
namespace_inductance.angular_frequency = 1/ Math.sqrt(~l~ * ~c~); namespace_inductance.frequency = namespace_inductance.angular_frequency / (2 * Math.PI); namespace_inductance.period = 1 / namespace_inductance.frequency; namespace_inductance.current_peak = ~q_0~ * namespace_inductance.angular_frequency; namespace_inductance.energy_total = 0.5 * ~q_0~ * ~q_0~ / ~c~; namespace_inductance.phase = namespace_inductance.angular_frequency * ~t~; namespace_inductance.charge_t = ~q_0~ * Math.cos(namespace_inductance.phase); namespace_inductance.current_t = -1 * namespace_inductance.current_peak * Math.sin(namespace_inductance.phase); namespace_inductance.energy_e_t = 0.5 * namespace_inductance.charge_t * namespace_inductance.charge_t / ~c~; namespace_inductance.energy_b_t = 0.5 * ~l~ * namespace_inductance.current_t * namespace_inductance.current_t;

Solution

Resonant angular frequency
$$ \begin{eqnarray} \omega_0 &=& \frac{1}{\sqrt{LC}} \\ &=& \frac{1}{\sqrt{(~l~ H)(~c~ F)}} \\ &=& [[return sf_latex(namespace_inductance.angular_frequency)]] rad/s \end{eqnarray} $$
Resonant frequency
$$ \begin{eqnarray} f_0 &=& \frac{\omega_0}{2\pi} \\ &=& \frac{[[return sf_latex(namespace_inductance.angular_frequency)]] rad/s}{2\pi} \\ &=& [[return sf_latex(namespace_inductance.frequency)]] Hz \end{eqnarray} $$
Period
$$ \begin{eqnarray} T &=& \frac{1}{f_0} \\ &=& \frac{1}{[[return sf_latex(namespace_inductance.frequency)]] Hz} \\ &=& [[return sf_latex(namespace_inductance.period)]] s \end{eqnarray} $$
Peak current
$$ \begin{eqnarray} I_p &=& \omega_0 q_p = \omega_0 q_0 \\ &=& ([[return sf_latex(namespace_inductance.angular_frequency)]] rad/s) (~q_0~ C) \\ &=& [[return sf_latex(namespace_inductance.current_peak)]] A \end{eqnarray} $$
Total energy
$$ \begin{eqnarray} U_{total} &=& \frac{q_p^2}{2C} = \frac{q_0^2}{2C} \\ &=& \frac{(~q_0~ C)^2}{2 (~c~ F)} \\ &=& [[return sf_latex(namespace_inductance.energy_total)]] J \end{eqnarray} $$
Charge at $~t~ s$
$$ \begin{eqnarray} q &=& q_0 \cos \omega_0 t \\ &=& (~q_0~ C) \cos (([[return sf_latex(namespace_inductance.angular_frequency)]] rad/s)(~t~ s)) \\ &=& (~q_0~ C) \cos ([[return sf_latex(namespace_inductance.phase)]] rad) \\ &=& [[return sf_latex(namespace_inductance.charge_t)]] C \end{eqnarray} $$
Current at $~t~ s$
$$ \begin{eqnarray} I &=& -I_p \sin \omega_0 t \\ &=& -([[return sf_latex(namespace_inductance.current_peak)]] A) \sin (([[return sf_latex(namespace_inductance.angular_frequency)]] rad/s)(~t~ s)) \\ &=& -([[return sf_latex(namespace_inductance.current_peak)]] A) \sin ([[return sf_latex(namespace_inductance.phase)]] rad) \\ &=& [[return sf_latex(namespace_inductance.current_t)]] A \end{eqnarray} $$
Energy in capacitor at $~t~ s$
$$ \begin{eqnarray} U_E &=& \frac{q^2}{2C} \\ &=& \frac{([[return sf_latex(namespace_inductance.charge_t)]] C)^2}{2 (~c~ F)} \\ &=& [[return sf_latex(namespace_inductance.energy_e_t)]] J \end{eqnarray} $$
Energy in inductor at $~t~ s$
$$ \begin{eqnarray} U_B &=& \frac{1}{2} L I^2 \\ &=& \frac{1}{2} (~l~ H) ([[return sf_latex(namespace_inductance.current_t)]] A)^2 \\ &=& [[return sf_latex(namespace_inductance.energy_b_t)]] J \end{eqnarray} $$ You can confirm that $U_{total} = U_E + U_B$ because of conservation of energy.
$\omega_0 = $
return sf_math(namespace_inductance.angular_frequency)
5%

$f_0 = $
return sf_math(namespace_inductance.frequency)
5%

$T = $
return sf_math(namespace_inductance.period)
5%

$I_p = $
return sf_math(namespace_inductance.current_peak)
5%
$A$
$U_{total} = $
return sf_math(namespace_inductance.energy_total)
5%
$J$
$q(t) = $
return sf_math(namespace_inductance.charge_t)
5%
$C$
$I(t) = $
return sf_math(namespace_inductance.current_t)
5%
$A$
$U_E(t) = $
return sf_math(namespace_inductance.energy_e_t)
5%
$J$
$U_B(t) = $
return sf_math(namespace_inductance.energy_b_t)
5%
$J$
Select unit for angular frequency:
$s$
$rad/s$
$Hz$
$rad$
1
Select unit for frequency:
$s$
$rad/s$
$Hz$
$rad$
2
Select unit for period:
$s$
$rad/s$
$Hz$
$rad$
0
current || inductance || mutual_inductance || magnetism || em_induction || magnetic_flux

Example - Mutual inductance of a coil and a solenoid

Coil and solenoid
A thin coil with many turns wrapping around a solenoid.
Guy vandegrift, Public domain, via Wikimedia Commons
A thin coil of radius $R_1$ with $N_1$ turns wraps around a long thin solenoid of radius $R_2$ with turns density $n_2$. Assume the coil and the solenoid carry current $I_1$ and $I_2$ respectively. We would use this example to show $M_{12} = M_{21}$ explicitly.

We will need the following two results proven in an earlier chapter with Biot-Savart law:
  1. Calculate $\Phi_{12}$, i.e. the magnetic flux picked up by the coil due to the magnetic field of the solenoid.
  2. Calculate $M_{12}$.
  3. Calculate $d\Phi_{21}$, i.e. the small amount of magnetic flux picked up by a section of the solenoid of length $dz$ due to the magnetic field of the coil.
  4. Integrate $d\Phi_{21}$ to find $\Phi_{21}$.
  5. Calculate $M_{21}$.

Solution



$\Phi_{12}$
The magnetic field produced by the solenoid is $B_2 = \mu_0 n_2 I_2$, and this field only exists inside the solenoid, so the total flux captured by the coil is: $$ \begin{eqnarray} \Phi_{12} &=& N_1 B_2 A_2 \qquad \text{where $A_2 = \pi R_2^2$} \\ &=& N_1 (\mu_0 n_2 I_2) A_2 \\ &=& \mu_0 N_1 n_2 A_2 I_2 \end{eqnarray} $$
$M_{12}$
By defintion: $$ \begin{eqnarray} M_{12} &=& \frac{\Phi_{12}}{I_2} = \frac{\mu_0 N_1 n_2 A_2 I_2}{I_2} \\ &=& \mu_0 N_1 n_2 A_2 \end{eqnarray} $$
$d\Phi_{21}$
$d\Phi_{21}$ is the flux captured by the parts of the solenoid highlighted, which consists of $dN_2 = n_2 dz$ turns.
$\Phi_{21}$ is much harder to find, because different parts of the solenoid experience different strength of $B_1$ from the coil. More specifically, the larger $z$ is the weaker $B_1$ becomes, so the sections of the solenoid further away contribute less to $\Phi_{21}$.

To account for this, we consider only a small section of the solenoid with length $dz$ (see figure), at distance $z$ from the coil, and calculate the magnetic flux picked up by only this section. At this location, the magnetic field produced by the coil is given by $B_1 = \frac{\mu_0 N_1 I_1 R_1^2 }{2 (z^2 + R_1^2)^{3/2}}$. The number of turns of the solenoid within $dz$ is $dN_2 = n_2 dz$. This gives the flux picked up by this section: $$ \begin{eqnarray} d\Phi_{21} &=& dN_2 B_1 A_2 \\ &=& (n_2 dz)(\frac{\mu_0 N_1 I_1 R_1^2 }{2 (z^2 + R_1^2)^{3/2}}) A_2 \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 R_1^2 \frac{dz}{(z^2 + R_1^2)^{3/2}} \end{eqnarray} $$
$\Phi_{21}$
The relationship among variables.
The total flux pickec up by the solenoid is: $$ \begin{eqnarray} \Phi_{21} &=& \int d\Phi_{21} \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 R_1^2 \int_{-\infty}^{+\infty} \frac{dz}{(z^2 + R_1^2)^{3/2}} \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 R_1^2 \int_{-\infty}^{+\infty} \frac{dz}{r^3} \qquad \text{where $r = \sqrt{z^2 + R_1^2}$} \end{eqnarray} $$ We can write $r$ and $z$ in terms of $\alpha$: $$ \begin{eqnarray} r &=& R_1 \sec \alpha \\ z &=& R_1 \tan \alpha \\ \Rightarrow dz &=& R_1 \sec^2 \alpha d\alpha \end{eqnarray} $$ Note that as $z \rightarrow \pm \infty$, $\alpha = \pm \frac{\pi}{2}$. This gives: $$ \begin{eqnarray} \Phi_{21} &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 R_1^2 \int_{-\infty}^{+\infty} \frac{dz}{r^3} \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 R_1^2 \int_{-\pi/2}^{+\pi/2} \frac{R_1 \sec^2 \alpha d\alpha}{(R_1 \sec \alpha)^3} \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 \int_{-\pi/2}^{+\pi/2} \cos \alpha d\alpha \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 (\sin (+\frac{\pi}{2}) - \sin (-\frac{\pi}{2})) \\ &=& \frac{1}{2} \mu_0 N_1 n_2 A_2 I_1 (2) \\ &=& \mu_0 N_1 n_2 A_2 I_1 \end{eqnarray} $$
$M_{21}$
By definition: $$ \begin{eqnarray} M_{21} &=& \frac{\Phi_{21}}{I_1} = \frac{\mu_0 N_1 n_2 A_2 I_1}{I_1} \\ &=& \mu_0 N_1 n_2 A_2 \end{eqnarray} $$ Compared with the earlier result, we can confirm: $$ \begin{eqnarray} M_{12} &=& M_{21} \\ &=& \mu_0 N_1 n_2 A_2 \\ &=& \mu_0 N_1 n_2 (\pi R_2^2) \\ &=& \pi \mu_0 N_1 n_2 R_2^2 \end{eqnarray} $$
current || inductance || magnetism || em_induction || magnetic_flux || ampere_law

Example - Inductance of a coaxial cable

Coaxial Cable Terminated with Space Cloth
3D view of a coaxial cable.
Constant314, CC0, via Wikimedia Commons
Cross section of a coaxial cable where $I$ points out of the screen in the inner wire, but into the screen in the outer cylinder.
A coaxial cable of length $l$ consists of a solid thick wire of radius $a$, surrounded by a hollow cylinder of radius $b$ (of negligible thickness), carrying current $I$ in opposite directions, coming out of the screen in the inner wire but into the screen in the outer cylinder. Unlike the chapter on Ampere's law, here we assume (for simplicity) the current $I$ on the inner wire is flowing on the wire's surface alone. This allows us to ignore the magnetic field inside at $r \lt a$. Express your answers below in terms of $\mu_0$, $I$, $a$, $b$, and $l$.
  1. Find the magnetic field in the middle region $a \lt r \lt b$ using Ampere's law.
  2. Calculate the total magnetic flux in the coaxial cable.
  3. Calculate the inductance.

Solution

Middle $a \lt r \lt b$
An Amperian loop inside in the counterclockwise direction. $I$ points out of the screen in the inner wire, but into the screen in the outer cylinder.
The Amperian loop shown encloses the entire inner wire, therefore $I_{enclosed} = I$: $$ \begin{eqnarray} \mu_0 I &=& \oint \vec B\cdot d\vec s \\ &=& B (2\pi r) \\ \Rightarrow B_{middle} &=& \frac{\mu_0 I}{2\pi r} \end{eqnarray} $$
Magnetic flux
The area through which the magnetic flux is captured. We need to integrate over $r$. An area element is $dA = l dr$.
To calculate the flux, first you should recognize the magnetic field lines are circular and wraps around the inner wire. The area that $\vec B$ crosses is highlighted in blue in the figure. You may be tempted to say $\Phi = BA$, however, since $B$ depends on $r$, integration is required.

For the flux in the region $a \lt r \lt b$, we have: $$ \begin{eqnarray} \Phi &=& \int \vec B\cdot d\vec A = \int B dA \\ &=& \int_a^b \frac{\mu_0 I}{2\pi r} (l dr) \\ &=& \frac{\mu_0 I l}{2\pi} \int_a^b \frac{dr}{r} \\ &=& \frac{\mu_0 I l}{2\pi} \ln \frac{b}{a} \end{eqnarray} $$
Inductance
$$ \begin{eqnarray} L &=& \frac{\Phi_{total}}{I} \\ &=& \frac{\mu_0 l}{2\pi} \ln \frac{b}{a} \end{eqnarray} $$
Side remarks
You do not need to know this for the exam, but if you assume the current $I$ is spread evenly across the cross section of the inner wire, the total flux takes quite a bit more work to get because the current is located at different radius $r_1$: $$ \begin{eqnarray} \Phi &=& \int_0^a dr_1 \frac{2 r_1}{a^2} \int_{r_1}^b B(r_2) ldr_2 \\ &=& \int_0^a dr_1 \frac{2 r_1}{a^2} \bigg( \int_{r_1}^a B_{in}(r_2) ldr_2 + \int_a^b B_{middle}(r_2) ldr_2 \bigg) \\ &=& \frac{2 }{a^2} \int_0^a r_1 dr_1 \bigg( \int_{r_1}^a \frac{\mu_0 I r_2}{2\pi a^2} ldr_2 + \int_a^b \frac{\mu_0 I}{2\pi r_2} ldr_2 \bigg) \\ &=& \frac{2}{a^2} \int_0^a r_1 dr_1 \bigg( \frac{\mu_0 I l (a^2 - r_1^2)}{4\pi a^2} + \frac{\mu_0 I l}{2\pi} \ln \frac{b}{a} \bigg) \\ &=& \frac{2}{a^2} \int_0^a dr_1 \bigg( \frac{\mu_0 I l (a^2 r_1 - r_1^3)}{4\pi a^2} + r_1 \frac{\mu_0 I l}{2\pi} \ln \frac{b}{a} \bigg) \\ &=& \frac{\mu_0 I l (a^2 \frac{a^2}{2} - \frac{a^4}{4})}{4\pi a^4} + \frac{\mu_0 I l}{2\pi} \ln \frac{b}{a} \\ &=& \frac{\mu_0 I l}{8\pi a^4} + \frac{\mu_0 I l}{2\pi} \ln \frac{b}{a} \\ &=& \frac{\mu_0 I l}{2\pi} (\ln \frac{b}{a} + \frac{1}{4}) \end{eqnarray} $$ Removing the $\frac{1}{4}$ term give the same answer we had earlier.
current || inductance || magnetism || em_induction || magnetic_flux || ampere_law

Example - Energy density of a coaxial cable

Coaxial Cable Terminated with Space Cloth
3D view of a coaxial cable.
Constant314, CC0, via Wikimedia Commons
Cross section of a coaxial cable where $I$ points out of the screen in the inner wire, but into the screen in the outer cylinder.
A coaxial cable consists of a solid thick wire of radius $a$, surrounded by a hollow cylinder of radius $b$ (of negligible thickness), carrying current $I$ in opposite directions, coming out of the screen in the inner wire but into the screen in the outer cylinder. Unlike the chapter on Ampere's law, here we assume (for simplicity) the current $I$ on the inner wire is flowing on the wire's surface alone. This allows us to ignore the magnetic field inside at $r \lt a$.
  1. Find the magnetic field in the middle region $a \lt r \lt b$.
  2. Write down the expressions of the energy density $u = \frac{1}{2 \mu_0} B^2$ for the middle region.
  3. By integrating over the energy density, find the total magnetic energy $U$ in the coaxial cable. You can use the volume element of cylinderical coordinates $dV = rdr d\theta dz$ to perform the integration.
  4. Calculate the inductance using $U = \frac{1}{2}LI^2$.
  5. So far we have ignored the region $r \lt a$. Suppose the energy carried by the magnetic field by the inner wire is $U_{in} = \frac{\mu_0 I^2 l}{16\pi}$ (proven in Energy density inside a thick wire), find the inductance taking $U_{in}$ into account.

Solution

Middle $a \lt r \lt b$
An Amperian loop inside in the counterclockwise direction. $I$ points out of the screen in the inner wire, but into the screen in the outer cylinder.
The Amperian loop shown encloses the entire inner wire, therefore $I_{enclosed} = I$: $$ \begin{eqnarray} \mu_0 I &=& \oint \vec B\cdot d\vec s \\ &=& B (2\pi r) \\ \Rightarrow B_{middle} &=& \frac{\mu_0 I}{2\pi r} \end{eqnarray} $$
Magnetic energy density
$$ \begin{eqnarray} u_{middle} &=& \frac{1}{2\mu_0} B^2 \\ &=& \frac{1}{2\mu_0}(\frac{\mu_0 I}{2\pi r})^2 \\ &=& \frac{\mu_0 I^2}{8\pi^2 r^2} \end{eqnarray} $$
Magnetic energy
$$ \begin{eqnarray} U_{middle} &=& \int u_{middle} dV \\ &=& \int \frac{\mu_0 I^2}{8\pi^2 r^2} rdr d\theta dz \\ &=& \frac{\mu_0 I^2}{8\pi^2}\int_a^b \frac{1}{r^2} rdr \int_0^{2\pi} d\theta \int_0^l dz \\ &=& \frac{\mu_0 I^2}{8\pi^2}\int_a^b \frac{1}{r} dr \int_0^{2\pi} d\theta \int_0^l dz \\ &=& \frac{\mu_0 I^2}{8\pi^2}\ln \frac{b}{a} (2\pi) (l) \\ &=& \frac{\mu_0 I^2 l}{4\pi}\ln \frac{b}{a} \end{eqnarray} $$
Inductance
$$ \begin{eqnarray} U_{middle} &=& \frac{1}{2}LI^2 \\ \Rightarrow L &=& \frac{2 U}{I^2} \\ &=& \frac{\mu_0 l}{2\pi}\ln \frac{b}{a} \end{eqnarray} $$ This is the same $L$ as derived in an earlier example using the definition $L = \frac{\Phi}{I}$.
Side remarks: including $U_{in}$
You do not need to know this for the exam. In the example Energy density inside a thick wire, the energy inside a thick wire is found to be $U_{in} = \frac{\mu_0 I^2 l}{16\pi}$. If this energy is included to account for the energy in the inner wire of the coaxial cable, then the total energy of a coaxial cable would be: $$ \begin{eqnarray} U &=& U_{middle} + U_{in} \\ &=& \frac{\mu_0 I^2 l}{4\pi}\ln \frac{b}{a} + \frac{\mu_0 I^2 l}{16\pi} = \frac{1}{2}L I^2 \\ \Rightarrow L &=& \frac{\mu_0 l}{2\pi}\bigg( \ln \frac{b}{a} + \frac{1}{4} \bigg) \end{eqnarray} $$ This is the same answer found under the Side remarks of Inductance of a coaxial cable.
current || inductance || magnetism || em_induction || magnetic_flux || ampere_law

Example - Energy density inside a thick wire

A thick wire carrying a current.
A current $I$ flows through a thick wire with radius $R$. Assume the current is spready evenly throughout the cross-section of the wire.
  1. Find the magnetic field inside $r \lt R$.
  2. Write down the expressions of the energy density $u = \frac{1}{2 \mu_0} B^2$ inside.
  3. By integrating over the energy density, find the magnetic energy $U$ in the region $r \lt R$. You can use the volume element of cylinderical coordinates $dV = rdr d\theta dz$ to perform the integration. You do not need to consider the field outside $r \gt R$.

Solution

Inside $r \lt R$
An Amperian loop inside in the counterclockwise direction.
The Amperian loop shown encloses only an area $\pi r^2$, which is only part of the entire cross section $\pi R^2$, therefore: $$ I_{enclosed} = \frac{\pi r^2}{\pi R^2} I = \frac{r^2}{R^2} I $$ Applying Ampere's law: $$ \begin{eqnarray} \mu_0 (\frac{r^2}{R^2} I) &=& \oint \vec B\cdot d\vec s \\ &=& B (2\pi r) \\ \Rightarrow B_{in} &=& \frac{\mu_0 I r}{2\pi R^2} \end{eqnarray} $$
Magnetic energy density
$$ \begin{eqnarray} u_{in} &=& \frac{1}{2\mu_0} B^2 \\ &=& \frac{1}{2\mu_0}(\frac{\mu_0 I r}{2\pi R^2})^2 \\ &=& \frac{\mu_0 I^2 r^2}{8\pi^2 R^4} \end{eqnarray} $$
Magnetic energy
For the magnetic energy in the region $r \lt R$, we have: $$ \begin{eqnarray} U_{in} &=& \int u_{in} dV \\ &=& \int \frac{\mu_0 I^2 r^2}{8\pi^2 R^4} rdr d\theta dz \\ &=& \frac{\mu_0 I^2}{8\pi^2 R^4}\int_0^R (r^2) rdr \int_0^{2\pi} d\theta \int_0^l dz \\ &=& \frac{\mu_0 I^2}{8\pi^2 R^4}\int_0^R r^3 dr \int_0^{2\pi} d\theta \int_0^l dz \\ &=& \frac{\mu_0 I^2}{8\pi^2 R^4} \frac{R^4}{4} (2\pi) (l) \\ &=& \frac{\mu_0 I^2 l}{16\pi} \end{eqnarray} $$ Note that this energy does not include the magnetic field outside the wire.