Home/Laboratories/Vector Components Lab
Interactive experiment — complete Chapter 2 · Force and Motion

Vector Components Lab

Rotate a single vector and see its x and y components, with the cos θ and sin θ projections drawn live. Switch to rebuild mode and set the components instead — the vector is reconstructed before your eyes.

Learn the physics first

Every vector is the hypotenuse of its own right triangle. The legs of that triangle are the components: Ax = A cos θ along the x-axis and Ay = A sin θ along the y-axis, where θ is measured from +x. Shaded projections in this lab show those two “shadows”; dashed guides complete the rectangle, so you can see that the components rebuild the vector exactly.

Components are the workhorse of mechanics because they are ordinary signed numbers: to add any number of vectors you sum the x-parts, sum the y-parts, and rebuild once at the end. Forces on an inclined plane, projectile motion and fields in later chapters all begin with this move. Choose axes so that one axis lies along the motion you care about and half the trigonometry usually vanishes.

Resolve into componentsAx = A cos θ,   Ay = A sin θ
Rebuild the vectorA = √(Ax² + Ay²),   θ = tan−1(Ay / Ax)
Addition by componentsRx = ΣAx,  Ry = ΣAy — plain arithmetic per axis

Model assumptions. The vector here is a force in newtons on a flat 2D grid (+x east, +y north), with θ in degrees counter-clockwise from +x. Angles are read in [0°, 360°), so quadrant signs (negative components) are handled automatically. One grid square = 1 N.

Experiment

Ready
Drag the white arrowhead

The two directions

—

—

—

Controls

Rebuild mode (set Ax, Ay instead)

Run sweeps the vector from 0° to θ (or grows it from the components) so you can watch the projections build.

Live measurements

Ax = A cos θ
—
Ay = A sin θ
—
Magnitude A
—
Direction θ
—

In rebuild mode the readouts follow the polar form reconstructed from your components.

Try this. Set A = 10 N at 37°: the components are (8.0 N, 6.0 N) — the 3-4-5 triangle in disguise. Then sweep θ from 0° to 90° and watch Ax shrink as Ay grows, the two curves trading places exactly at 45°. Finally, switch to rebuild mode and enter (−6 N, 8 N): the vector lands in the second quadrant at 127°.

Understand

Predict before you run

With the default A = 10 N at 37° (or your current settings), predict the x-component Ax = A cos θ.

N

Experiment completion

Verify the 37° → (8, 6) resolution, explore all four quadrants, and rebuild a vector from components, then pass the quiz.

Where to go next