A 2D vector is a pair of numbers that tells you horizontal change and vertical change at the same time. If v=(3,4)v = (3, 4), the vector goes 33 units right and 44 units up, so it has both a length and a direction. Once that picture is clear, magnitude, direction, and vector operations all follow naturally.

If you only remember one idea, remember this: a vector is not just a length. Direction is part of the quantity, so the arithmetic has to keep track of both components.

What a 2D vector means in coordinates

In the plane, a vector is usually written as

v=(x,y)v = (x, y)

The first component shows horizontal change. The second component shows vertical change. You can think of the vector as an arrow from the origin to the point (x,y)(x, y), or as a movement with the same size and direction starting anywhere in the plane.

That is why vectors are useful in geometry, physics, and graphics. They describe quantities such as displacement, velocity, and force, where direction matters as much as size.

How to find the magnitude of a 2D vector

In the usual Euclidean plane, the magnitude of v=(x,y)v = (x, y) is

v={x2+y2}|v| = \sqrt\{x^2 + y^2\}

This comes directly from the Pythagorean theorem. The magnitude tells you how long the vector is, not where it points.

For example, if v=(3,4)v = (3, 4), then

v={32+42}={25}=5|v| = \sqrt\{3^2 + 4^2\} = \sqrt\{25\} = 5

So the vector has length 55. This is the same right-triangle idea behind the distance formula.

How direction works in 2D

Direction in 22D is often described by an angle θ\theta measured from the positive xx-axis. If the vector is nonzero and x0x \ne 0, you can start from

tanθ=yx\tan \theta = \frac{y}{x}

but that is only a starting point. You still have to choose the angle that matches the correct quadrant.

That condition matters because (1,1)(1, 1) and (1,1)(-1, -1) give the same tangent value, but they point in opposite directions. In calculator or programming settings, a quadrant-aware function such as atan2(y,x)\operatorname{atan2}(y, x) is often the safer way to find the angle.

The zero vector (0,0)(0, 0) is a special case. Its magnitude is 00, and it does not have one unique direction.

Basic 2D vector operations

Most basic operations work component by component.

For addition,

(a,b)+(c,d)=(a+c,b+d)(a, b) + (c, d) = (a + c, b + d)

For subtraction,

(a,b)(c,d)=(ac,bd)(a, b) - (c, d) = (a - c, b - d)

For scalar multiplication,

k(a,b)=(ka,kb)k(a, b) = (ka, kb)

These rules are simple, but their meaning matters. Addition combines two directed changes into one new directed change. Subtraction compares one vector with another. Scalar multiplication changes the size, and if k<0k < 0, it also reverses direction.

Worked example with magnitude, direction, and addition

Let

u=(3,4),v=(1,2)u = (3, 4), \qquad v = (-1, 2)

Start with the magnitude of uu:

u={32+42}=5|u| = \sqrt\{3^2 + 4^2\} = 5

Its direction angle is in Quadrant I, so

θ=tan1(43)53.1\theta = \tan^{-1}\left(\frac{4}{3}\right) \approx 53.1^\circ

Now add the vectors component by component:

u+v=(3+(1),4+2)=(2,6)u + v = (3 + (-1), 4 + 2) = (2, 6)

The result is another vector, not a single number. Its magnitude is

u+v={22+62}={40}=2{10}|u + v| = \sqrt\{2^2 + 6^2\} = \sqrt\{40\} = 2\sqrt\{10\}

This shows the main pattern. Components tell you how the vector moves, magnitude gives its length, direction gives its angle, and addition creates a new vector with its own length and direction.

Common mistakes when working with 2D vectors

Adding lengths instead of vectors

u+v|u| + |v| is not the same as u+v|u + v|. Those are different quantities unless the vectors point in exactly the same direction.

Using tan1(y/x)\tan^{-1}(y/x) without checking the quadrant

The ratio yx\frac{y}{x} alone does not tell you the full direction. You need the signs of both components to place the angle correctly.

Forgetting what scalar multiplication does

Multiplying by 22 doubles the length. Multiplying by 2-2 doubles the length and flips the direction.

Treating the zero vector like an ordinary direction

The vector (0,0)(0, 0) has no unique direction, so angle-based reasoning does not work the same way there.

Where 2D vectors are used

2D vectors appear whenever motion or change in a plane matters. Common examples include displacement on a map, velocity in two directions, forces on a flat surface, and movement in computer graphics.

They also give a clean bridge to later topics such as dot product, projections, and polar coordinates, because all of those build on the same component idea.

Try your own version

Try your own version with u=(2,1)u = (2, -1) and v=(4,3)v = (4, 3). Find the magnitude of each vector, add them, and decide which quadrant the result points into.

If you want to go one step further, solve a similar problem where both components are negative. That is a quick way to test whether you really understand direction, not just magnitude.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →