Upload
vohanh
View
221
Download
0
Embed Size (px)
Citation preview
6/22/2018
1
Vector CalculusReview
EE3321
Electromagnetic Field Theory
Course InstructorDr. Raymond C. RumpfOffice: A-337Phone: (915) 747-6958E-Mail: [email protected]
Outline
• Mathematical Preliminaries– Phasors, vectors, notation
• Math with Vectors
• Coordinate Systems– Notation, differentials
• Visualization of Fields & Operations
• Important Concepts
Vector Calculus Review
6/22/2018
2
Mathematical Preliminaries
Phasors (1 of 2)
Vector Calculus Review
A time-harmonic function can be written as
cosy t A t
Recall Euler’s Identity
cos sinje j
This let’s us write the function y(t) as
Re j ty t Ae
6/22/2018
3
Phasors (2 of 2)
Vector Calculus Review
In linear systems, frequency does not change.
We can express time-harmonic signals without explicitly using the frequency term .
This compact notation is a phasor.
jY Ae
Polar Vs. Rectangular Form
Vector Calculus Review
A phasor in polar form is written as
or jY Ae A
The same phasor written in rectangular form is
Y j
Rect Polar Polar Rect
2 2
1tan
A
cos
sin
A
A
6/22/2018
4
Phasor Arithmetic
Vector Calculus Review
Addition
1 2 1 2 1 2F F j
Subtraction
1 2 1 2 1 2F F j
Multiplication
1 2 1 2 1 2F F A A
Division
1 2 1 2 1 2F F A A
Scalars & Vectors
Vector Calculus Review
Scalar NumbersScalars contain only one piece of information, magnitude. Scalars can be real or complex. Phasors are scalar quantities.
Examples: 7, , -1.34, etc.
VectorsVectors have both a magnitude and a direction.
Examples: Velocity, force, electromagnetic fields
6/22/2018
5
Vector Notation
Vector Calculus Review
Parallel to paper Out of paperThink of seeing the point of an arrow
Into the paperThink of seeing the back of an arrow
direction
Note: Despite the arrow extending away from the point, a vector is describing something at that specific point and it does not actually extend outward.
What Can Vectors Convey?
Vector Calculus Review
Position Distance Disturbance
Position relative to the origin.
Vectors can indicate distance, but the origin is not given.
A vector can represent a directional disturbance. Thank of this as a push.
6/22/2018
6
Simple Vector Calculations
Vector Calculus Review
3D Vector
ˆ ˆ ˆx y zA A x A y A z
Vector Magnitude
2 2 2x y zA A A A
Unit Vector
ˆ AA
A
Math With Vectors
6/22/2018
7
Visualization of Vector Addition & Subtraction
Vector Calculus Review
Vector Addition Vector Subtraction
U
V
U V
x
y
UV
U V
x
y
Vector Addition & Subtraction
Vector Calculus Review
Cartesian Cylindrical Spherical
ˆ ˆ ˆ
ˆ ˆ ˆ
x x y y z z
x x y y z z
U U a U a U a
V V a V a V a
Starting Vectors
ˆ
ˆ
ˆ
x x x
y y y
z z z
U V U V a
U V a
U V a
Addition
ˆ
ˆ
ˆ
x x x
y y y
z z z
U V U V a
U V a
U V a
Subtraction
ˆ ˆ ˆ
ˆ ˆ ˆ
z z
z z
U U a U a U a
V V a V a V a
Starting Vectors
ˆ
ˆ
ˆz z z
U V U V a
U V a
U V a
Addition
ˆ
ˆ
ˆz z z
U V U V a
U V a
U V a
Subtraction
ˆ ˆ ˆ
ˆ ˆ ˆ
r r
r r
U U a U a U a
V V a V a V a
Starting Vectors
ˆ
ˆ
ˆ
r r rU V U V a
U V a
U V a
Addition
ˆ
ˆ
ˆ
r r rU V U V a
U V a
U V a
Subtraction
6/22/2018
8
The Dot Product,
Vector Calculus Review
A B
The dot product is all about projections. That is, calculating how much of one vector lies in the direction of another vector.
cos
x x y y z z
A B A B
A B A B A B
A
B
Projection of onto
Vector Calculus Review
A
B
2
DirectionMagnitudeˆB
B
BA BB
B B A BA A B
B B B
A
B
BA
6/22/2018
9
Projection of onto
Vector Calculus Review
B
A
A
B
AB
2
DirectionMagnitudeˆA
A
AB AA
A A B AB B A
A A A
The Dot Product Test
Vector Calculus Review
We can use the dot product to test of two vectors are perpendicular. If they are, the component of one along the other must be zero.
0 when A B A B
6/22/2018
10
The Cross Product,
Vector Calculus Review
A B
The cross product is all about area and calculating vectors that are perpendicular to and .
ˆsin nA B A B a
A
B
A
B
90°
90°
Area A B
ˆ is a unit vector perpendicular
to the plane defined by and .
na
A B
A B
Calculating Cross Products (1 of 2)
Vector Calculus Review
Suppose we wish to calculate the cross product .A B
ˆ ˆ ˆ ˆˆ
x y z x y
x y z x y
x y z x y
A A A A A
B B B B B
ˆ ˆ ˆx y zA A x A y A z
ˆ ˆ ˆx y zB B x B y B z
Step 1 – Construct an augmented matrix.
First two columns are repeated outside of the matrix.
6/22/2018
11
Calculating Cross Products (2 of 2)
Vector Calculus Review
Step 2 – Multiply elements along the diagonals.
ˆ
ˆ
ˆ
y x
z y
x z
A B z
A B x
A B y
ˆ
ˆ
ˆ
x y
z x
y z
A B z
A B y
A B x
Step 3 – Make left-hand side products negative.
Step 4 – Add up all of the products.
ˆ ˆ ˆy z z y z x x z x y y xA B A B A B x A B A B y A B A B z
The Cross Product Test
Vector Calculus Review
We can use the cross product to test of two vectors are parallel. If they are, the cross product will be zero because the angle between the vectors is zero.
0 when ||A B A B
6/22/2018
12
Vector Algebra Rules
Vector Calculus Review
Commutative Laws
A B B A
Distributive Laws
A B C A B A C
Self-Product2
A A A
A B B A
A B C A B A C
0A A
Associative Laws
A B C A B C
Vector Triple Products
Vector Calculus Review
Scalar Triple ProductThe scalar triple product is the volume of a parallelpiped.
B C A C A B A B C
Vector Triple ProductThe vector triple product arises when deriving the wave equation.
A B C B A C C A B
6/22/2018
13
Coordinate Systems
Types of Integrations
Vector Calculus Review
L
d
L
d
S
ds
S
ds
V
dv
v
dV
Ordinary Line Integral
Closed-Contour Line Integral
Ordinary Surface Integral
Closed-Contour Surface Integral
Ordinary Volume Integral
Closed-Contour Volume Integral
L
L
S
S
V
?
6/22/2018
14
Cartesian Coordinates
Vector Calculus Review
Image courtesy of Wikipedia.
Cartesian Differentials (1 of 2)
Vector Calculus Review
x
y
z
dy dx
dz
dv dxdydz
6/22/2018
15
Cartesian Differentials (2 of 2)
Vector Calculus Review
x
y
z
dy dx
dz
dv dxdydz
ˆz zds dxdya
ˆy yds dxdza
Cylindrical Coordinates
Vector Calculus Review
Image courtesy of Wikipedia.
6/22/2018
16
Cylindrical Differentials (1 of 2)
Vector Calculus Review
x
y
z
d
d
dz
dv d d dz
d d
Cylindrical Differentials (2 of 2)
Vector Calculus Review
x
y
z
d
d
dz
dv d d dz
ˆz zds d d a
ˆds d dza
ˆds d dza
d d
6/22/2018
17
Spherical Coordinates
Vector Calculus Review
Image courtesy of Wikipedia.
Spherical Differentials
Vector Calculus Review
0
0
0 2
r
6/22/2018
18
Summary of Differentials
Vector Calculus Review
Cartesian Coordinates
Cylindrical Coordinates
Spherical Coordinates
Visualization of Fields &
Operations
6/22/2018
19
Scalar Field Vs. Vector Field
Vector Calculus Review
magnitude , ,x y z
magnitude , ,
direction , ,
x y z
x y z
Scalar Field, ,f x y Vector Field, ,v x y
Alternate Visualization of a Vector Field
Vector Calculus Review
Arrows convey magnitude and direction. Background color also conveys magnitude.
6/22/2018
20
Isocontour Lines
Vector Calculus Review
Isocontour lines trace the paths of equal value. Closely space isocontours conveys that the function is varying rapidly.
Gradient of a Scalar Field (1 of 3)
Vector Calculus Review
We start with a scalar field…
,f x y
6/22/2018
21
Gradient of a Scalar Field (2 of 3)
Vector Calculus Review
…then plot the gradient on top of it. Color in background is the original scalar field.
,f x y
Gradient of a Scalar Field (3 of 3)
Vector Calculus Review
The gradient will always be perpendicular to the isocontour lines.
6/22/2018
22
Divergence of a Vector Field (1 of 2)
Vector Calculus Review
Suppose we start with the following vector field…
,A x y
Divergence of a Vector Field (2 of 2)
Vector Calculus Review
We then plot the divergence as the color in the background. The arrows are the original vector function.
,A x y
6/22/2018
23
Curl of a Vector Field (1 of 2)
Vector Calculus Review
Suppose we start with the following vector field…
,B x yy
x
z
y
xz
Curl of a Vector Field (2 of 2)
Vector Calculus Review
y
x
z
y
xz
The color in the background is the magnitude of the curl. The direction is either into, or out of, the screen. Red indicates +z direction while blue indicates –z direction.
,B x y
6/22/2018
24
Summary of Vector Operations
Vector Calculus Review
Operation Input Output
Vector Addition & Subtraction Vectors Vectors
Dot Product Vectors Scalar
Cross Product Vectors Vector
Gradient Scalar Function Vector Function
Divergence Vector Function Scalar Function
Curl Vector Function Vector Function
U V
U V
U V
f
U
U
Important Concepts
6/22/2018
25
Flux
Vector Calculus Review
Flux is the total amount of a vector field that passes straight through a surface.
S
dsA Vector Field A
Normal component counted as flux
Surface S
Tangential component ignored
Stoke’s Theorem
Vector Calculus Review
L S
F d F ds
Stoke’s theorem allows us to write a closed-contour line integral as a surface integral.
6/22/2018
26
Divergence Theorem
Vector Calculus Review
S V
F ds F dv
The divergence theorem allows us to write a closed-contour surface integral as a volume integral.
Curl of Gradient is Zero
Vector Calculus Review
0f
The curl of the gradient of any scalar function is always zero.
Why?
1. The gradient f always points in the direction that f increases.
2. If a vector field as curl, then that vector field forms closed loops.
3. How can a function always be increasing around a closed loop?
M. C. Escher (1898 – 1972)
6/22/2018
27
Product Rule for Divergence
Vector Calculus Review
fA f A A f
ˆ ˆ ˆx x y y z zfA fA a fA a fA a
yx zx y z
AA Af f ff A f A f Ax x y y z z
x y zfA fA fAx y z
yx zx y z
AA A f f ff A A A
x y z x y z
f A
A f