Lecture 2 Vector Analysis Jang, Min Seok EE204 Fall 2023 Maxwell’s Equations Differential form Integral form π» ⋅ π = ππ ΰΆ» π ⋅ ππ = ΰΆ± ππ ππ£ π π»⋅π=0 π£ ΰΆ» π ⋅ ππ = 0 π ππ π»×π=− ππ‘ π ΰΆ» π ⋅ ππ₯ = − ΰΆ± π ⋅ ππ ππ‘ π πΏ ππ π» × π = ππ + ππ‘ ππ ΰΆ» π ⋅ ππ₯ = ΰΆ± ππ + ⋅ ππ ππ‘ πΏ π π = electric flux density π = electric field ππ = free charge density π = magnetic flux density π = magnetic field ππ = free current density Vector analysis is a mathematical language for EM theory Jang, Min Seok | EE204 Electromagnetics I 2 Mathematical Concepts • Scalar and vector • Vector algebra: addition, subtraction, and multiplications • Vector differential operations (gradient, divergence, curl, and Laplacian) • Line, surface and volume integrals • Divergence theorem and Stokes’ theorem • Coordinate systems (Cartesian, cylindrical, spherical) and coordinate transformations Jang, Min Seok | EE204 Electromagnetics I 3 Scalars and Vectors • A scalar is a quantity that has only magnitude (ex) length, area, volume, speed, mass, density, pressure, temperature, energy, entropy, work, power volume • A vector is a quantity that has both magnitude and direction (ex) displacement, velocity, acceleration, momentum, force velocity Jang, Min Seok | EE204 Electromagnetics I 4 Fields • A field is a physical quantity that has a value for each point in space (and time) Examples of scalar field: Examples of vector field: - temperature distribution - charge density profile - electric potential - gravitational force - wind flow distribution - electric/magnetic fields Jang, Min Seok | EE204 Electromagnetics I 5 Standard Basis • Standard basis {ππ₯ , ππ¦ , ππ§ }: a set of unit vectors (i.e. ππ = 1) pointing in the π₯, π¦, π§ axes of Cartesian coordinate system • Every vector π in 3D space can be represented uniquely as π = π΄π₯ ππ₯ + π΄π¦ ππ¦ + π΄π§ ππ§ π΄π₯ , π΄π¦ , π΄π§ : components of π in the π₯, π¦, π§ directions Jang, Min Seok | EE204 Electromagnetics I 6 Vector Addition and Subtraction • Addition: π=π+π = π΄π₯ + π΅π₯ ππ₯ + π΄π¦ + π΅π¦ ππ¦ + π΄π§ + π΅π§ ππ§ • Subtraction: π = π − π = π + (−π) = π΄π₯ − π΅π₯ ππ₯ + π΄π¦ − π΅π¦ ππ¦ + π΄π§ − π΅π§ ππ§ Jang, Min Seok | EE204 Electromagnetics I 7 Vector Addition and Subtraction • Basic algebra: Addition Multiplication π+π=π+π ππ = ππ associative π+ π+π = π+π +π π ππ = ππ π distributive π π + π = ππ + ππ commutative π, π, π: vectors, π, π: scalars Jang, Min Seok | EE204 Electromagnetics I 8 Vector Addition and Subtraction • Exercise: Given points π(2,4,6) and π 0,3,8 , find (a) the position vectors of π (π«π ), and π (π«π ). (b) π«π + π«π (c) the displacement vector π«ππ (d) the distance between π and π Answer: (a) π«π = ππ = 2ππ₯ + 4ππ¦ + 6ππ§ , π«π = ππ = 3ππ¦ + 8ππ§ (b) π«π + π«π = 2 + 0 ππ₯ + 4 + 3 ππ¦ + 6 + 8 ππ§ = 2ππ₯ + 7ππ¦ + 14ππ§ (c) π«ππ = ππ = π«π − π«π = 0 − 2 ππ₯ + 3 − 4 ππ¦ + 8 − 6 ππ§ = −2ππ₯ − ππ¦ + 2ππ§ (d) π«ππ = −2 2 + −1 2 + 2 2 =3 Jang, Min Seok | EE204 Electromagnetics I 9 Vector Multiplication: Scalar Product • Scalar product (dot product): π ⋅ π = π΄π΅ cos ππ΄π΅ = π΄π₯ π΅π₯ + π΄π¦ π΅π¦ + π΄π§ π΅π§ π΄ = π , π΅ = π , ππ΄π΅ = smaller angle between π and π. • Scalar projection (or component) of π in the direction of π: π π ⋅ ππ΅ = π ⋅ = π΄ cos ππ΄π΅ π΅ • Basic algebra: commutative distributive π⋅π=π⋅π π⋅ π+π =π⋅π+π⋅π Jang, Min Seok | EE204 Electromagnetics I 10 Vector Multiplication: Scalar Product • Usage in Physics: work(π), force(π ), and displacement (π) π =π ⋅π π=0 • Exercise: application to the law of cosines: π= π2 + π 2 − 2ππ cos π Answer: π 2 = π ⋅ π = π − π ⋅ π − π =π⋅π−π⋅π−π⋅π+π⋅π = π2 − π ⋅ π − π ⋅ π + π 2 = π2 + π 2 − 2π ⋅ π = π2 + π 2 − 2ππ cos π Jang, Min Seok | EE204 Electromagnetics I 11 Vector Multiplication: Vector Product • Vector product (cross product): ππ₯ π × π = π΄π΅ sin ππ΄π΅ ππ = π΄π₯ π΅π₯ ππ¦ π΄π¦ π΅π¦ ππ§ π΄π§ π΅π§ Direction: ππ is a unit vector normal to both π and π. Magnitude: area of the parallelogram having π and π as sides. • Basic algebra: anticommutative π × π = −π × π not associative π× π×π ≠ π×π ×π distributive π× π+π =π×π+π×π Jang, Min Seok | EE204 Electromagnetics I 12 Vector Multiplication: Vector Product • Usage in Physics: Lorentz force (π ) on a moving charge (π) with velocity (π―) under magnetic flux density (π) π = ππ― × π Jang, Min Seok | EE204 Electromagnetics I 13 Vector Multiplication: Triple Products • Scalar triple product: π ⋅ π × π = π ⋅ π × π = π ⋅ (π × π) • Geometrical interpretation of scalar triple product: Volume of parallelepiped having π, π, and π as edges • Vector triple product (BAC-CAB rule): π × π × π = π π ⋅ π − π(π ⋅ π) Jang, Min Seok | EE204 Electromagnetics I 14 Vector Multiplication • Exercise: Let π = 2ππ₯ − ππ§ and π = 2ππ₯ − ππ¦ + 2ππ§ . Determine (a) scalar projection of π along π (b) area of the triangle having π and π as sides (c) unit vector perpendicular to both π and π Answer: π 2 ⋅ 2 + 0 ⋅ −1 + −1 ⋅ 2 2 (a) π ⋅ = = 2 2 2 π 3 2 + −1 + 2 ππ₯ (b) π × π = 2 2 Area = π × π ππ¦ ππ§ 0 −1 = −ππ₯ − 6ππ¦ − 2ππ§ , −1 2 /2 = (−1)2 + (−6)2 + −2 2 /2 = 41/2 π×π 1 =± (ππ₯ + 6ππ¦ + 2ππ§ ) (c) ± π×π 41 Jang, Min Seok | EE204 Electromagnetics I 15 Ordinary Derivatives • A function of one variable: π(π₯) ππ • Ordinary derivative: ππ₯ • Geometrical interpretation: slope of the graph of π vs π₯ π(π₯) π₯ Jang, Min Seok | EE204 Electromagnetics I 16 Del Operator: ∇ • Del operator is the vector differential operator π π π π»= ππ₯ + ππ¦ + ππ§ ππ₯ ππ¦ ππ§ • Three ways the operator π» can act: 1. On a scalar or vector field π: π»π (gradient) 2. On a vector field π via the dot product: π» ⋅ π (divergence) 3. On a vector field π via the cross product: π» × π (curl) Jang, Min Seok | EE204 Electromagnetics I 17 Gradient • Motivation: How to define slope of a multi-variable function? π(π₯, π¦) Jang, Min Seok | EE204 Electromagnetics I 18 Gradient • A scalar field defined in three dimensional space: π(π₯, π¦, π§) • Gradient: ππ ππ ππ π»π = ππ₯ + ππ¦ + ππ§ ππ₯ ππ¦ ππ§ • Geometrical interpretation: Direction: direction of the maximum increase of π Magnitude: maximum slope (rate of increase) of π Jang, Min Seok | EE204 Electromagnetics I 19 Gradient • Usage in Physics: relation between a force field (π ) and a scalar potential field (π) (ex) gravitational and electrostatic fields π = −π»π Why minus sign? Because water flows downhill rather than uphill Jang, Min Seok | EE204 Electromagnetics I 20 Gradient • Exercise: Let π = π₯ 2 − 2π₯ + π¦ 2 . Find (a) gradient of π (b) maximum directional derivative at point π(2,1,2) (c) directional derivative at π toward the origin Answer: ππ ππ ππ (a) π»π = ππ₯ + ππ¦ + ππ§ = 2π₯ − 2 ππ₯ + 2π¦ ππ¦ ππ₯ ππ¦ ππ§ (b) π»π = 2⋅2−2 2 + 2⋅1 2 =2 2 (c) ππ = −2ππ₯ − 1ππ¦ − 2ππ ππ −2, −1, −2 π»π ⋅ = 2,2,0 ⋅ = −2 3 ππ Jang, Min Seok | EE204 Electromagnetics I 21 Divergence and Curl • Motivation: How to describe generation and rotation of a vector field? Jang, Min Seok | EE204 Electromagnetics I 22 Divergence • A vector field defined in three dimensional space: π(π₯, π¦, π§) • Cartesian coordinate: ππ΄π₯ ππ΄π¦ ππ΄π§ π»⋅π= + + ππ₯ ππ¦ ππ§ • Coordinate independent definition: β«ππ ⋅ π πΧ―β¬ π» ⋅ π = lim Δπ£→0 Δπ£ Δπ£ is the small volume enclosed by the closed surface π in which the point of interest π is located Jang, Min Seok | EE204 Electromagnetics I 23 Divergence (Optional) Let π = (π₯0 , π¦0 , π§0 ) ΰΆ» π ⋅ ππ = ΰΆ± +ΰΆ± π front ΰΆ± π ⋅ ππ ≈ π΄π₯ α front ΰΆ± π₯0 + back front +ΰΆ± +ΰΆ± +ΰΆ± left top back π ⋅ ππ ≈ −π΄π₯ α ΰΆ± +ΰΆ± +ΰΆ± ππ¦ππ§ ππ₯ ,π¦ ,π§ 2 0 0 π₯0 − ππ₯ ,π¦ ,π§ 2 0 0 π ⋅ ππ ≈ π΄π₯ α back right π ⋅ ππ bottom (ππ = ππ¦ππ§ ππ₯ ) ππ¦ππ§ π₯0 + ππ₯ ,π¦ ,π§ 2 0 0 − π΄π₯ α π₯0 − ππ₯ ,π¦ ,π§ 2 0 0 ππ΄π¦ ππ₯ππ¦ππ§, ππ¦ ππ¦ππ§ = ππ΄π₯ ππ₯ππ¦ππ§ ππ₯ ππ΄π§ ππ₯ππ¦ππ§ ππ§ Similarly, ΰΆ± +ΰΆ± Therefore, β«ππ ⋅ π πΧ―β¬ 1 ππ΄π₯ ππ΄π¦ ππ΄π§ ππ΄π₯ ππ΄π¦ ππ΄π§ = + + ππ₯ππ¦ππ§ = + + Δπ£→0 Δπ£ ππ₯ππ¦ππ§ ππ₯ ππ¦ ππ§ ππ₯ ππ¦ ππ§ left right π ⋅ ππ ≈ ΰΆ± +ΰΆ± top bottom π ⋅ ππ ≈ lim Jang, Min Seok | EE204 Electromagnetics I 24 Divergence β«ππ ⋅ π πΧ―β¬ π» ⋅ π = lim Δπ£→0 Δπ£ • Geometrical interpretation: π» ⋅ π at a point π is a measure of how much the vector π spreads out (diverges) from π π»⋅π>0 π»⋅π<0 Jang, Min Seok | EE204 Electromagnetics I π» ⋅ π = 0 (solenoidal) 25 Divergence • Usage in Physics: relation between gravitational field (π ) and its source (mass density, ππ ) π» ⋅ π = −4ππΊππ Similarly, electric field (π) and its source (charge density, π) π π»⋅π = π0 π>0 π<0 Jang, Min Seok | EE204 Electromagnetics I 26 Curl • A vector field defined in three dimensional space: π(π₯, π¦, π§) • Cartesian coordinate: ππ₯ π» × π = π/ππ₯ π΄π₯ ππ¦ π/ππ¦ π΄π¦ ππ§ π/ππ§ π΄π§ • Coordinate independent definition: β«π₯π ⋅ π πΏΧ―β¬ π» × π ⋅ ππ = lim Δπ→0 Δπ Δπ is the small area bounded by the closed curve πΏ and ππ is the unit vector normal to Δπ determined by using the right-hand rule. Jang, Min Seok | EE204 Electromagnetics I 27 Curl (Optional) Let π = (π₯0 , π¦0 , π§0 ) and ππ = ππ₯ (i.e. π₯π on π¦π§ plane) ΰΆ» π ⋅ ππ₯ = ΰΆ± + ΰΆ± + ΰΆ± + ΰΆ± πΏ ππ ππ ΰΆ± π ⋅ ππ₯ ≈ π΄π¦ α ππ π₯0 ,π¦0 ,π§0 − ΰΆ± π ⋅ ππ₯ ≈ −π΄π¦ α ππ ΰΆ± +ΰΆ± ππ ππ ππ§ 2 π₯0 ,π¦0 ,π§0 + π ⋅ ππ₯ ≈ π΄π¦ α ππ Similarly, Therefore, ΰΆ± +ΰΆ± ππ ππ π ⋅ ππ₯ ππ ππ¦ ππ§ 2 (ππ₯ = ππ¦ ππ¦ ) ππ¦ π₯0 ,π¦0 ,π§0 − ππ§ 2 π ⋅ ππ₯ ≈ − π΄π¦ α π₯0 ,π¦0 ,π§0 + ππ§ 2 ππ¦ = − ππ΄π¦ ππ¦ππ§ ππ§ ππ΄π§ ππ¦ππ§, ππ¦ β«π₯π ⋅ π πΏΧ―β¬ 1 ππ΄π§ ππ΄π¦ lim = − Δπ→0 Δπ ππ¦ππ§ ππ¦ ππ§ ππ₯ π ππ΄π§ ππ΄π¦ ππ¦ππ§ = − = ππ₯ ππ¦ ππ§ π΄π₯ Jang, Min Seok | EE204 Electromagnetics I ππ¦ π ππ¦ π΄π¦ ππ§ π ⋅ ππ₯ ππ§ π΄π§ 28 Curl β«π₯π ⋅ π πΏΧ―β¬ π» × π ⋅ ππ = lim Δπ→0 Δπ • Geometrical interpretation: π» × π at a point π is a measure of how much the vector π curls around π (Direction: perpendicular to the plane of circulation) π»⋅π=0 π»×π=0 π»⋅π≠0 π»×π=0 π»⋅π=0 π»×π≠0 Jang, Min Seok | EE204 Electromagnetics I π»⋅π≠0 π»×π≠0 29 Curl • Usage in Physics: relation between magnetic flux density (π) and vector potential field (π) π=π»×π Relation between a magnetic flux density (π) and its source (current density π) π» × π = π0 π Jang, Min Seok | EE204 Electromagnetics I 30 Divergence and Curl • Exercise: Find the divergence and the curl of the following vector fields: (a) π1 = 3ππ₯ (b) π 2 = π₯ππ₯ + π¦ππ¦ (c) π 3 = −π¦ππ₯ + π₯ππ¦ Answer: (a) π» ⋅ π΄1 = 0, π» × π΄1 = 0 (b) π» ⋅ π΄2 = 2, π» × π΄2 = 0 (c) π» ⋅ π΄3 = 0, π» × π΄3 = 2ππ§ Jang, Min Seok | EE204 Electromagnetics I 31 Laplacian • Laplacian of a scalar field: π π₯, π¦, π§ 2π 2π 2π π π π π» 2 π = π» ⋅ π»π = 2 + 2 + 2 ππ₯ ππ¦ ππ§ • Laplacian of a vector field: π π₯, π¦, π§ π» 2 π = π» 2 π΄π₯ ππ₯ + π» 2 π΄π¦ ππ¦ + π» 2 π΄π§ ππ§ • Usage in Physics: relation between electric potential field (π) and its source (charge density π) π» 2π π = π» ⋅ π»π = −π» ⋅ π = − π0 Jang, Min Seok | EE204 Electromagnetics I 32 Divergence Theorem • Divergence theorem: ΰΆ» π ⋅ ππ = ΰΆ± π» ⋅ π ππ£ π π£ Total outward flux of π through a closed surface π is equal to the volume integral of π» ⋅ π over the volume π£ enclosed by π • Proof: Subdivide volume π£ into arbitrarily large number of tiny cubes. For each cube ΰ· π ⋅ ππ = π» ⋅ πππ£ six surfaces π ⋅ ππ terms cancel (pairwise) for all interior faces and only the contribution of the exterior surfaces survive. ΰ· π ⋅ ππ = exterior surfaces ΰ· π» ⋅ πππ£ ↔ volumes ΰΆ» π ⋅ ππ = ΰΆ± π» ⋅ π ππ£ π π£ Jang, Min Seok | EE204 Electromagnetics I 33 Stokes’ Theorem • Stokes’ theorem: ΰΆ» π ⋅ ππ₯ = ΰΆ± π» × π ⋅ ππ πΏ π Circulation of π around a closed path πΏ is equal to the surface integral of π» × π over the surface π bounded by πΏ. • Proof: Subdivide area π into arbitrarily large number of tiny rectangles. For each rectangle ΰ· π ⋅ ππ₯ = π» × π ⋅ ππ four sides π ⋅ ππ₯ terms cancel for all interior line segments and only the contribution of the exterior line segments survive. ΰ· exterior line segments π ⋅ ππ₯ = ΰ· rectangles π» × π ⋅ ππ ↔ ΰΆ» π ⋅ ππ₯ = ΰΆ± (π» × π) ⋅ ππ πΏ Jang, Min Seok | EE204 Electromagnetics I π 34 Divergence and Stokes’ Theorem • Usage in Physics: relation between differential and integral forms of Maxwell’s equations Divergence theorem: π» ⋅ π = ππ ΰΆ» π ⋅ ππ = ΰΆ± ππ ππ£ π»⋅π=0 ΰΆ» π ⋅ ππ = 0 π π£ π Stokes’ theorem: ππ π»×π=− ππ‘ π ΰΆ» π ⋅ ππ₯ = − ΰΆ± π ⋅ ππ ππ‘ π πΏ ππ π» × π = ππ + ππ‘ ππ ΰΆ» π ⋅ ππ₯ = ΰΆ± ππ + ⋅ ππ ππ‘ πΏ π Jang, Min Seok | EE204 Electromagnetics I 35 Classification of Vector Fields M. C. Escher Non-conservative? • Irrotational: π» × π = 0, β« = π₯π ⋅ π πΏΧ―β¬0, π = −π»π (π: scalar potential) • Solenoidal: π» ⋅ π = 0, β« = ππ ⋅ π πΧ―β¬0, π = π» × π (π : vector potential) • Helmholtz theorem: Any sufficiently smooth and rapidly decaying vector field π can be decomposed into the sum of an irrotational vector field and a solenoidal vector field. π = −π»π + π» × π Jang, Min Seok | EE204 Electromagnetics I 36 Useful Vector Identities • π and π are vector fields and π and π are scalar fields π» π + π = π»π + π»π π»⋅ π+π =π»⋅π+π»⋅π π»× π+π =π»×π+π»×π π» ππ = ππ»π + ππ»π π» ⋅ ππ = ππ» ⋅ π + π ⋅ π»π π» × ππ = π π» × π + π»π × π π» π ⋅ π = π ⋅ π» π + π ⋅ π» π + π × π» × π + π × (π» × π) π»⋅ π×π =π⋅ π»×π −π⋅ π»×π π»× π×π =π π»⋅π −π π»⋅π + π⋅π» π− π⋅π» π π» ⋅ π»π = π» 2 π π» × π»π = 0 π»⋅ π»×π =0 π» × π» × π = π» π» ⋅ π − π»2π Jang, Min Seok | EE204 Electromagnetics I 37