Vector Operations

Vector Scalar Multiplication
Given the vector u=[u1, u2] in R2, we can multiply u by any scalar (number) k.
Albegraically
ku=k[u1, u2]=[ku1, ku2]
Geometrically
The scalar multiple of a vector is a vector that is parallel to the original vector
- If the scalar k is positive, we will get a vector that is in the same direction as the original vector
- If the scalar k is negative, we will get a vector that is in the opposite direction as the original vector
- If the scalar k>1 or k<−1, we get a vector that is stretched
- If the scalar −1<k<1, we get a vector that is compressed (shrunk)
Example
If v=[−1, 4], find −3v and 21v.
−3v=−3[−1, 4]=[−3, −12]
21v=21[−1, 4]=[−21, 2]

Vector Addition
Given the vectors u=[u1, u2] and v=[v1, v2] in R2, we can add the two vectors.
Adding Algebraically
Add component by component
u+v=[u1+v1, u2+v2]
Adding Geometrically (Triangle Rule)
We line up the vectors from "tip to tail" and find the resultant vector from the starting point to the ending point

Example
If u1=[4, 4], u2=[−5, 0], u3=[3, 12], u4=[4, −17], find u1+u2+u3+u4.
[4+(−5)+3+4, 4+0+12+(−17)]=[6, −1]


Vector Subtraction
Given the vectors u=[u1, u2] and v=[v1, v2] in R2, we can subtract the two vectors.
Subtracting Algebraically
Add the negative of the vector
u+(−v)=[u1+(−v1), u2+(−v2)]
or
Subtract component by component
u−v=[u1−v1, u2−v2]
Subtracting Geometrically
We line up the vectors from "tail to tail" and find the resultant vector from the tip of the second vector to the tip of the first vector

Position Vector
The position vector in R2 (or R3) that points from point A to point B is AB=B−A.

Practice: Position Vectors
Given the points A(1, 2, 3), B(0, −4, 1), and C(2, 8, 5), select all of the following statements that is/are true.

Parallelogram Rule
The parallelogram rule is another way to represent vector addition and subtraction.
If we draw a parallelogram with sides u and v, u+v and u−v form the diagonals of the parallelogram.

Finding Magnitudes
We can use the Cosine Law to calculate magnitudes: c2=a2+b2−2abcosθ
- If we line up the vectors from tip to tail, suppose the angle between u and v is θ, then ∣∣u+v∣∣2=∣∣u∣∣2+∣∣v∣∣2−2∣∣u∣∣∣∣v∣∣cosθ

- If we line up the vectors from tail to tail, suppose the angle between u and v is ϕ, then ∣∣u−v∣∣2=∣∣u∣∣2+∣∣v∣∣2−2∣∣u∣∣∣∣v∣∣cosϕ

Finding Angles
We can use the Sine Law to calculate the angles: asinA=bsinB=csinC


Example: Finding Magnitude & Direction
Suppose that u and v are unit vectors that make an angle of 40° with each other.
a) Compute the magnitude of 2u+3v
b) Compute the angle of 2u+3v relative to u
Part a)
Since u and v are unit vectors, their magnitudes are 1:

The diagram below shows 2u+3v. Once we line up the vectors from tip to tail, we see that the angle between the two vectors is 180°−40°=140°

Using the Cosine law, we see that
∣∣u+v∣∣2=∣∣u∣∣2+∣∣v∣∣2−2∣∣u∣∣∣∣v∣∣cos140°:
∣∣u+v∣∣2=22+32−2(2)(3)cos140°
∣∣u+v∣∣2≈4+9−12(−0.766)
∣∣u+v∣∣2≈22.192
∣∣u+v∣∣≈22.192≈4.71
Therefore, the magnitude of 2u+3v≈22.19
Part b)

Using the Sine law, we see that
∣∣v∣∣sinθ=∣∣u+v∣∣sin140°
sinθ=∣∣u+v∣∣sin140°∣∣v∣∣
θ=sin−1(∣∣u+v∣∣sin140°∣∣v∣∣)
θ≈24.17°
Therefore, 2u+3v is 24.17° measured counter clockwise from u
Practice: Finding Magnitudes
Suppose that ∣∣u∣∣=3, ∣∣v∣∣=4, and the angle between the two vectors when placed tail to tail is 60°.
a) Compute ∣∣u+v∣∣
b) Computer ∣∣u−v∣∣
c) Computer ∣∣v−u∣∣
[Enter your answers as exact values, without rounding)

Vector Properties
Given that u, v, w are vectors both in R2 or R3, a, b are scalars.
Justify the following properties.
- Commutative Property for Addition: u+v=v+u
- Associative Property for Addition: (u+v)+w=u+(v+w)
- Distributive Property for Addition: a(u+v)=au+av
- Associative Law for Scalars: (ab)u=a(bu)=b(au)
- Distrobutive Law for Scalars: (a+b)u=au+bu
- There exists a zero vector 0 such that:
- v+0=v
- v+(−v)=0
- Magnitude Properties
- ∣∣av∣∣=∣a∣∣∣v∣∣
- ∣∣u+v∣∣≤∣∣u∣∣+∣∣v∣∣
Can You Answer These?
❓ Can we add a vector in R2 and a vector in R3?
No
❓ If u=2i+j−k and v=i−j, what is u+v?
[2, 1, −1]+[1, −1, 0]=[3, 0, −1]
❓ When will ∣∣u+v∣∣=∣∣u∣∣+∣∣v∣∣?
When u and v are parallel.