Vectors and Their Components

Vectors and Their Components
- A Vector is a quantity that has both magnitude and direction such as velocity.
- A Scalar has magnitude but no direction such as speed.
- Two vectors are equal to each other as long as they have the same size and direction
- Vectors can be written in terms of their components based on different coordinate systems
- The most common coordinate system is XYZ -coordinate system which is also known as Cartesian coordinate system.
- Theses components are the shadow of the vector on different axis of the coordinate system
- A given vector a in 2D space is shown as:
- where vectors , i^ and j^ are basic unit vectors in x and y directions, respectively. These unit vectors are:
- Unit vectors are vectors with length equal to 1 which are used to show directions.
- axand ayare called components of vector a

ٰVector's Magnitude
Magnitude of a 2D Vector
We can calculate the magnitude (a.k.a. length or size) of a vector in 2D using Pythagorean's Theorem:

Magnitude of a 3D Vector
Similarly, We can calculate the magnitude of a vector in 3D using an extension of this formula.

Components of a Vector Using the Angle It Makes Respect to x or y Axis
In many problems we need to find the components of a vector along different directions. For these problems we use trigonometric relationship using right triangle formed by the vector as the hypotenuse and components as the two other sides of the triangle.
Example:
Consider the following vector which makes an angle of θrespect to the x-axis (horizontal direction)

Components of this vector along x and y directions could be found as:
We can find the length of this vector and the angle it makes respect to horizontal x-axis using the following equation:
- Length of a vector in 2-D space is equal to:
- The direction of a vector usually is reported by the angle it makes with positive x-axis (Counter-clockwise) using following formula:

Example: Vector Connecting Two Points
If A(1,2) and B(−1,3), calculate AB, length of AB and the angle it makes with positive x-axis.
Solution:
AB=B−A ==(−1,3)−(1,2)(−1−1,3−2)=(−2,1)

AB=(−2)2+12=5
θ=180−tan−1ABxABy=180−tan−1−21=153.43°