Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Method · Vectors

Working with vectors in the Cartesian plane

Write the vector as xi+yjx\mathbf{i} + y\mathbf{j}; its magnitude is x2+y2\sqrt{x^{2} + y^{2}} and the unit vector in its direction is 1rr\frac{1}{|\mathbf{r}|}\mathbf{r}.

What this method is for

This method handles a vector once it sits in the Cartesian plane, in component form xi+yjx\mathbf{i} + y\mathbf{j}, or as a column vector (xy)\begin{pmatrix} x \\ y \end{pmatrix}. From that form you can read off everything the Vectors chapter asks for: the horizontal part xx along i\mathbf{i}, the vertical part yy along j\mathbf{j}, the magnitude (length) x2+y2\sqrt{x^{2}+y^{2}}, and the unit vector that points the same way but has length 11.

It answers questions such as 'express AB\overrightarrow{AB} in terms of i\mathbf{i} and j\mathbf{j}', 'find the magnitude of the vector', and 'find the unit vector in the direction of r\mathbf{r}'. Because points and vectors share the same axes, it also turns two coordinates into a directed segment in one clean step.

component form
r=xi+yj\mathbf{r} = x\mathbf{i} + y\mathbf{j}
magnitude
r=x2+y2|\mathbf{r}| = \sqrt{x^{2} + y^{2}}
unit vector
r^=1rr\hat{\mathbf{r}} = \frac{1}{|\mathbf{r}|}\mathbf{r}

When to reach for it

Reach for the Cartesian approach whenever a vector is given in component form, as a column vector, or through the coordinates of points. Tell-tale phrases are 'in terms of i\mathbf{i} and j\mathbf{j}', 'the magnitude of', 'the unit vector in the direction of', or a diagram drawn on labelled xx- and yy-axes.

If the question gives two points AA and BB, first turn them into position vectors and use AB=OBOA\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA} to obtain a single xi+yjx\mathbf{i} + y\mathbf{j}. Once a vector is in components, magnitude and direction become pure arithmetic, nothing needs to be measured off a diagram, which is exactly why the Cartesian form is the reliable one to fall back on under exam pressure.

It is also the form the next skills, such as parallel vectors and ratios, build directly upon.

The steps

  1. 1

    Write the vector in component form

    Put the vector as xi+yjx\mathbf{i} + y\mathbf{j}. From two points, use AB=OBOA\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA}, end minus start.

  2. 2

    Read off the components

    Identify xx (the i\mathbf{i} part) and yy (the j\mathbf{j} part), keeping their signs.

  3. 3

    Find the magnitude

    Apply r=x2+y2|\mathbf{r}| = \sqrt{x^{2} + y^{2}}: square each component, add, then take the positive root.

  4. 4

    Find the unit vector

    Divide the whole vector by its magnitude: r^=1r(xi+yj)\hat{\mathbf{r}} = \frac{1}{|\mathbf{r}|}(x\mathbf{i} + y\mathbf{j}).

  5. 5

    Scale or combine if asked

    For krk\mathbf{r}, multiply each component by kk; to combine vectors, add or subtract matching components.

  6. 6

    Check the result

    A unit vector must satisfy x2+y2=1\sqrt{x^{2}+y^{2}} = 1; a magnitude is always positive.

Worked example

Q1[5 marks]

The points A(1,2)A(1, 2) and B(7,10)B(7, 10) are given. (a) Express AB\overrightarrow{AB} in terms of i\mathbf{i} and j\mathbf{j}.

(b) Find AB|\overrightarrow{AB}|. (c) Find the unit vector in the direction of AB\overrightarrow{AB}.

Show worked solution

Part (a). Write each point as a position vector from the origin and use end minus start.

AB=OBOA=(71)i+(102)j=6i+8j\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA} = (7 - 1)\mathbf{i} + (10 - 2)\mathbf{j} = 6\mathbf{i} + 8\mathbf{j}

Part (b). The magnitude is the square root of the sum of the squares of the two components.

AB=62+82=36+64=100=10|\overrightarrow{AB}| = \sqrt{6^{2} + 8^{2}} = \sqrt{36 + 64} = \sqrt{100} = 10

Part (c). Divide the vector by its magnitude to keep the direction but make the length 11.

r^=110(6i+8j)=35i+45j\hat{\mathbf{r}} = \frac{1}{10}(6\mathbf{i} + 8\mathbf{j}) = \frac{3}{5}\mathbf{i} + \frac{4}{5}\mathbf{j}

So AB=6i+8j\overrightarrow{AB} = 6\mathbf{i} + 8\mathbf{j}, AB=10|\overrightarrow{AB}| = 10, and the unit vector is 35i+45j\frac{3}{5}\mathbf{i} + \frac{4}{5}\mathbf{j}. Quick check: (35)2+(45)2=925+1625=2525=1\sqrt{\left(\frac{3}{5}\right)^{2} + \left(\frac{4}{5}\right)^{2}} = \sqrt{\frac{9}{25} + \frac{16}{25}} = \sqrt{\frac{25}{25}} = 1, so the unit vector really does have length 11.

Common pitfalls

  • Forgetting the square root, leaving the answer as x2+y2x^{2} + y^{2} instead of x2+y2\sqrt{x^{2} + y^{2}}.
  • Reporting a negative magnitude; a length is always zero or positive, so \sqrt{\dots} is the non-negative root.
  • Squaring a negative component wrongly: (4)2=16(-4)^{2} = 16, not 16-16.
  • Dividing only one component by the magnitude when forming the unit vector, instead of the whole vector.
  • Reversing a directed segment by writing OAOB\overrightarrow{OA} - \overrightarrow{OB} in place of OBOA\overrightarrow{OB} - \overrightarrow{OA}.

How a teacher helps

The step that quietly costs marks is the magnitude, students square the components correctly, then forget the root or let a stray minus survive under it. In one-to-one lessons our teachers make you write r=x2+y2|\mathbf{r}| = \sqrt{x^{2}+y^{2}} as a fixed template and read the value straight off, so (4)2(-4)^{2} can never turn into 16-16 and the answer is always the positive root.

We build the unit vector as 'the whole vector divided by its length', then check together that it squares back to 11. Because SPM Add Math uses analytic marking, a correctly set-up 62+82\sqrt{6^{2}+8^{2}} already earns method marks even if the arithmetic slips.

Lessons are taught in English, though the SPM paper is set bilingually. Every teacher on spmaddmath.com.my is experienced, and lessons run online at your own pace.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How do I find the magnitude of a vector?

Use r=x2+y2|\mathbf{r}| = \sqrt{x^{2} + y^{2}}: square each component, add them, and take the positive square root. For 6i+8j6\mathbf{i} + 8\mathbf{j} this gives 36+64=10\sqrt{36 + 64} = 10.

What is a unit vector and how do I find one?

A unit vector has length 11 and points in a chosen direction. Divide the vector by its own magnitude: r^=1rr\hat{\mathbf{r}} = \frac{1}{|\mathbf{r}|}\mathbf{r}.

You can confirm it by checking that x2+y2=1\sqrt{x^{2}+y^{2}} = 1.

How do I get a vector from two points?

Write both as position vectors from the origin, then take end minus start: AB=OBOA\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA}. Subtract the xx-parts and the yy-parts separately.

Can a magnitude be negative?

No. A magnitude is a length, so it is always zero or positive.

The square root in x2+y2\sqrt{x^{2}+y^{2}} is taken as the non-negative root.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply