ECE331 HW4 Soln
ECE331 HW4 Soln
Find
a unit vector in the direction of A.
Solution:
Eq. (3.30) could also have been used in the solution. Also, Eq. (3.29) could be used
in conjunction with the result of part (d).
(f) By repeated application of Eq. (3.27),
Eq. (3.29) and Eq. (3.25) could also have been used in the solution.
Problem 3.11 Find a unit vector parallel to either direction of the line described by
2x + z = 4.
Solution: First, we find any two points on the given line. Since the line equation
is not a function of y, the given line is in a plane parallel to the x–z plane. For
convenience, we choose the x–z plane with y = 0.
For x = 0, z = 4. Hence, point P is at (0, 0, 4).
For z = 0, x = 2. Hence, point Q is at (2, 0, 0).
Vector A from P to Q is:
Note that in both the cylindrical and spherical coordinates, φ is in Quadrant II.
Problem 3.25 Use the appropriate expression for the differential surface area ds to
determine the area of each of the following surfaces:
(a) r = 3; 0 ≤ φ ≤ π /3; −2 ≤ z ≤ 2,
(b) 2 ≤ r ≤ 5; π /2 ≤ φ ≤ π ; z = 0,
(c) 2 ≤ r ≤ 5; φ = π /4; −2 ≤ z ≤ 2,
(d) R = 2; 0 ≤ θ ≤ π /3; 0 ≤ φ ≤ π ,
(e) 0 ≤ R ≤ 5; θ = π /3; 0 ≤ φ ≤ 2π .
Also sketch the outlines of each of the surfaces.
Solution:
∆Φ = π/3
y
3 2 2
5
x
5 2
(d) (e)
z z
5
2
y y
2 5
x x
(a) (b)
find
(a) θAB at (2, π /2, 0),
(b) a unit vector perpendicular to both A and B at (2, π /3, 1).
Solution: It doesn’t matter whether the vectors are evaluated before vector products
are calculated, or if the vector products are directly calculated and the general results
are evaluated at the specific point in question.
(a) At (2, π /2, 0), A = −φ̂φ8 + ẑ2 and B = −r̂. From Eq. (3.18),
µ ¶ µ ¶
−1 A · B 0
θAB = cos = cos −1
= 90◦ .
AB AB
√ √
(b) At (2, π /3, 1), A = r̂ 72 − φ̂φ4(1 + 21 3) and B = −r̂ 21 3 + ẑ 12 . Since A × B is
perpendicular to both A and B, a unit vector perpendicular to both A and B is given
by
√ √ √
A×B r̂(−4(1 + 21 3))( 21 ) − φ̂φ( 27 )( 12 ) − ẑ(4(1 + 21 3))( 21 3)
± =± q √ 2 √ 2
|A × B| 2
(2(1 + 12 3)) + ( 47 ) + (3 + 2 3)
≈ ∓(r̂0.487 + φ̂φ 0.228 + ẑ 0.843).
Problem 3.32 Determine the distance between the following pairs of points:
(a) P1 = (1, 1, 2) and P2 = (0, 2, 3),
(b) P3 = (2, π /3, 1) and P4 = (4, π /2, 3),
(c) P5 = (3, π , π /2) and P6 = (4, π /2, π ).
Solution:
(a) From Eq. (3.66),
q √
d= (0 − 1)2 + (2 − 1)2 + (3 − 2)2 = 3 .
π π π ´´
r ³ ³
d = 32 + 42 − 2(3)(4) cos cos π + sin π sin cos π − = 5.
2 2 2
Problem 3.34 Transform the following vectors into cylindrical coordinates and
then evaluate them at the indicated points:
(a) A = x̂(x + y) at P1 = (1, 2, 3),
(b) B = x̂(y − x) + ŷ(x − y) at P2 = (1, 0, 2),
(c) C = x̂y2 /(x2 + y2 ) − ŷx2 /(x2 + y2 ) + ẑ4 at P3 = (1, −1, 2),
(d) D = R̂ sin θ + θ̂θ cos θ + φ̂φ cos2 φ at P4 (2, π /2, π /4),
(e) E = R̂ cos φ + θ̂θ sin φ + φ̂φ sin2 θ at P5 = (3, π /2, π ).
Solution: From Table 3-2:
(a)
(b)
B = (r̂ cos φ − φ̂φ sin φ )(r sin φ − r cos φ ) + (φ̂φ cos φ + r̂ sin φ )(r cos φ − r sin φ )
= r̂r(2 sin φ cos φ − 1) + φ̂φr(cos2 φ − sin2 φ ) = r̂r(sin 2φ − 1) + φ̂φr cos 2φ ,
p
P2 = ( 12 + 02 , tan−1 (0/1), 2) = (1, 0◦ , 2),
B(P2 ) = −r̂ + φ̂φ.
(c)
r2 sin2 φ r2 cos2 φ
C = (r̂ cos φ − φ̂φ sin φ ) − ( φ
φ̂ cos φ + r̂ sin φ ) + ẑ4
r2 r2
= r̂ sin φ cos φ (sin φ − cos φ ) − φ̂φ(sin3 φ + cos3 φ ) + ẑ4,
q √
P3 = ( 12 + (−1)2 , tan−1 (−1/1), 2) = ( 2, −45◦ , 2),
C(P3 ) = r̂0.707 + ẑ4.
(d)
D = (r̂ sin θ + ẑ cos θ ) sin θ + (r̂ cos θ − ẑ sin θ ) cos θ + φ̂φ cos2 φ = r̂ + φ̂φ cos2 φ ,
P4 = (2 sin (π /2), π /4, 2 cos (π /2)) = (2, 45◦ , 0),
D(P4 ) = r̂ + φ̂φ 12 .
(e)
E = (r̂ sin θ + ẑ cos θ ) cos φ + (r̂ cos θ − ẑ sin θ ) sin φ + φ̂φ sin2 θ ,
³ π ´
P5 = 3, , π ,
³ 2π π´ ³ π π´ π
E(P5 ) = r̂ sin + ẑ cos cos π + r̂ cos − ẑ sin sin π + φ̂φ sin2 = −r̂ + φ̂φ.
2 2 2 2 2
Problem 3.35 Transform the following vectors into spherical coordinates and then
evaluate them at the indicated points:
(a) A = x̂y2 + ŷxz + ẑ4 at P1 = (1, −1, 2),
(b) B = ŷ(x2 + y2 + z2 ) − ẑ(x2 + y2 ) at P2 = (−1, 0, 2),
(c) C = r̂ cos φ − φ̂φ sin φ + ẑ cos φ sin φ at P3 = (2, π /4, 2), and
(d) D = x̂y2 /(x2 + y2 ) − ŷx2 /(x2 + y2 ) + ẑ4 at P4 = (1, −1, 2).
Solution: From Table 3-2:
(a)
A = (R̂ sin θ cos φ + θ̂θ cos θ cos φ − φ̂φ sin φ )(R sin θ sin φ )2
+ (R̂ sin θ sin φ + θ̂θ cos θ sin φ + φ̂φ cos φ )(R sin θ cos φ )(R cos θ )
+ (R̂ cos θ − θ̂θ sin θ )4
= R̂(R2 sin2 θ sin φ cos φ (sin θ sin φ + cos θ ) + 4 cos θ )
+ θ̂θ(R2 sin θ cos θ sin φ cos φ (sin θ sin φ + cos θ ) − 4 sin θ )
+ φ̂φR2 sin θ (cos θ cos2 φ − sin θ sin3 φ ),
µq µq ¶ ¶
2 2 2 −1 2 2 −1
P1 = 1 + (−1) + 2 , tan 1 + (−1) /2 , tan (−1/1)
√
= ( 6, 35.3◦ , −45◦ ),
A(P1 ) ≈ R̂2.856 − θ̂θ2.888 + φ̂φ2.123.
(b)
B = (R̂ sin θ sin φ + θ̂θ cos θ sin φ + φ̂φ cos φ )R2 − (R̂ cos θ − θ̂θ sin θ )R2 sin2 θ
= R̂R2 sin θ (sin φ − sin θ cos θ ) + θ̂θR2 (cos θ sin φ + sin3 θ ) + φ̂φR2 cos φ ,
µq µq ¶ ¶
2 2 2 −1 2 2 −1
P2 = (−1) + 0 + 2 , tan (−1) + 0 /2 , tan (0/(−1))
√
= ( 5, 26.6◦ , 180◦ ),
B(P2 ) ≈ −R̂0.896 + θ̂θ0.449 − φ̂φ5.
(c)
C = (R̂ sin θ + θ̂θ cos θ ) cos φ − φ̂φ sin φ + (R̂ cos θ − θ̂θ sin θ ) cos φ sin φ
= R̂ cos φ (sin θ + cos θ sin φ ) + θ̂θ cos φ (cos θ − sin θ sin φ ) − φ̂φ sin φ ,
³p ´ √
P3 = 22 + 22 , tan−1 (2/2), π /4 = (2 2, 45◦ , 45◦ ),
C(P3 ) ≈ R̂0.854 + θ̂θ0.146 − φ̂φ0.707.
(d)
R2 sin2 θ sin2 φ
D = (R̂ sin θ cos φ + θ̂θ cos θ cos φ − φ̂φ sin φ )
R2 sin2 θ sin2 φ + R2 sin2 θ cos2 φ
R2 sin2 θ cos2 φ
− (R̂ sin θ sin φ + θ̂θ cos θ sin φ + φ̂φ cos φ ) 2 2
R sin θ sin2 φ + R2 sin2 θ cos2 φ
+ (R̂ cos θ − θ̂θ sin θ )4
= R̂(sin θ cos φ sin2 φ − sin θ sin φ cos2 φ + 4 cos θ )
+ θ̂θ(cos θ cos φ sin2 φ − cos θ sin φ cos2 φ − 4 sin θ )
− φ̂φ(cos3 φ + sin3 φ ),
h√ √ i
P4 (1, −1, 2) = P4 1 + 1 + 4, tan−1 ( 1 + 1/2), tan−1 (−1/1)
√
= P4 ( 6, 35.26◦ , −45◦ ),
D(P4 ) = R̂(sin 35.26◦ cos 45◦ sin2 45◦ − sin 35.26◦ sin(−45◦ ) cos2 45◦ + 4 cos 35.26◦ )
+ θ̂θ(cos 35.26◦ cos 45◦ sin2 45◦ − cos 35.26◦ sin(−45◦ ) cos2 45◦ − 4 sin 35.26◦ )
− φ̂φ(cos3 45◦ + sin3 45◦ )
= R̂ 3.67 − θ̂θ 1.73 − φ̂φ 0.707.