Components of a Vector: Resolving Into i j k

#Components of a Vector
TL;DR
The components of a vector are its parts along the coordinate axes, v=xi+yj+zk\mathbf{v} = x\mathbf{i} + y\mathbf{j} + z\mathbf{k}. A vector of length AA at angle θ to the x-axis has components Acos⁡θA\cos\theta across and Asin⁡θA\sin\theta up.
Ashish Chauhan·reviewed byMadhukar VLast updated on December 2, 202614 min read

Key Points

  • Scalar components are plain numbers such as x=3x = 3, while vector components are those numbers on unit vectors, such as 3i3\mathbf{i}.
  • In 2D the components of a vector are Ax=Acos⁡θA_x = A\cos\theta and Ay=Asin⁡θA_y = A\sin\theta, with θ measured from the positive x-axis.
  • The vector and its components form a right triangle, so the length is x2+y2\sqrt{x^2 + y^2} in 2D and x2+y2+z2\sqrt{x^2 + y^2 + z^2} in 3D.
  • A negative component means the vector points the negative way along that axis.
  • Vectors add component by component because perpendicular directions never interfere with each other.

Can You Split One Arrow Into Two Simpler Ones?

Push a lawnmower with 120120 N along its handle, and only about 91.991.9 N drives it forward. The handle slopes 40°40° down, so a second part, about 77.177.1 N, presses into the grass. The single slanted push behaves like two straight pushes at right angles.

Splitting one push into a "forward" part and a "downward" part is what finding the components of a vector means. Any tilted vector can be split into pieces along the axes, and then adding and measuring it become ordinary arithmetic.

the components of a vector v = 3i + 4j form a right triangle
On a grid, the orange vector v from the origin to (3, 4), its blue x-part 3i along the x-axis and its green y-part 4j straight up, forming a right triangle with a 53.13-degree angle at the origin. A panel lists scalar components 3 and 4, vector components 3i and 4j, |v| = √25 = 5 and θ = arctan(4/3) ≈ 53.13 degrees.

What Are the Components of a Vector?

The components of a vector are how far it reaches along each coordinate axis. The vector from the origin to (3,4)(3, 4) goes 3 across and 4 up, so its components are 3 and 4.

  • Unit vectors are arrows of length 1: i\mathbf{i} along the x-axis, j\mathbf{j} along y, k\mathbf{k} along z.
  • The vector is a sum of stretched unit vectors: v=3i+4j\mathbf{v} = 3\mathbf{i} + 4\mathbf{j}.
  • The same arrow can be written (3,4)(3, 4) or ⟨3,4⟩\langle 3, 4\rangle.
  • Every operation on vectors, from addition to lengths, runs on components.

What Is the Difference Between Scalar and Vector Components?

A scalar component is a signed number; a vector component is that number attached to its unit vector.

Term What it is For v = 3i + 4j
Scalar component a signed number: how far along an axis 3 and 4
Vector component that number on its unit vector: an arrow along the axis 3i3\mathbf{i} and 4j4\mathbf{j}

Adding the vector components rebuilds the vector: 3i+4j=v3\mathbf{i} + 4\mathbf{j} = \mathbf{v}.

How Do You Resolve a Vector Into Components?

Multiply the vector's length by the cosine of its angle for the x-part and by the sine for the y-part. The vector is the hypotenuse (longest side) of a right triangle; the x-part is adjacent to θ and the y-part is opposite it.

  1. The horizontal component: Ax=Acos⁡θA_x = A\cos\theta.
  2. The vertical component: Ay=Asin⁡θA_y = A\sin\theta.
  3. The vector: A=Axi+Ayj\mathbf{A} = A_x\mathbf{i} + A_y\mathbf{j}.

For a vector of length 10 at 30°30°: Ax=10cos⁡30°≈8.66A_x = 10\cos 30° \approx 8.66 and Ay=10sin⁡30°=5A_y = 10\sin 30° = 5.

resolving a vector uses cos for the horizontal component and sin for the vertical one
A right triangle with an orange vector of length 10 as the hypotenuse at 30 degrees to the horizontal. The blue horizontal side is labelled adjacent: 10 cos 30° ≈ 8.66 and the green vertical side opposite: 10 sin 30° = 5.

Going back: length and direction from components

∣v∣=x2+y2,tan⁡θ=yx|\mathbf{v}| = \sqrt{x^2 + y^2}, \qquad \tan\theta = \frac{y}{x}
  • For 3i+4j3\mathbf{i} + 4\mathbf{j}: ∣v∣=9+16=5|\mathbf{v}| = \sqrt{9 + 16} = 5 and θ=arctan⁡43≈53.13°\theta = \arctan\frac{4}{3} \approx 53.13°.
  • A calculator's arctan⁡\arctan only gives angles from −90°-90° to 90°90°, so it cannot tell (3,4)(3, 4) from (−3,−4)(-3, -4).
  • Check the signs first to find the quadrant, as in Example 4.

The unit vector: direction with the length taken out

Divide a vector by its length to get a vector of length 1 pointing the same way:

v^=v∣v∣=3i+4j5=0.6 i+0.8 j\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|} = \frac{3\mathbf{i} + 4\mathbf{j}}{5} = 0.6\,\mathbf{i} + 0.8\,\mathbf{j}

Its components are cos⁡53.13°=0.6\cos 53.13° = 0.6 and sin⁡53.13°=0.8\sin 53.13° = 0.8.

Drag the head of v\mathbf{v} and watch its parts change.

Try It Yourself

Use the vector lab to see Components of a Vector at work: drag, change the numbers and watch what happens.

How Do You Write a Vector in i, j, k Form?

In 3D a vector has three components: v=xi+yj+zk\mathbf{v} = x\mathbf{i} + y\mathbf{j} + z\mathbf{k}. Picture a box with edges xx, yy and zz; the vector runs corner to opposite corner.

  • The floor diagonal is x2+y2\sqrt{x^2 + y^2}.
  • That diagonal and the height zz form a second right triangle, so ∣v∣=x2+y2+z2|\mathbf{v}| = \sqrt{x^2 + y^2 + z^2}.
  • For 3i+4j+5k3\mathbf{i} + 4\mathbf{j} + 5\mathbf{k}: floor diagonal 55, and ∣v∣=25+25=50=52≈7.07|\mathbf{v}| = \sqrt{25 + 25} = \sqrt{50} = 5\sqrt{2} \approx 7.07.
in 3D a vector is the diagonal of a box whose edges are its components
Three grey axes x, y and z with a dashed box 3 by 4 by 5. The blue 3i runs along x, the green 4j along y and the purple 5k straight up, ending at the far top corner, and the orange vector v runs from the origin to that corner. A panel shows the floor diagonal √(3² + 4²) = 5 and |v| = √(5² + 5²) = √50 ≈ 7.07.

From two points to components

From P(x1,y1,z1)P(x_1, y_1, z_1) to Q(x2,y2,z2)Q(x_2, y_2, z_2), the components are "end minus start":

PQ→=(x2−x1)i+(y2−y1)j+(z2−z1)k\overrightarrow{PQ} = (x_2 - x_1)\mathbf{i} + (y_2 - y_1)\mathbf{j} + (z_2 - z_1)\mathbf{k}

Direction cosines

The cosines of the angles a vector makes with the x-, y- and z-axes (α\alpha, β\beta and γ\gamma) are the direction cosines. For 3i+4j+5k3\mathbf{i} + 4\mathbf{j} + 5\mathbf{k}:

cos⁡α=350≈0.4243,cos⁡β=450≈0.5657,cos⁡γ=550≈0.7071\cos\alpha = \frac{3}{\sqrt{50}} \approx 0.4243, \quad \cos\beta = \frac{4}{\sqrt{50}} \approx 0.5657, \quad \cos\gamma = \frac{5}{\sqrt{50}} \approx 0.7071
  • The angles are about 64.90°64.90°, 55.55°55.55° and exactly 45°45°.
  • Their squares add to 1 (0.18+0.32+0.5=10.18 + 0.32 + 0.5 = 1), because the unit vector has length 1.

What Are the Formulas for Vector Components?

Four formulas cover most component work.

What you want Formula
Components from length and angle (2D) Ax=Acos⁡θA_x = A\cos\theta, Ay=Asin⁡θA_y = A\sin\theta
Length from components ∣v∣=x2+y2+z2\lvert\mathbf{v}\rvert = \sqrt{x^2 + y^2 + z^2}
Direction angle (2D) tan⁡θ=yx\tan\theta = \frac{y}{x}, then check the quadrant
Components from two points end coordinates minus start coordinates

Here θ is the angle with the positive x-axis.

What Are the Properties of Vector Components?

Components behave in four reliable ways.

  • Independence of axes. The part along one axis does not affect the part along a perpendicular axis.
  • Sign carries direction. A negative component points the negative way along that axis.
  • Components add. To add two vectors, add matching components.
  • Length from components. By Pythagoras, so no component is longer than the vector.

What Are the Types of Vector Components?

Components come in two types, depending on the axes chosen.

  • Rectangular components lie along axes at 90°90° (xx, yy, zz). These are the standard i\mathbf{i}, j\mathbf{j}, k\mathbf{k} ones.
  • Oblique components lie along axes not at 90°90°, such as frame members. Their length needs the law of cosines.
  • Rectangular ones win almost everywhere: Pythagoras works and the parts stay independent.

Why Do Components of a Vector Matter?

A slanted force is two straight forces in disguise, and that makes hard problems solvable.

  • Addition becomes arithmetic. Adding components is easier than drawing tilted arrows.
  • Independent effects separate. A thrown ball's across-motion and up-motion can be solved one at a time.

Why the split always works

  • The split is unique. Go along x until directly below the head, then straight up: only one way exists.
  • Perpendicular moves do not interfere. Moving along i\mathbf{i} never changes your position along j\mathbf{j}.
(2i+3j)+(5i−j)=(2+5)i+(3−1)j=7i+2j(2\mathbf{i} + 3\mathbf{j}) + (5\mathbf{i} - \mathbf{j}) = (2 + 5)\mathbf{i} + (3 - 1)\mathbf{j} = 7\mathbf{i} + 2\mathbf{j}

Arrows placed head to tail land on the same point, (7,2)(7, 2); that is addition of vectors in pictures.

vectors add component by component because x-moves and y-moves are independent
On a grid, blue A = 2i + 3j from the origin, orange B = 5i − j starting at the head of A, and green A + B from the origin to (7, 2). A panel shows the x-parts 2 + 5 = 7 and the y-parts 3 + (−1) = 2, so A + B = 7i + 2j.
  • The letters i\mathbf{i}, j\mathbf{j}, k\mathbf{k} come from William Rowan Hamilton's quaternions (1843).
  • Simon Stevin's 1586 book on statics stated the triangle of forces.

Examples of the Components of a Vector

Example 1

Find the x- and y-components of a vector of length 10 at 30°30° to the positive x-axis.

  1. Ax=10cos⁡30°=10×32=53≈8.66A_x = 10\cos 30° = 10 \times \frac{\sqrt{3}}{2} = 5\sqrt{3} \approx 8.66.
  2. Ay=10sin⁡30°=10×12=5A_y = 10\sin 30° = 10 \times \frac{1}{2} = 5.

The vector is about 8.66i+5j8.66\mathbf{i} + 5\mathbf{j}.

Example 2

A student resolves the same vector as Ax=10sin⁡30°=5A_x = 10\sin 30° = 5 and Ay=10cos⁡30°≈8.66A_y = 10\cos 30° \approx 8.66. Is that right?

  1. Turn it back into an angle: tan⁡θ=8.665\tan\theta = \frac{8.66}{5}, so θ≈60°\theta \approx 60°, not 30°30°.
  2. Swapping sine and cosine turned the vector through the other acute angle.
swapping sine and cosine turns a 30-degree vector into a 60-degree one
Two grid panels with a dashed green 30-degree line. Left: the swapped components (5, 8.66) give an orange vector at 60 degrees, marked wrong. Right: the correct components (8.66, 5) give a green vector lying on the 30-degree line, marked right.

No. The angle is from the x-axis, so the x-part takes cosine: 8.668.66 and 55.

Example 3

Write the vector from P(1,2,3)P(1, 2, 3) to Q(4,6,8)Q(4, 6, 8) in i,j,k\mathbf{i}, \mathbf{j}, \mathbf{k} form.

  1. End minus start: (4−1)i+(6−2)j+(8−3)k(4 - 1)\mathbf{i} + (6 - 2)\mathbf{j} + (8 - 3)\mathbf{k}.

PQ→=3i+4j+5k\overrightarrow{PQ} = 3\mathbf{i} + 4\mathbf{j} + 5\mathbf{k}.

Example 4

A vector has components Ax=−6A_x = -6 and Ay=8A_y = 8. Find its length and direction.

  1. Length: (−6)2+82=100=10\sqrt{(-6)^2 + 8^2} = \sqrt{100} = 10.
  2. Signs: x negative, y positive, so it points up and left, into the second quadrant.
  3. Angle with the negative x-axis: arctan⁡86≈53.13°\arctan\frac{8}{6} \approx 53.13°, so the direction is 180°−53.13°=126.87°180° - 53.13° = 126.87°.
  4. A calculator's arctan⁡(8÷−6)=−53.13°\arctan(8 \div -6) = -53.13° points the wrong way.
a negative component points the vector the other way along that axis
On a grid, v = −6i + 8j drawn as an orange arrow up and to the left, with the blue −6i along the negative x-axis and the green 8j straight up. Angles of 53.13 degrees from the negative x-axis and 126.87 degrees from the positive x-axis are marked. The panel notes that a calculator's arctan(8/−6) gives −53.13 degrees, the wrong quadrant.

Length 10, direction about 126.87°126.87°.

Example 5

A ball is kicked at 20 m/s at 30°30° above the ground. How fast is it moving across, and up, at the start?

  1. Across: 20cos⁡30°=103≈17.3220\cos 30° = 10\sqrt{3} \approx 17.32 m/s.
  2. Up: 20sin⁡30°=1020\sin 30° = 10 m/s.

About 17.32 m/s across and 10 m/s up; gravity then changes only the up part.

What Are the Most Common Mistakes With Vector Components?

Mistake 1: Swapping sine and cosine

Where it slips in: The angle is drawn next to the vertical, not the horizontal.

Don't do this: Use sin⁡θ\sin\theta for the x-part because "x comes first and so does sine".

The correct way: The side touching the angle takes cosine. If θ is from the y-axis, Ay=Acos⁡θA_y = A\cos\theta.

Mistake 2: Dropping a minus sign

Where it slips in: Vectors pointing left or down.

Don't do this: Turn −6i+8j-6\mathbf{i} + 8\mathbf{j} into 6i+8j6\mathbf{i} + 8\mathbf{j}.

The correct way: The sign is the direction. Sketch the arrow first; the signs must match its quadrant.

Mistake 3: Forgetting the square root

Where it slips in: Finding the length in a hurry.

Don't do this: Report 32+42=253^2 + 4^2 = 25 as the length of 3i+4j3\mathbf{i} + 4\mathbf{j}.

The correct way: The length is 25=5\sqrt{25} = 5. It can never exceed 3+4=73 + 4 = 7.

Where Are Components of a Vector Used?

Component resolution is used wherever a quantity has a direction.

  • Pushing at an angle. On the lawnmower, 120cos⁡40°≈91.9120\cos 40° \approx 91.9 N pushes forward and 120sin⁡40°≈77.1120\sin 40° \approx 77.1 N presses down.
  • Projectiles. Across-motion and up-motion are independent, as in Example 5.
  • Slopes and ramps. A box's weight splits into a part along the slope and a part into it.
  • Computer graphics. Movement and the dot product used for lighting run on components.
the push on a lawnmower resolved into forward and downward components
A blue lawnmower on green grass with its handle rising to the left. Beside it, an orange 120 N push at 40 degrees below the horizontal is split into a blue forward part, 120 cos 40° ≈ 91.9 N, and a green downward part, 120 sin 40° ≈ 77.1 N.

Conclusion

  • Components are the straight moves inside one slanted arrow: x,y,zx, y, z or xi,yj,zkx\mathbf{i}, y\mathbf{j}, z\mathbf{k}.
  • Resolve with Ax=Acos⁡θA_x = A\cos\theta and Ay=Asin⁡θA_y = A\sin\theta.
  • The length is x2+y2+z2\sqrt{x^2 + y^2 + z^2}; check the quadrant before using arctan⁡yx\arctan\frac{y}{x}.
  • Components add axis by axis, and their signs carry direction.
  • So one slanted push, like the lawnmower's, acts as two straight ones.

Practice Problems on Components of a Vector

  1. Find the x- and y-components of a vector of length 20 at 60°60° to the x-axis.
  2. Write the vector from A(0,1,2)A(0, 1, 2) to B(3,1,6)B(3, 1, 6) in i,j,k\mathbf{i}, \mathbf{j}, \mathbf{k} form and find its length.
  3. Find the length of v=6i−8j\mathbf{v} = 6\mathbf{i} - 8\mathbf{j} and say which quadrant it points into.

Answer to Question 1: Ax=20cos⁡60°=10A_x = 20\cos 60° = 10 and Ay=20sin⁡60°=103≈17.32A_y = 20\sin 60° = 10\sqrt{3} \approx 17.32.

Answer to Question 2: AB→=3i+0j+4k\overrightarrow{AB} = 3\mathbf{i} + 0\mathbf{j} + 4\mathbf{k}, with length 9+0+16=5\sqrt{9 + 0 + 16} = 5.

Answer to Question 3: ∣v∣=36+64=10|\mathbf{v}| = \sqrt{36 + 64} = 10; it points right and down, into the fourth quadrant.

If a direction lands in the wrong quadrant, go back to Example 4.

To take vectors further, explore Bhanzu's geometry tutor or high school math tutor sessions, or browse math classes online.

Want a live Bhanzu trainer to work through vector components with your child? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. OpenStax, University Physics Volume 1, Section 2.2: Coordinate Systems and Components of a Vector (scalar and vector components; end minus start). openstax.org
  2. OpenStax, Calculus Volume 3, Section 2.2: Vectors in Three Dimensions (the 3D length and unit vector). openstax.org
  3. J. J. O'Connor and E. F. Robertson, "William Rowan Hamilton", MacTutor History of Mathematics, University of St Andrews (quaternions and their units i, j, k, 1843). mathshistory.st-andrews.ac.uk
  4. J. J. O'Connor and E. F. Robertson, "Simon Stevin", MacTutor History of Mathematics, University of St Andrews (the triangle of forces, 1586). mathshistory.st-andrews.ac.uk

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What are the components of a vector?
They are the amounts a vector reaches along each axis, such as 3 across and 4 up for 3i+4j3\mathbf{i} + 4\mathbf{j}.
What do i, j and k mean?
They are unit vectors, arrows of length 1, along the x-, y- and z-axes.
How do you resolve a vector into horizontal and vertical components?
Multiply its length by cos⁡θ\cos\theta for the horizontal part and sin⁡θ\sin\theta for the vertical part. A length of 10 at 30°30° gives 8.668.66 across and 55 up.
How do you find the magnitude from components?
Take the square root of the sum of the squared components: ∣v∣=x2+y2+z2|\mathbf{v}| = \sqrt{x^2 + y^2 + z^2}.
Can a component be negative?
Yes. It means the vector points the negative way along that axis, as −6i+8j-6\mathbf{i} + 8\mathbf{j} points left and up.
Can a component be bigger than the vector itself?
No. The components of a vector are sides of a right triangle whose hypotenuse is the vector. It equals the length only when the vector lies along that axis.
✍️ Written By
Ashish Chauhan
Ashish Chauhan
Math Curriculum Developer
Ashish Chauhan is a Mathematics and Science educator and curriculum developer with 6+ years of experience teaching students from Grades 3–12. He specializes in simplifying complex concepts through conceptual, student-centered learning and has worked across CBSE, PSEB, and international curricula. Beyond teaching, Ashish develops K–12 educational content, lesson plans, and assessments aligned with US learning standards. He holds a BS in PCM and an MS in Chemistry, bringing a strong STEM foundation to education and curriculum design.
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →