Vectors and Components

Decomposition of vectors into Cartesian components and calculation of magnitude and angle.

Conceptual context

When an object moves, the force driving it or the velocity it carries rarely points exactly along a single axis. To describe that direction precisely and to operate algebraically with it, physics uses vectors: mathematical objects that have both a magnitude and a direction. Decomposing a vector into its Cartesian components is equivalent to asking: how much of this vector points to the right, and how much points upward? The answer, expressed as signed numbers, turns a two-dimensional geometric problem into two independent scalar problems that can be solved separately. That is the central power of this leaf.

🟢 Essential level

A vector in the plane is an arrow with length vv and direction θ\theta, measured from the positive horizontal axis counterclockwise.

Decomposition asks: what shadow does that arrow cast on the horizontal axis, and what shadow on the vertical axis? The horizontal shadow is component vxv_x and the vertical shadow is component vyv_y.

When the vector points to the right, all its length is in vxv_x and vyv_y is zero. When it points straight up, all the length is in vyv_y and vxv_x is zero. For any other direction the length is shared between both components according to the cosine and sine of θ\theta. Neither component can exceed the magnitude vv in absolute value; the total length is always conserved through the Pythagorean relation.

For example, a vector of 10 units pointing 60° above the horizontal splits its length unevenly between the two axes: most of it ends up in the vertical component, because the angle is closer to 90° than to 0°, leaving only a smaller fraction in the horizontal component.

🔵 Formal level

Basic formulas

The four core formulas of this leaf connect the magnitude vv, angle θ\theta, and components vxv_x, vyv_y in both directions.

x-component:

x-component of a vector

vx=vcos⁡θv_x = v \cos\theta

vxv_x is the projection of the vector onto the x-axis. The cosine equals 1 when θ\theta = 0 (horizontal vector) and 0 when θ\theta = π/2 (vertical vector). The sign of vxv_x indicates which horizontal direction the projection faces.

y-component:

y-component of a vector

vy=vsin⁡θv_y = v \sin\theta

vyv_y is the projection onto the y-axis. The sine equals 0 when θ\theta = 0 and reaches its maximum when θ\theta = π/2. Both formulas always work as a pair: increasing θ\theta from 0 to π/2 transfers length from vxv_x to vyv_y.

Real student questions

Why can vxv_x be negative if vv is positive? vv measures the total length of the vector, which cannot be negative. vxv_x measures the projection onto the x-axis with a sign: if the vector points to the left relative to the x-axis, the projection is negative. The magnitude is always non-negative; the components are signed quantities.

When should I use atan and when atan2? Always use atan2(vyv_y, vxv_x) to compute θ\theta. The function atan(vyv_y/vxv_x) gives the correct angle only when vxv_x > 0. In the second quadrant (vxv_x < 0, vyv_y > 0), atan returns an incorrect negative angle; atan2 returns the correct angle in (−π, π].

Why must θ\theta be in radians? Scientific calculators and programming languages compute cos and sin in radians by default. cos(π/4) is equal to 0.707, but cos(45) ≈ 0.526 (in radians, 45 rad ≈ 14.3 full turns). Using degrees without converting gives a completely wrong result.

Is the magnitude the same as the sum of the components? No. The magnitude is vv is equal to sqrt(vxv_x² + vyv_y²), which is always less than or equal to |vxv_x| + |vyv_y| (triangle inequality). For θ\theta is equal to π/4, vxv_x + vyv_y is equal to 1.414vv, but vv is equal to 1vv.

Final synthesis

Decomposing a vector means expressing its direction and magnitude in the language of Cartesian axes. The magnitude vv and angle θ\theta provide all the information needed to compute vxv_x and vyv_y via cosine and sine. The Pythagorean invariant guarantees that no information is lost in the process. The decomposition is exact, reversible, and valid for any vector in the Euclidean plane.

Formal development

This section is part of the complete theory. See the subscription options to access it.

🔴 Structural level

This section is part of the complete theory. See the subscription options to access it.

Deep physical interpretation

This section is part of the complete theory. See the subscription options to access it.

Order of magnitude

This section is part of the complete theory. See the subscription options to access it.

Personalized resolution method

This section is part of the complete theory. See the subscription options to access it.

Special cases and extended example

This section is part of the complete theory. See the subscription options to access it.

Cross-cutting connections and study paths

This section is part of the complete theory. See the subscription options to access it.