In this explainer, we will learn how to find the - and -components of a vector given its magnitude and the angle between the vector and one of the axes.

A **scalar** quantity is a quantity that just has a *magnitude*; it is
just a *size* or an *amount*. One example of a scalar quantity
in physics is mass.

A **vector** quantity is a quantity that has both a *magnitude*
and a *direction*. One example of a vector quantity in physics is velocity. Velocity represents *how fast* an object is moving and in
*what direction*.

We can represent vectors graphically using arrows. The length of the arrow represents the magnitude of the vector, and the direction of the arrow represents the direction of the vector.

The diagram below shows a vector represented by an arrow.

The magnitude of the vector is 6.4 cm, and the direction of the vector is counterclockwise from the positive -axis.

The angle counterclockwise from the positive -axis to the
vector is called the **argument** of the vector.

There is another way of representing a vector, however. We can represent a
vector in terms of its **components**. The **-component**,
or the **horizontal component**, of a vector is the size of the vector in the
-direction. The **-component**, or
the **vertical component**, of a vector is the size of the vector in the
-direction.

The diagram below shows the same vector as the diagram above, but with a grid drawn on it. The length and width of each grid square are 1 cm.

We can see that the size of the vector in the -direction is 4 grid squares, or 4 cm, and the size of the vector in the -direction is 5 grid squares, or 5 cm. These are the - and -components of the vector.

We could simply notate these components as a pair of values, that is,
, but a more useful way of notating them is
using **unit vectors**.

A **unit vector** is a vector that has a magnitude of 1. Conventionally,
we use the symbol to represent a unit
vector along the -axis and the symbol
to represent a unit vector along the
-axis. These two unit vectors are shown in the diagram
below.

We can make the blue vector in the diagram above by adding together multiples of the two unit vectors, and , as shown below.

The blue vector is equal to 4 of and 5 of added together. We can write this algebraically as

In fact, we can represent any vector in this way. For a vector , if we say that is the value of the -component of the vector and is the value of the -component, then

This is how we can work out the components of a vector and write the vector in component form using unit vector notation when we are given a grid. But if we are given the magnitude and argument of a vector, we can instead work out its components using trigonometry.

Any vector makes a right triangle with the -axis, as shown below.

If is the angle between the vector and the
-axis, then the *adjacent* side of the triangle is the
horizontal length of the vector, the *opposite* side of the triangle is the
vertical length of the vector, and the *hypotenuse* is the magnitude of the
vector.

Recall that

We can rearrange this to make the adjacent side of the triangle the subject of the equation:

Since the adjacent side of the triangle is equal to the horizontal component of the vector, , and the hypotenuse is equal to the magnitude of the vector, which we will just call , this is the same as writing

Similarly, recall that

We can rearrange this to make the opposite side of the triangle the subject of the equation:

Since the opposite side of the triangle is equal to the vertical component of the vector, , and the hypotenuse is equal to the magnitude of the vector, , this is the same as writing

We can use these two relations to find the horizontal and vertical components of a vector given its magnitude and argument.

### Example 1: Finding the Components of a Vector on a Grid

Write in component form.

### Answer

Looking at the grid, we can see that the vector has a horizontal length of 6 grid squares and a vertical length of 3 grid squares.

Recall that we can express any vector as a sum of multiples of unit vectors in the - and -directions: where is the horizontal component of the vector, is the vertical component of the vector, is a unit vector along the positive -axis, and is a unit vector along the positive -axis.

Looking at the diagram again, we see that the vector points in the positive
-direction, so its horizontal component is 6, but in the
negative -direction, so while its vertical
*length* is 3, its vertical *component* is . Therefore,

### Example 2: Finding the 𝑥-Component of a Vector given Its Magnitude and Argument

The diagram shows a vector that has a magnitude of 22. The angle between the vector and the -axis is . Work out the horizontal component of the vector. Give your answer to the nearest integer.

### Answer

Recall that we can use the formula where is the magnitude of the vector and is the argument of the vector, to find the horizontal component of the vector, .

Substituting in the values given in the question, we get

Rounded to the nearest integer, this is 18.

### Example 3: Finding the Components of a Vector given Its Magnitude and Argument

The diagram shows a vector, , that has a magnitude of 91. The angle between the vector and the -axis is . Give this vector in component form. Round all of the numbers in your answer to the nearest whole number.

### Answer

Recall that we can use the formulae where is the magnitude of the vector and is the argument of the vector, to find the horizontal component of the vector, , and the vertical component of the vector, .

In this question, we are given the angle between the vector and the negative
-axis, but the argument of a vector is the angle
counterclockwise from the **positive** -axis. To find
the argument of the vector, we just need to work out
,
which is .

Using this value, as well as the value for the magnitude of the vector given in the question, with the first formula, we get

Rounded to the nearest integer, this is .

Doing the same with the second formula, we get

Rounded to the nearest integer, this is 40. The question asks us to give our answer in component form, which is the form , so our final answer is

### Key Points

- Any vector can be represented as a sum of multiples of unit vectors along the - and -axes. If is the horizontal component of the vector, is the vertical component of the vector, is a unit vector along the -axis, and is a unit vector along the -axis, then
- If a vector has been shown on a grid, we can find the components of the vector by counting the grid squares.
- If we are given the magnitude and argument of a vector, we can find its components using trigonometry. If is the magnitude of the vector and is the argument, where the argument of a vector is the angle counterclockwise from the positive -axis to the vector, then