Homework 7 Solution
Homework 7 Solution
Homework 7 Solution
4 If the line charge density is given by l = 24y2 (mC/m), find the total charge
distributed on the y-axis from y = 5 to y = 5.
Solution:
Z 5 Z 5 5
2 24y3
Q= l dy = 24y dy = = 2000 mC = 2 C.
5 5 3 5
4.13 Charge q1 = 6 C is located at (1 cm, 1 cm, 0) and charge q2 is located at
(0, 0, 4 cm). What should q2 be so that E at (0, 2 cm, 0) has no y-component?
Solution:
determine
(a) v by applying Eq. (4.26).
(b) The total charge Q enclosed in a cube 2 m on a side, located in the first octant
with three of its sides coincident with the x-, y-, and z-axes and one of its
corners at the origin.
(c) The total charge Q in the cube, obtained by applying Eq. (4.29).
Solution:
(a) By applying Eq. (4.26)
v = D = (2x + 2y) + (3x 2y) = 0.
x y
(b) Integrate the charge density over the volume as in Eq. (4.27):
Z Z 2 Z 2 Z 2
Q= D dV = 0 dx dy dz = 0.
V x=0 y=0 z=0
(c) Apply Gauss law to calculate the total charge from Eq. (4.29)
Z
Q= n
D ds = Ffront + Fback + Fright + Fleft + Ftop + Fbottom ,
Z 2 Z 2
Ffront = (x2(x + y) + y(3x 2y)) (x dz dy)
y=0 z=0
x=2
Z 2 Z 2 2 2
1 2
= 2(x + y) dz dy = 2z 2y + y = 24,
y=0 z=0 2
x=2 z=0 y=0
Z 2 Z 2
Fback = (x2(x + y) + y(3x 2y)) (x dz dy)
y=0 z=0
x=0
Z 2 Z 2 2 2
= 2(x + y) dz dy = zy
2
= 8,
y=0 z=0
x=0 z=0 y=0
Z 2 Z 2
Fright = (x2(x + y) + y(3x 2y)) (y dz dx)
x=0 z=0
y=2
Z 2 Z 2 2 2
3 2
= (3x 2y) dz dx = z x 4x = 4,
x=0 z=0 2
y=2 z=0 x=0
Z 2 Z 2
Fleft = (x2(x + y) + y(3x 2y)) (y dz dx)
x=0 z=0
y=0
Z 2 Z 2 2 2
3 2
= (3x 2y) dz dx = z x = 12,
x=0 z=0 2
y=0 z=0 x=0
Z 2 Z 2
Ftop = (x2(x + y) + y(3x 2y)) (z dy dx)
x=0 z=0
z=2
Z 2 Z 2
= 0 dy dx = 0,
x=0 z=0
z=2
Z 2 Z 2
Fbottom = (x2(x + y) + y(3x 2y)) (z dy dx)
x=0 z=0
z=0
Z 2 Z 2
= 0 dy dx = 0.
x=0 z=0
z=0
Z
Thus Q = n
D ds = 24 8 4 12 + 0 + 0 = 0.
4.29 A spherical shell with outer radius b surrounds a charge-free cavity of radius
a < b (Fig. P4.29). If the shell contains a charge density given by
v0
v = , a R b,
R2
where v0 is a positive constant, determine D in all regions.
r3
v
a
r1
r2
D = R DR .
4 R2 DR = Q
Q
DR = .
4 R2
(a) For R < a, no charge is contained in the cavity. Hence, Q = 0, and
DR = 0, R a.
(b) For a R b,
Z R Z R
v0
Q= v dV = 2
4 R2 dR
R=a R=a R
= 4v0 (R a).
Hence,
v0 (R a)
DR = , a R b.
R2
(c) For R b,
Z b
Q= v dV = 4v0 (b a)
R=a
v0 (b a)
DR = , R b.
R2