1 Lecture 2: Review of Vector Calculus Instructor: Dr. Gleb V. Tcheslavski Contact: gleb@ee.lamar.edu Office Hours: Room 2030 Class web site: www.ee.lamar.edu/gleb/em/in dex.htm
2 Vector norm Foran n-dimensional vector [... ] x x1 x2 x n p thevector nor m: x x xi ; p 1,2,... p p i Specialcase : x max x i i 2 2 2 2 Mostcommonly used L norm : x x x 2 1 x2... xn 1/ p (2.2.1) (2.2.2) (2.2.3) Example: v = (1, 2, 3) Name Symbol value L 1 norm v 1 6 L 2 norm v 2 14 1/2 3.74 L 3 norm v 3 6 2/3 3.3 L 4 norm v 4 2 1/4 7 1/2 3.15 L norm v 3 Properties: 1. x 0whenx 0; x 0iff x 0 2. kx k x scalark 3. x y x y Norm(x,p) (2.2.4) (2.2.5) (2.2.6)
3 Vector sum
4 Scalar (dot) product Definitions: A B AB cos (2.4.1) A B A B cos A B A B A B A B Scalar projection: (2.4.2) x x y y z z (2.4.3) A B B A Property: (2.4.4) AB projba A cos (2.4.5) B dot(a,b) A 2 u ; B u 2u AB 2 x x y (2.4.6)
5 Vector (cross) product Definitions: AB ABsinu (2.5.1) Properties: A B A B B A (2.5.2) A B 0 A B (2.5.3) In the Cartesian coordinate system: cross(a,b) u u u x y z A B A A A x y z B B B x y z (2.5.4) ( A B A B ) u ( A B A B ) u ( A B A B ) u y z z y x z x x z y x y y x z A 2 u u ; B u 2u C A B 3u z x y x y A CandB C (2.5.5)
6 Triple products 1. Scalar triple product: A BC B C A C A B (2.6.1) 2. Vector triple product: ABC B A C C A B (2.6.2) Note: (2.6.1) represents a circular permutation of vectors. Q: A result of a dot product is a scalar, a result of a vector product is a vector. What is about triple products?
7 Vector fields A vector field is a map f that assigns each vector x a vector function f(x). A vector field is a construction, which associates a vector to every point in a (locally) Euclidean space. A vector field is uniquely specified by giving its divergence and curl within a region and its normal component over the boundary. From Wolfram MathWorld
8 Coordinate systems In a 3D space, a coordinate system can be specified by the intersection of 3 surfaces. An orthogonal coordinate system is defined when these three surfaces are mutually orthogonal at a point. The cross-product of two unit vectors defines a unit surface, whose unit vector is the third unit vector. A general orthogonal coordinate system: the unit vectors are mutually orthogonal
Most commonly used coordinate systems 9 (a) Cartesian; (b) Cylindrical; (c) Spherical. In Cartesian CS, directions of unit vectors are independent of their positions; In Cylindrical and Spherical systems, directions of unit vectors depend on positions.
10 Coordinate systems: Cartesian An intersection of 3 planes: x = const; y = const; z = const Properties: u u u u u u 1; x x y y z z u u u u u u 0. x y x z y z ux uy u z uy uz ux uz ux uy (2.10.1) (2.10.2) (2.10.3) An arbitrary vector: A Axu x Ayu y Azu (2.10.4) z
11 Coordinate systems: Cartesian A differential line element: dl = u x dx + u y dy + u z dz Three of six differential surface elements: ds x = u x dydz ds y = u y dxdz ds z = u z dxdy The differential volume element dv = dxdydz (2.11.1) (2.11.2) (2.11.3)
Coordinate systems: Cylindrical (polar) 12 An intersection of a cylinder and 2 planes Diff. length: Diff. area: dl du du dzu ds ddzu ddzu d du z z (2.12.1) (2.12.2) Diff. volume: dv d ddz (2.12.3) An arbitrary vector: A A u A u Azu (2.12.4) z
13 Coordinate systems: Spherical An intersection of a sphere of radius r, a plane that makes an angle to the x axis, and a cone that makes an angle to the z axis.
14 Coordinate systems: Spherical Properties: u u u r u u u r r u u u (2.14.1) Diff. length: Diff. area: Diff. volume: dl dru rdu rsindu r 2 ds r sinddu r rsindrdu rdrdu 2 dv r sin drd d (2.14.2) (2.14.3) (2.14.4) An arbitrary vector: A Aru r A u A u (2.14.4)
15 System conversions 1. Cartesian to Cylindrical: 2 2 1 y x y ; tan ; z z x 2. Cartesian to Spherical: 2 2 2 2 2 1 x y 1 y r x y z ; tan ; tan z x 3. Cylindrical to Cartesian: x cos ; y sin ; z z 4. Spherical to Cartesian: x rsin cos ; y rsin sin ; z rcos (2.15.1) (2.15.2) (2.15.3) (2.15.4) cart2pol, cart2sph, pol2cart, sph2cart
16 Integral relations for vectors 1. Line integrals: b a F dlor F dl Example: calculate the work required to move a cart along the path from A to B if the force field is F = 3xyu x + 4xu y B B W F dl (3xyu 4 xu ) ( dxu dyu ) B A A A (3xydx 4 xdy) forthe circle : x y 4 2 2 2 x y x y 0 4 2 2 W 3x 16 x dx 4 16 y dy 64 16 4 0
17 Integral relations for vectors (cont) 2. Surface integrals: F dsor F ds F a vector field s At the particular location of the loop, the component of A that is tangent to the loop does not pass through the loop. The scalar product A ds eliminates its contribution. There are six differential surface vectors ds associated with the cube. Here, the vectors in the z-plane: ds = dx dy u z and ds = dx dy (-u z ) are opposite to each other.
18 Integral relations for vectors (cont 2) Example: Assuming that a vector field A = A 0 /r 2 u r exists in a region surrounding the origin, find the value of the closed-surface integral. We need to use the differential surface area (in spherical coordinates) with the unit vector u r since a vector field has a component in this direction only. From (2.14.4): A 2 0 2 A ds u 2 r r sinddu r 4 A0 r 00
19 Integral relations for vectors (cont 3) 3. Volume integrals: v dv v v a scalar quantity Example: Find a volume of a cylinder of radius a and height L L 2 a 2 v dv d ddz a L v z0 0 0
20 Differential relations for vectors 1. Gradient of a scalar function: 1 a 1 a grad a a u1,..., un h1 x1 hn xn Gradient of a scalar field is a vector field which points in the direction of the greatest rate of increase of the scalar field, and whose magnitude is the greatest rate of change. Two equipotential surfaces with potentials V and V+V. Select 3 points such that distances between them P 1 P 2 P 1 P 3, i.e. n l. V V Assume that separation n l between surfaces is small: V dv V un un n dn Projection of the gradient in the u l direction: V dv dv dn dv dv u u cos u ul Vu l dl dn dl dn dn l l n l (2.20.1)
21 Differential relations for vectors (cont) Gradient in different coordinate systems: a a a 1. Cartesian : a u, u, u x y z x y z a 1 a a 2. Cylindrical : a u, u, u z a 1 a 1 a 3. Spherical : a ur, u, u r r rsin z (2.21.1) (2.21.2) (2.21.3) Example: a x y z x y z 2 (,, ) 2 3 sin( ); a a a a u, u, u 2 u, yu, cos( z) u x y z x y z x y z gradient
22 Differential relations for vectors (cont 2) div A lim 2. Divergence of a vector field: v 0 A ds Divergence is an operator that measures the magnitude of a vector field's source or sink at a given point. v (2.22.1) In different coordinate systems: A A x y A 1. Cartesian : A x y z 1 ( A) 1 A A 2. Cylindrical : A z 2 1 ( r ) 1 ( sin ) 1 3. Spherica : A ra A A l r 2 r r sin rsin z z (2.22.2) (2.22.3) (2.22.3) divergence
23 Differential relations for vectors (cont 3) Example: A x y z xu y u z u 2 (,, ) 2 x 3 y sin( ) z; A A x y Az A 2 6y cos( z) x y z Some divergence rules : a 0; ( A A ) A A ; 1 2 1 2 ca c A (2.23.1) (2.23.2) (2.23.3) Divergence (Gauss s) theorem: A ds v A dv (2.23.4)
24 Differential relations for vectors (cont 4) Example: evaluate both sides of Gauss s theorem for a vector field: A = x u x within the unit cube A A x y Az 1; 0; 0. x y z Thevolume integral is: 1/2 1/2 1/2 Adv dxdydz 1 v x1/2 y1/2 z1/2 Theclosed-surface integral is: 1/2 1/2 1/ 2 1/2 A ds x u dzdyu ) x u dzdyu ) x1/2 x x x1/2 x x y1/2 z1/2 y1/2 z1/2 1
25 Differential relations for vectors (cont 5) V V Assume we insert small paddle wheels in a flowing river. The flow is higher close to the center and slower at the edges. Therefore, a wheel close to the center (of a river) will not rotate since velocity of water is the same on both sides of the wheel. Wheels close to the edges will rotate due to difference in velocities. The curl operation determines the direction and the magnitude of rotation.
26 Differential relations for vectors (cont 6) 3. Curl of a vector field: u A dl curl( A) A lim n (2.26.1) s0 s Curl is a vector field with magnitude equal to the maximum "circulation" at each point and oriented perpendicularly to this plane of circulation for each point. More precisely, the magnitude of curl is the limiting value of circulation per unit area. In different coordinate systems: ux uy uz A A z y A A x Az y A x 1. Cartesian : A u u u x y z y z z x x y A A A x y z x y z 1 A A A z z 1 A A 1 A 2. Cylindrical : A u u u z z 1 (sin A) A 1 1 ( r A ) A r 1 ( ra) Ar 3. Spherical : A ur u u rsin r sin r r r curl z (2.26.2) (2.26.3) (2.26.3)
27 Differential relations for vectors (cont 7) Stokes theorem: A dl s A ds The surface integral of the curl of a vector field over a surface S equals to the line integral of the vector field over its boundary. Example: For a v. field A = -xy u x 2x u y, verify Stokes thm. over from(2.26.2) A (2 x) u z 2 2 3 9y 3 9y A ds A dxdyu (2 x) u dxdyu z z z s y0 x0 y0 x0 A dl 3 2 2 9 y 2 9 y dy 91 2 2 y0 3 0 0 0 A dxu A dl A dyu y xyu x 2xu y dxu x dyu y dzu z x x0 y0 arc x0 y3 0 3 2 2 ( xydx 2 xdy) x 9 x dx 2 9 y dy 91 2 arc 3 0 arc (2.27.1)
The Laplacian operator: 28 Repeated vector operations A 0 a 0 a 2 a 2 A ( A) A (2.28.1) (2.28.2) (2.28.3) (2.28.4) a a a x y z 2 2 2 2 a 2 2 2 Cartesian a 2 2 1 1 a a Cylindrical 2 2 2 z 2 a a r sin 2 1 r 1 1 a 2 2 2 2 2 Spherical r r r sin r sin (2.28.5) (2.28.6) (2.28.7)
29 Phasors A phasor is a constant complex number representing the complex amplitude (magnitude and phase) of a sinusoidal function of time. V ( ) 0 for v t V t V e ( ) 0 cos( ) Re ( ) j t dv jt 1 jt Re j V ( ) e ; v dt ' Re V ( ) e dt j Note: Phasor notation implies that signals have the same frequency. Therefore, phasors are used for linear systems j V e Example: Express the loop eqn for a circuit in phasors if v(t) = V 0 cos(t) di 1 v L Ri idt ' dt C i( t) I0 cos( t ) 1 V 0cos( t) I0 L sin( t ) Rcos( t ) sin( t ) C j j t j t v( t) V0cos( t) Re V0e e Re V ( ) e 1 V ( ) R j L I( ) C (2.29.1) (2.29.2) (2.29.3)
30 Conclusions Questions? Ready for your first homework??