Midterm I Spring 2019 Solution
Midterm I Spring 2019 Solution
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
Q1. (10 points) A point charge Q sits at a corner of a cube, as shown
here. What is the flux of E through the shaded side?
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
Q2. (10 points) A long solid cylinder (of radius a) carries a volumetric
charge density that is proportional to the distance from the axis: ρv =
kρ, for some constant k. Using Gauss’s theorem, show that the electric
field E inside this cylinder is given as:
k 2
E= ρ aρ
3ǫ0
1
I
E · dS = Qenc.
ǫ0
k
(
, a≤r≤b
ρv = r2
0, otherwise.
Solution: For r < 0, E = 0. For a < r < b, repeat in a similar fashion as I have shown in Q2;
introduce an auxiliary variable such that a ≤ ř ≤ r ≤ b.
I Z π Z 2π
Er ar · r 2 sin(θ) dφ dθ ar = 4πr 2 Er
L.H.S. = E · dS =
θ=0 φ=0
π 2π r
Qenc. 1 k 1 2 k k
Z ZZZ Z Z Z
R.H.S. = = ρv dv = 2
ř sin(θ) dř dφ dθ = sin(θ) dř dφ dθ = 4π(r − a)
ǫ0 ǫ0 ǫ0 ř ǫ0 θ=0 φ=0 ř=a ǫ0
k (r − a)
E = Er ar = ar , a≤r≤b
ǫ0 r 2
For r > b, we solve as follows (we do not need to introduce any auxiliary variable in the evaluation of
R.H.S.):
I Z π Z 2π
Er ar · r 2 sin(θ) dφ dθ ar = 4πr 2 Er
L.H.S. = E · dS = (same as above)
θ=0 φ=0
π 2π b
Qenc. 1 k 1 2 k k
Z ZZZ Z Z Z
R.H.S. = = ρv dv = 2
r sin(θ) dr dφ dθ = sin(θ) dr dφ dθ = 4π(b − a)
ǫ0 ǫ0 ǫ0 r ǫ0 θ=0 φ=0 r=a ǫ0
k (b − a)
E = Er ar = ar , b≤r<∞
ǫ0 r 2
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
Q4. (10 points)
(a) Three charges are situated at the corners of a square (each side is
length a). How much work does it take to bring in another charge, +q,
from far away and place it in the fourth corner?
(b) How much work does it take to assemble the whole configuration
of four charges?
q2 √1 − 2 , and (b) Wtotal = 2q 2 √1
Solution: Do it yourself to show (a) W4 = 4πǫ 0a 2 4πǫ0 a 2
−2 .
Page 2
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
Q5. (10 points) Find the energy of a uniformly charged spherical (hollow) shell of total charge q
and radius a.
Hint: The sphere acts like a point charge; if the total charge is q, then the field E outside the
sphere is given as
1 q
E= ar (a 6 r < ∞)
4πǫ0 r 2
Use WE = (ǫ0 /2) E 2 dv, where the volume (triple) integral is evaluated for the entire space;
R
say we integrate (in the spherical coordinate system) from the surface of the sphere to infinity.
We can exclude sphere’s inner region because the field is zero inside.
Solution: Do it yourself to show:
ǫ0 q2
Z
WE = E 2 dv =
2 8πǫ0 a
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
Q6. (10 points) Determine the total charge
Solution: This is easy; do it yourself, and talk to each other to get your answers verified.
∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗
Page 3