You are on page 1of 4

Department of Electrical Engineering and Computer Science

EEL 3470 Electromagnetic Fields


Homework Set No. 1 Please turn in your answers, MatLab files and results. Each group should turn in ONLY one set of homework. Print these pages and write your answers. After that, attach your MatLab files and results. Names: __________________ ___________________ ___________________

Problem 1. (1) Give two vectors A=3ax+4ay+5az and B=-5ax+4ay-3az , find C=A+B and D =A -B . In addition, carefully illustrate these vectors using Matlab. (2) Using the vectors defined in (1), Use Matlab to evaluate AB and A and also illustrate (3) Find the angle between vectors A and B. Answer: (1) (2) (3) Problem 2. (1) Find the area of triangle PQS where P, Q, and S are at (1, -2, 3), (-4, 2,5) and (2,1,-4), also illustrate the triangle; (2) Find the three inner angles of this triangle; (3) Find the vertical distance from point S to line PQ; (4) Find a unit vector that is perpendicular to triangle PQS; (5) Find the length of the perimeter of the triangle; (6) If E is the midpoint between P and Q, find the unit vector from S to E; (7) If point D is at (0,0,1), find the volume of the tetrahedral PQSD. Answer: (1) (2)

(3) (4) (5) (6) (7) Problem 3. (1) Find the expression of the vector in Cartesian coordinates that extends from P( to S( ; (2) Find the distance between P and S; Answer: (1) (2) Problem 4. (1) Express the field cylindrical coordinate; (2) Express the above field in spherical coordinate; (3) Find at ( and Answer: (1) (2) (3) Problem 5. Use MatLab to do the following: (1) Find the volume defined by (2) Find the total area of the surface. Answer: (1) (2) Problem 6. Use MatLab to do the following: (1) Find the volume defined by ; (2) Find the total area of the surface. Answer: (1) (2) ; in

Problem 7. (1) Evaluate the line integral of the vector function A=xax +x ay +xyzaz around the square contour C (as indicated by the following figure). Integrate A over the surface bounded by C. Show that this example satisfies Stokess theorem.

1 y C 1

(2) Redo the above problem, but the contour is defined by the following MatLab code: O = [0 0]; P = [2 0]; Q = [1 1]; hold on; arrow3(O,P,'r2',0.05,0.25); arrow3(P,Q,'r2',0.05,0.25); arrow3(Q,O,'r2',0.05,0.25); hold off. Answer: (1) (2)

Problem 8. (1) Evaluate the closed-surface integral of the vector A xyzax xyzay xyzaz over the cubical surface as shown in the figure below
z

(2) Also calculate (

and check Gausss Theorem.

Problem 9. (1) Evaluate the closed surface integral over the region defined by . (2) Also calculate ( Answer: (1) (2) )

for vector field

and check Gausss Theorem.

You might also like