A vector has both magnitude (how long) and direction (where it points). Think of a vector as an arrow: the length of the arrow tells you how big it is, and the arrowhead tells you which way it goes.
Example: The velocity of a car moving east at 60 km/h is a vector: \$ \vec{v} = 60\,\text{km/h}\,\hat{\imath} \$.
For vectors lying in the same plane (xy‑plane), we write them as:
\$ \vec{A} = (Ax, Ay) \quad \text{and} \quad \vec{B} = (Bx, By) \$
where \$Ax\$ and \$Bx\$ are the horizontal components, \$Ay\$ and \$By\$ are the vertical components.
| Vector | Components |
|---|---|
| \$\vec{A}\$ | \$(Ax, Ay)\$ |
| \$\vec{B}\$ | \$(Bx, By)\$ |
To add two vectors, add their corresponding components:
\$ \vec{A} + \vec{B} = (Ax + Bx,\; Ay + By) \$
Subtraction is just adding the negative of the second vector:
\$ \vec{A} - \vec{B} = \vec{A} + (-\vec{B}) = (Ax - Bx,\; Ay - By) \$
Let \$ \vec{A} = (3, 4) \$ and \$ \vec{B} = (1, -2) \$.
Step 1: Add components:
\$C_x = 3 + 1 = 4\$
\$C_y = 4 + (-2) = 2\$
Result: \$ \vec{C} = (4, 2) \$
The magnitude: \$|\vec{C}| = \sqrt{4^2 + 2^2} = \sqrt{20} \approx 4.47\$ units.
Direction (angle from +x): \$ \theta = \tan^{-1}\!\left(\frac{2}{4}\right) \approx 26.6^\circ \$.
Let \$ \vec{A} = (5, 0) \$ and \$ \vec{B} = (2, 3) \$.
Step 1: Subtract components:
\$D_x = 5 - 2 = 3\$
\$D_y = 0 - 3 = -3\$
Result: \$ \vec{D} = (3, -3) \$
Magnitude: \$|\vec{D}| = \sqrt{3^2 + (-3)^2} = \sqrt{18} \approx 4.24\$ units.
Direction: \$ \theta = \tan^{-1}\!\left(\frac{-3}{3}\right) = -45^\circ \$ (i.e., 315° from +x).