In the world of engineering, physical quantities can be divided mainly into scalar and vector. These quantities can be represented by numbers alone (i.e., magnitude only), with the appropriate units, and they are called scalars. Another physical quantity with magnitude and direction are called vectors. Scalars and vectors are the underlying elements in vector analysis.
A scalar is a quantity that is determined by its magnitude. It takes on a numerical value, i.e., a number. Examples of scalars are time, temperature, length, distance, speed, density, energy, and voltage.
A vector is a quantity that has both magnitude and direction. We can say that a vector is an arrow or a directed line segment. For example, a velocity vector has length or magnitude, which is speed, and direction, which indicates the direction of motion (Fig 3.1); a force vector points in the direction in which the force acts and its length is a measure of the force's strength.
A vector (arrow) has a tail, called its initial point, and a tip, called its terminal point. The length of the arrow equals the distance between initial point and terminal point (Fig 3.1). This is called the length (or magnitude) of the vector a and is denoted by ∣a∣. Another name for length is norm (or Euclidean norm). A vector of length 1 is called a unit vector.
DEFINITIONS
The vector represented by the directed line segment AB has initial pointA and terminal pointB and its length is denoted by ∣AB∣. Two vectors are equal if they have the same length and direction.
Fig 3.1: The directed line segment AB is called a vector
DEFINITION
If v is a two-dimensional vector in the plane equal to the vector with initial point at the origin and terminal point (v1,v2), then the component form of v is
v=⟨v1,v2⟩.
If v is a three-dimensional vector equal to the vector with initial point at the origin and terminal point (v1,v2,v3), then the component form of v is
v=⟨v1,v2,v3⟩.
Fig 3.2: The velocity vector of a particle moving along a path (a) in the plane (b) in space. The arrowhead on the path indicates the direction of motion of the particle.
Equality of Vectors - Two vectors a and b are equal, written a=b, if they have the same length and the same direction as shown in Fig. 3.3.
Fig. 3.3 (A) Equal Vectors. (B) – (D) Different Vectors
Let a be a given vector with initial point P: (x1,y1,z1) and terminal point Q: (x2,y2,z2). Then the three coordinate differences
a1=x2−x1,a2=y2−y1,a3=z2−z1
are called the components of the vector a with respect to that coordinate system, and we write simply a=[a1,a2,a3]. See Fig 3.4 (a). The length ∣a∣ of a can now readily be expressed in terms of components and the Pythagorean Theorem we have
∣a∣=a12+a22+a32.
A Cartesian coordinate system being given, the position vector r of a point A: (x,y,z) is the vector with the origin (0,0,0) as the initial point and A as the terminal point (See Fig 3.4 (b)).
Fig 3.4 (a) Components of a vector (b) Position vector r of a point A: (x, y, z)
The vector a with initial point P: (4,0,2) and terminal point Q: (6,−1,2) has the components
a1=6−4=2,a2=−1−0=−1,a3=2−2=0.
Hence a=⟨2,−1,0⟩
Equation gives the length
∣a∣=22+(−1)2+02=5.
If we choose (−1,5,8) as the initial point of a, the corresponding terminal point is (1,4,8).
If we choose the origin (0,0,0) as the initial point of a, the corresponding terminal point is (2,−1,0); its coordinates equal the components of a. This suggests that we can determine each point in space by a vector, called the position vector of the point, as follows.
Two principal operations involving vectors are vector addition and scalar multiplication. A scalar is simply a real number, and is called such when we want to draw attention to its differences from vectors. Scalars can be positive, negative, or zero and are used to "scale" a vector by multiplication.
Addition of Vectors
The sum a+b of two vectors a=[a1,a2,a3] and b=[b1,b2,b3] is obtained by adding the corresponding components,
a+b=[a1+b1,a2+b2,a3+b3].
Geometrically, place the vectors as in Fig. 3.5 (the initial point of b at the terminal point of a); then a+b is the vector drawn from the initial point of a to the terminal point of b. Fig. 3.5 also shows (for the plane) that the "algebraic" way and the "geometric" way of vector addition give the same vector.
Properties (a) and (b) are verified geometrically in Fig. 3.6 and Fig 3.7, respectively. Furthermore, −a denotes the vector having the length ∣a∣ and the direction opposite to that of a.
Fig 3.6 Commutativity of vector addition. Fig 3.7 Associativity of vector addition
Scalar Multiplication (Multiplication by a Number)
The product ca of any vector a=[a1,a2,a3] and any scalar c (real number c) is the vector obtained by multiplying each component of a by c,
ca=[ca1,ca2,ca3].
Geometrically, if a=0 then ca with c>0 has the direction of a and with c<0 the direction opposite to a. In any case, the length of ca is ∣ca∣=∣c∣∣a∣, and ca=0 if a=0 or c=0 (or both) (See Fig 3.8).
Fig 3.8 Scalar multiplication [multiplication of vectors by scalars (numbers)]
A vector v of length 1 is called a unit vector. In this representation, i, j, k are the unit vectors in the positive directions of the axes of a Cartesian coordinate system. The standard unit vectors are
i=⟨1,0,0⟩,j=⟨0,1,0⟩k=⟨0,0,1⟩
Any vector can be written as a linear combination of the standard unit vectors as follows:
From Figure 3.9, we call the scalar (or number) v1 the i-component of the vector v, v2 the j-component, and v3 the k-component. In component form, the vector from P1(x1,y1,z1) to P2(x2,y2,z2) is
P1P2=(x2−x1)i+(y2−y1)j+(z2−z1)k
Fig. 3.9 The vector from P₁ to P₂ is P₁P₂
Whenever v=0, its length ∣v∣ is not zero and
∣v∣1v=∣v∣1∣v∣=1
That is, v/∣v∣ is a unit vector in the direction of v, called the direction of the nonzero vector v.
Let O be the origin and let Ox and Oy be two mutually perpendicular coordinate axes.
Then, the plane containing Ox and Oy is called the xy-plane or the xy-coordinate system and Ox is called the x axis and Oy is y axis.
The vector ∼i is the vector from the origin O to the point (1,0).
The vector ∼j is the vector from the origin O to the point (0,1).
Note:∼i and ∼j are unit vectors and also position vectors.
Any vector ∼v in xy-plane can be represented by ∼v=a∼i+b∼j or ∼v=⟨a,b⟩ where a and b are scalars. The scalars a and b are called the components of the vector ∼v with respect to that coordinate system.
The vector a∼i and vector b∼j are called the vector components in the direction of ∼i and ∼j, respectively.
Notation:
(i) The vector ∼v=a∼i+b∼j can be denoted by ∼v=⟨a,b⟩
(ii) The point P at (a,b) can be denoted by (a,b), P(a,b) or P=(a,b)
(iii) Note that (a,b)=⟨a,b⟩ to avoid confusion. (a,b) represent coordinates of a point. ⟨a,b⟩ represent components of a vector.
(i) The magnitude of ∼v is defined as ∣∼v∣=a2+b2
(ii) The angle between ∼v and a line parallel to the x-axis is defined as θ=tan−1ab
Hint: Identify the quadrant; θ is positive if it is measured in the direction of anti-clockwise; θ is negative if it is measured in the direction of clockwise.
(e) Transformation of Cartesian form of a 2D vector to polar form
By using magnitude and angle of a vector, the Cartesian form of a vector (i.e., ∼v=a∼i+b∼j) can be transformed into polar form (i.e., ∼v=magnitude∣∼v∣(cos(angleθ)∼i+sin(angleθ)∼j))
Thus, we have ∼v=Cartesian domaina∼i+b∼j=Polar domain∣∼v∣(cos(θ)∼i+sin(θ)∼j)
Let O be the origin and let Ox, Oy and Oz be three mutually perpendicular coordinate axes.
Then, the plane containing Ox, Oy and Oz is called the xyz-plane or the xyz-coordinate system (Follow right hand rule) and Ox is called the x axis, Oy is y axis and Oz is z axis.
The vector ∼i is the vector from the origin O to the point (1,0,0).
The vector ∼j is the vector from the origin O to the point (0,1,0).
The vector ∼k is the vector from the origin O to the point (0,0,1).
Note:∼i, ∼j and ∼k are unit vectors and also position vectors.
Any vector ∼v in xyz-plane can be represented by ∼v=a∼i+b∼j+c∼k or ∼v=⟨a,b,c⟩ where a, b and c are scalars. The scalars a, b and c are called the components of the vector ∼v with respect to that coordinate system.
The vector a∼i, vector b∼j and vector c∼k are called the vector components in the direction of ∼i, ∼j and ∼k respectively.
Notation:
(i) The vector ∼v=a∼i+b∼j+c∼k can be denoted by ∼v=⟨a,b,c⟩
(ii) The point P at (a,b,c) can be denoted by (a,b,c), P(a,b,c) or P=(a,b,c)
(iii) Note that (a,b,c)=⟨a,b,c⟩ to avoid confusion. (a,b,c) represent coordinates of a point. ⟨a,b,c⟩ represent components of a vector.
Let ∼v=a∼i+b∼j+c∼k be a 3D vector and let α, β, and γ be the direction angles of ∼v=a∼i+b∼j+c∼k
The magnitude and angle that define vector ∼v can be obtained as following:
(i) The magnitude of ∼v is defined as ∣∼v∣=a2+b2+c2
(ii) The angle between ∼v and a line parallel to the x-axis is defined as α=cos−1∣∼v∣a;
The angle between ∼v and a line parallel to the y-axis is defined as β=cos−1∣∼v∣b;
The angle between ∼v and a line parallel to the z-axis is defined as γ=cos−1∣∼v∣c.
(e) Transformation of Cartesian form of a 3D vector to polar form
By using magnitude and angle of a vector, the Cartesian form of a vector ∼v=a∼i+b∼j+c∼k can be transformed into polar form ∼v=∣∼v∣(cosα∼i+cosβ∼j+cosγ∼k).
Thus, we have ∼v=a∼i+b∼j+c∼k=∣∼v∣(cosα∼i+cosβ∼j+cosγ∼k)
(f) Important remarks for polar form of a 3D vector
(i) The unit vector ∼v^ is ∣∼v∣∼v=(cosα∼i+cosβ∼j+cosγ∼k) or ⟨cosα,cosβ,cosγ⟩
(ii) Magnitude of a unit vector, ∼v^ is 1. Thus, we get cos2α+cos2β+cos2γ=1
(iii) The direction angles of negative vector, −∼v are π−α, π−β, π−γ
(iv) Have a clear definition for the following term:
Direction angles
Direction cosines
Direction ratio
α, β, and γ are called the direction angles of ∼v
cosα, cosβ, and cosγ are called the direction cosines of ∼v
The ratios a:b:c is called the direction ratio of ∼v
For polar coordinate ∼v=∣∼v∣(cosα∼i+cosβ∼j+cosγ∼k)
For Cartesian coordinate ∼v=a∼i+b∼j+c∼k
Additional remarks:
(i) If cos2α+cos2β+cos2γ=1, then there does not exist a unit vector with the direction cosines ⟨cosα,cosβ,cosγ⟩.
Note: because unit vector has magnitude of 1.
(ii) Two vectors ∼u and ∼v have the same direction cosines if and only if they have the same direction.
Note: Different direction cosines shows different directions.
(iii) Two vectors ∼u and ∼v have the same direction ratios if and only if they are parallel (i.e. ∼u and ∼v are in the same direction or in opposite directions).
Note: As explained by the scalar multiplication and parallel vector.
Let u, v and w be position vectors of the points U(2,3,1), V(0,−5,1) and W(−3,0,0), respectively. Find
(i) ∼z=∼u−2∼v+3∼w
(ii) transform ∼z from Cartesian domain (i.e., a∼i+b∼j+c∼k) to Polar domain (i.e., r(cosα∼i+cosβ∼j+cosγ∼k) where r is its magnitude.
(iii) the angle between ∼z and Ox
(iv) direction cosines of ∼z in three directions ∼i, ∼j and ∼k.
(v) unit vector of ∼z
(vi) If given direction angle as following, can you identify whether the vector with the following direction cosine (cosα∼i+cosβ∼j+cosγ∼k) is exist or not?
------ vector ∼m has direction angle α, β, and γ of (π/4,2π/3,π/3).
------ vector ∼n has direction angle α, β, and γ of (π/2,π/3,π/3).
(vii) Find the direction cosines of negative vector −∼z. Then find the relationship between the direction cosines of vector ∼z and −∼z.
Using scalar fields instead of vector fields is of a considerable advantage because scalar fields are easier to use than vector fields. It is the "gradient" that allows us to obtain vector fields from scalar fields, and thus the gradient is of great practical importance to the engineer. Gradients are useful in several ways, notably in giving the rate of change of in any direction in space, in obtaining surface normal vectors, and in deriving vector fields from scalar fields.
Gradient
The setting is that we are given a scalar function f(x,y,z) that is defined and differentiable in a domain in 3-space with Cartesian coordinates x, y, z. We denote the gradient of that function by gradf or ∇f (read nablaf). Then the gradient of f(x,y,z) is defined as the vector function
gradf=∇f=[∂x∂f,∂y∂f,∂z∂f]=∂x∂fi+∂y∂fj+∂z∂fk
The notation ∇f is suggested by the differential operator∇ (read nabla) defined by
From gradient we know that the partial derivatives give the rates of change of f(x,y,z) in the directions of the three coordinate axes. It seems natural to extend this and ask for the rate of change of in an arbitrary direction in space. This leads to the concept of directional derivative.
Directional Derivative
The directional derivative Dbf or df/ds of a function f(x,y,z) at a point P in the direction of a vector b is defined by Figure 3.10
Dbf=dsdf=lims→0sf(Q)−f(P).
Here Q is a variable point on the straight line L in the direction of b, and ∣s∣ is the distance between P and Q. Also, s>0 if Q lies in the direction of b (as in Fig. 3.10), s<0 if Q lies in the direction of −b, and s=0 if Q=P.
Fig. 3.10 Directional Derivative (Refer to above Equation)
The above equation can be derived into
(dsdf)b,P=Gradient of f at P[(∂x∂f)Pi+(∂y∂f)Pj]⋅Direction b[b1i+b2j]
DEFINITION
The gradient vector (gradient) of f(x,y) at a point P0(x0,y0) is the vector
∇f=∂x∂fi+∂y∂fj
obtained by evaluating the partial derivatives of f at P0.
The notation ∇f is read "grad ƒ" as well as "gradient of ƒ" and "del ƒ." The symbol ∇ by itself is read "del." Another notation for the gradient is grad ƒ.
The Directional Derivative Is a Dot Product
If f(x,y) is differentiable in an open region containing P(x,y), then
Find the derivative of f(x,y)=xey+cos(xy) at the point (2,0) in the direction of v=3i−4j.
Solution
The direction of v is the unit vector obtained by dividing v by its length:
u=∣v∣v=5v=53i−54j.
Picture ∇f as a vector in the domain of f. The figure shows a number of level curves of f. The rate at which f changes at (2, 0) in the direction u = (3/5)i − (4/5)j is ∇f · u = −1
From a scalar field we can obtain a vector field by the gradient. Conversely, from a vector field we can obtain a scalar field by the divergence or another vector field by the curl.
To begin, let v(x,y,z) be a differentiable vector function, where x, y, z are Cartesian coordinates, and let v1, v2, v3 be the components of v. Then the function
divv=∂x∂v1+∂y∂v2+∂z∂v3
is called the divergence of v or the divergence of the vector field defined byv. For example, if
With understanding that the "product" (∂x∂)v1 in the dot product means the partial derivative ∂x∂v1, etc. This is a convenient notation, but nothing more. Note that ∇.v means the scalar div v, whereas ∇f means the vector grad f.
Let us turn to the more immediate practical task of gaining a feel for the significance of the divergence. Let f(x,y,z) be a twice differentiable scalar function. Then, its gradient exists
v=gradf=[∂x∂f,∂y∂f,∂z∂f]=∂x∂fi+∂y∂fj+∂z∂fk
and we can differentiate once more, the first component with respect to x, the second with respect to y, the third with respect to z, and then form the divergence,
divv=div(gradf)=∂x2∂2f+∂y2∂2f+∂z2∂2f.
Hence, we have the basic result that the divergence of the gradient is the Laplacian
Let v(x,y,z)=[v1,v2,v3]=v1i+v2j+v3k be a differentiable vector function of the Cartesian coordinates x, y, z. Then the curl of the vector function v or of the vector field given by v is defined by the "symbolic" determinant
This is the formula when x, y, z are right-handed. If they are left-handed, the determinant has a minus sign in front. Instead of curl v one also uses the notation rot v or rotation of v.
Gradient fields are irrotational.That is, if a continuously differentiable vector function is the gradient of a scalar function f, then its curl is the zero vector,
curl(gradf)=0.
Furthermore, the divergence of the curl of a twice continuously differentiable vector functionvis zero,