
Physics I course sequence · Interactive lesson
Coordinate Systems & Components
Every mechanics solution starts from axes someone drew, so every number in it carries that person's choices. Here you resolve vectors into signed components and back again without losing the quadrant, then shift the origin and turn the axes to see which numbers change and which never can.
UPI-01.04 · Lesson 4 of 9 in this unit. Position is not a completion score.Build the coordinate model
Define an origin, perpendicular axes, positive directions and units.
Same points, different coordinates
Key idea
- Choose an origin O.
- Choose perpendicular axes.
- Set positive directions.
- Use consistent units.
A Cartesian coordinate system is a chosen origin plus perpendicular axes, each with a positive direction and a unit; a vector's Cartesian components are the signed lengths of its projections onto those axes.
Prerequisites: Pythagoras, sine and cosine, signed numbers. This lesson uses fixed Cartesian coordinates in one reference frame.
Why the description changes but the physics does not
A coordinate system is laid over a situation that does not care about it. A block slides, a ball flies and a rope pulls exactly as before whether zero sits on the floor or on the table, so the physics must live in what no drawing of axes can reach: the distance between two points, the length of a vector, the angle between two directions. Components are the price of turning that geometry into arithmetic, and the price is dependence. Move the origin and every position reads differently; point the axes another way and the same arrow gets a new pair of numbers, each sign reporting only which way along one particular axis the arrow leans. A change of description is therefore never free-form. It follows rules strict enough that lengths, distances and angles survive every legitimate change, which is why Newton's laws are written for vectors rather than for components in one favoured set of axes. The freedom ends where the axes stop being a drawing and become a moving object. Axes carried by a train measure different velocities, and axes that accelerate or keep turning change which forces seem to act: here we change fixed coordinates in the same frame; moving or continuously rotating frames require additional care.
A coordinate system is a list of decisions
Before a single component exists you have chosen four things: where the origin sits, which directions the axes point, which way along each counts as positive, and what unit one step represents. In three dimensions the axes are also made right-handed by convention, so with x to the right and y up the page, z points out of the page towards you. None of these choices is part of the physics. A lamp hanging 2.40 m above the floor is at y = 2.40 m with the origin on the floor and y up, at y = 1.65 m with the origin on a 0.75 m tabletop, and at y = −1.65 m if you keep that origin but call down positive. Three numbers, one lamp. Choose to make later work short: put the origin where something starts, stops or balances, and lay an axis along the direction things actually move.
First example: a 10 m displacement
A 10.0 m displacement aimed 30.0° above +x has components (8.66 m, 5.00 m). Turn the axes 30.0° counterclockwise and the same displacement reads (10.0 m, 0.00 m) — still 10.0 m long.
Resolve a vector into components
For magnitude A ≥ 0 and angle θ measured counterclockwise from +x.
Aₓ = A cos θ · Aᵧ = A sin θ
Four quadrants · signs (x, y)
Example · 250 N at 135°
Fₓ = 250 cos 135° ≈ −177 N
Fᵧ = 250 sin 135° ≈ +177 N
Signed does not mean smaller
- A sign describes direction along an axis.
- A component can be negative or zero.
- −177 N and +177 N have equal size but opposite directions.
If the angle starts at the vertical, do not automatically put cosine on x: sketch the adjacent side first.
A component is a signed projection
Drop perpendiculars from the tail and the tip of a vector onto the x-axis. The stretch of axis between the two feet, counted positive if it runs towards +x and negative if it runs the other way, is the component Aₓ. Trigonometry supplies its size: with θ measured counterclockwise from +x, Aₓ = A cos θ and Ay = A sin θ, and the signs take care of themselves in every quadrant. A 250 N pull at θ = 135° has Fₓ = 250 cos 135° = −177 N and Fy = 250 sin 135° = +177 N, so it leans left and up. A component is not a magnitude. It carries the vector's unit, it can be zero, and a minus sign means direction, not smallness: Fₓ = −177 N pulls exactly as hard along the x-axis as +177 N would. The pair of signed components fixes the vector completely; the magnitude alone never does.
When the angle is not measured from +x
Real problems rarely hand you θ from +x. They give a bearing such as 35° east of south, a rope angle measured from the vertical, or a slope angle measured from the ground. Two routes both work. Convert the angle to θ from +x and let cosine and sine carry the signs, or use the angle as given, give the cosine to the axis the angle is measured from — the adjacent side — and read each sign off the sketch. A rope under 180 N of tension, leaning 40.0° to the left of vertical, pulls up with 180 cos 40.0° = 138 N and sideways with 180 sin 40.0° = 116 N; the sketch says the sideways part points left, so Fₓ = −116 N and Fy = +138 N. The first route agrees: θ = 90.0° + 40.0° = 130.0°, and 180 cos 130.0° = −116 N. Cosine belongs to the adjacent axis, never automatically to x.
Recover magnitude and direction
Use both signs to recover the correct quadrant.
Length, then direction
A = √(Aₓ² + Aᵧ²)
θ = atan2(Aᵧ, Aₓ)
The zero vector has no defined direction.Why atan2?
arctan(Aᵧ/Aₓ) loses the quadrant and fails when Aₓ = 0. atan2 takes y first, then x.
Software usually returns radians from −π to π. Convert to degrees; add 360° to a negative result if using 0–360°.
The quadrant trap · (−3, 4) m
Length: 5.0 m
arctan(4/−3) = −53.1°
Wrong direction for this vector.
atan2(4, −3) = 126.9°
Correct: left and up, quadrant II.
Back from components: length first, then the quadrant
Given Aₓ and Ay, the length comes from Pythagoras, A = √(Aₓ² + Ay²), and it is the same whatever the signs. The direction is where a calculator misleads. arctan(Ay/Aₓ) only returns angles between −90° and +90°, so it cannot tell (+6.0, −2.5) from (−6.0, +2.5): both ratios are −0.417. For a displacement of (−6.0 m, +2.5 m) the length is √(36.0 + 6.25) = 6.5 m, and the calculator offers −22.6°, an arrow pointing right and down. The signs say left and up, the second quadrant, so the direction is −22.6° + 180° = 157.4° from +x. The two-argument function atan2(Ay, Aₓ) does that bookkeeping for you; by hand, sketch the signs before you trust the angle. Notice that the pair (A, θ) is itself a description of the same arrow — polar rather than Cartesian.
Shift the origin
Subtract the new origin’s old coordinates from every point.
x′ = x − x₀ · y′ = y − y₀
Example: P = (4, 3) m and O′ = (2, −1) m give P′ = (2, 4) m.
Position coordinates—and the length of a position vector from the origin—can change. Displacement between fixed points does not.
What stays the same?
- Displacement Q − P: the origin shift cancels.
- Distance between two fixed points.
- Velocity and acceleration under a constant translation.
A moving origin is different: its velocity must be included when transforming velocities.
Moving the origin changes positions, never differences
Move the origin to the point (x₀, y₀) of the old system and every position changes by the same constant: x′ = x − x₀ and y′ = y − y₀. A cart that rolls from x = 2.0 m to x = 5.5 m in 1.4 s, described from a new origin at x₀ = 7.0 m, starts at x′ = −5.0 m and ends at x′ = −1.5 m. Both positions turned negative, yet the cart did not reverse: Δx′ = −1.5 − (−5.0) = +3.5 m, exactly Δx, and its average velocity is still 2.5 m s⁻¹. Calculus says why in one line. x₀ is a constant, so dx′/dt = dx/dt − 0: velocities agree, and differentiating again, so do accelerations. Positions depend on where you put zero; displacements, velocities and accelerations do not. The new origin must be a fixed point, though: an origin moving at velocity u gives dx′/dt = dx/dt − u, subtracting its own velocity from every velocity you record.
Rotate the axes
A passive counterclockwise rotation by φ keeps the vector fixed.
New components
Aₓ′ = Aₓ cos φ + Aᵧ sin φ
Aᵧ′ = −Aₓ sin φ + Aᵧ cos φ
Equivalently: Aₓ′ = A cos(θ − φ), Aᵧ′ = A sin(θ − φ).
For the inverse transformation, use −φ.Rotation matrix R(φ)
(Aₓ′, Aᵧ′)ᵀ = R(φ) (Aₓ, Aᵧ)ᵀ
Aₓ′² + Aᵧ′² = Aₓ² + Aᵧ²
Inclined coordinates
gₓ′ = −g sin α
gᵧ′ = −g cos α
Turning the axes mixes components but keeps the length
Rotate the axes counterclockwise through φ. A vector at θ from the old +x axis sits at θ − φ from the new one, so Aₓ′ = A cos(θ − φ) and Ay′ = A sin(θ − φ); the difference formulas turn these into Aₓ′ = Aₓ cos φ + Ay sin φ and Ay′ = −Aₓ sin φ + Ay cos φ. A velocity of 12.0 m s⁻¹ at 50.0° has components (7.71, 9.19) m s⁻¹. Turn the axes through 20.0° and it becomes (7.71 cos 20.0° + 9.19 sin 20.0°, −7.71 sin 20.0° + 9.19 cos 20.0°) = (10.39, 6.00) m s⁻¹. Different numbers, same arrow: 10.39² + 6.00² ≈ 144 = 12.0². That is what makes tilted axes worth the trouble. On a slope, aim x′ along the surface and a sliding block has a single velocity component instead of two, so one equation carries the motion.
Interactive coordinate lab
Explore signed components, fixed origin shifts, rotated axes and gravity on a slope.
Angles are in degrees. θ is measured counterclockwise from +x; φ turns the axes counterclockwise.
Rotated axes · results
- Component Aₓ′
- 4.830 m
- Component Aᵧ′
- 1.294 m
- Magnitude
- 5.000 m
- Direction from +x′ · 0–360°
- 15.000°
✓ Magnitude is unchanged by the choice of axes.
Fixed translations and passive rotations of Cartesian axes in the same frame. Values are rounded for display; invariants use unrounded values. Moving or continuously rotating frames need additional analysis.
Explore the original combined coordinate lab
Slide s first: the coordinates of P and Q change, but their displacement does not. With the default θ = 125°, turning φ to 35° makes Aₓ′ = 0, so A lies along +y′. This zero crossing changes when θ changes. The vector length remains 5.00 m.
COMPONENT Aₓ′-2.87 m
COMPONENT Ay′4.10 m
LENGTH √(Aₓ′² + Ay′²)5.00 m
DIRECTION FROM +x′125 °
Live interpretationCOMPONENT Aₓ′: −2.87 m. COMPONENT Ay′: 4.10 m. LENGTH √(Aₓ′² + Ay′²): 5.00 m. DIRECTION FROM +x′: 125 °
Catch the common trap
g = 9.81 m s⁻² is a positive magnitude. Signs belong to components.
Choose the positive directions first. With +y up, gravity has gᵧ = −9.81 m s⁻²; with +y down, it has gᵧ = +9.81 m s⁻². The physical acceleration has not reversed.
Why a negative component is not a negative magnitude
The minus sign is not part of g. Many students carry g = −9.81 m s⁻² into every problem as a fact about gravity. Then they choose up as positive, write ay = −g, substitute their negative g and get ay = +9.81 m s⁻²: a dropped ball that speeds up towards the ceiling. Others choose down as positive, write ay = g, and keep the minus anyway. The error is filing a sign under a magnitude. g is the size of the free-fall acceleration, 9.81 m s⁻², and a size is never negative. The sign belongs to a component, and a component's sign is set by the axis you drew: ay = −g with y up, ay = +g with y down, aₓ′ = −g sin α for a block on a frictionless slope with x′ pointing up it. Draw the axis, read each sign from the drawing, and substitute every magnitude as a positive number.
Practice & worked examples
Sketch the axes, calculate with signs, then check what should be invariant.
Easy · Surveyor bearing
A surveyor's rangefinder places a marker 36.0 m from the tripod on a bearing 24.0° west of north. Using the tripod as origin, with x pointing east and y pointing north, find the marker's coordinates and check them against the measured distance.
Show worked solution →
- Sketch first. North is +y and west is −x, so the marker sits up and to the left: x negative, y positive.
- The 24.0° is measured from the +y axis, so the north leg is adjacent to it and takes the cosine: 36.0 cos 24.0° = 32.9 m. The west leg is opposite and takes the sine: 36.0 sin 24.0° = 14.6 m.
- Attach the signs from the sketch: x = −14.6 m and y = +32.9 m.
- Cross-check by the other route. Measured counterclockwise from +x the direction is θ = 90.0° + 24.0° = 114.0°, and 36.0 cos 114.0° = −14.6 m, 36.0 sin 114.0° = +32.9 m. Length: √(14.64² + 32.89²) = 36.0 m.
(x, y) = (−14.6 m, +32.9 m) from the tripod, which returns the measured 36.0 m.
Medium · Delivery robot · shifted origin
A delivery robot's tracker uses a campus grid with x east and y north. The robot starts at (12.0 m, −5.0 m) and stops at (−6.5 m, 16.0 m). Find its displacement as a magnitude and direction. A second team measures from the library door, at (40.0 m, 25.0 m) on the same grid: give the start and stop in their coordinates and show that the displacement is unchanged.
Show worked solution →
- Subtract start from stop: Δx = −6.5 − 12.0 = −18.5 m and Δy = 16.0 − (−5.0) = +21.0 m.
- Length: √(18.5² + 21.0²) = √783.25 = 28.0 m.
- Direction: a calculator gives arctan(21.0 ÷ −18.5) = −48.6°, which points east and south. The signs say west and north, the second quadrant, so add 180°: θ = 131.4° from +x, which is 41.4° west of north.
- The library team subtracts (40.0, 25.0) m from every position: the start becomes (−28.0 m, −30.0 m) and the stop (−46.5 m, −9.0 m).
- Their displacement: Δx′ = −46.5 − (−28.0) = −18.5 m and Δy′ = −9.0 − (−30.0) = +21.0 m. The shift appears in both positions and cancels in the difference.
Displacement 28.0 m at 131.4° from +x (41.4° west of north) on both grids; only the positions differ.
Hard · Stadium coordinates · rotated axes
A stadium tracking system reports positions with x east and y north. The corner flag is at (14.0 m, 6.0 m), and the touchline leaves it heading 23.0° north of east. An analyst wants the origin at the flag, x′ along the touchline and y′ 90° counterclockwise from x′. Player A stands at (52.0 m, 30.0 m) and player B at (40.0 m, 47.0 m). Find both positions in touchline coordinates and confirm that the players' separation is unchanged.
Show worked solution →
- Move the origin first. Relative to the flag, A is at (52.0 − 14.0, 30.0 − 6.0) = (38.0, 24.0) m and B is at (26.0, 41.0) m.
- Then turn the axes through φ = 23.0°, with cos φ = 0.9205 and sin φ = 0.3907: x′ = x cos φ + y sin φ and y′ = −x sin φ + y cos φ.
- Player A: x′ = 38.0(0.9205) + 24.0(0.3907) = 34.98 + 9.38 = 44.4 m, and y′ = −38.0(0.3907) + 24.0(0.9205) = −14.85 + 22.09 = 7.2 m.
- Player B: x′ = 26.0(0.9205) + 41.0(0.3907) = 23.93 + 16.02 = 40.0 m, and y′ = −26.0(0.3907) + 41.0(0.9205) = −10.16 + 37.74 = 27.6 m.
- Separation in stadium axes: B − A = (−12.0, 17.0) m, with length √433 = 20.8 m. A difference of two positions is untouched by the origin shift, so rotate it directly: x′ = −12.0(0.9205) + 17.0(0.3907) = −11.046 + 6.642 = −4.40 m and y′ = 12.0(0.3907) + 17.0(0.9205) = 4.688 + 15.649 = 20.34 m; subtracting rounded touchline positions introduces a small rounding difference, (40.0 − 44.4, 27.6 − 7.2) = (−4.4, 20.4) m. Length: √(4.40² + 20.34²) = √433.1 = 20.8 m. Every component of the separation changed; its length did not.
A = (44.4 m, 7.2 m) and B = (40.0 m, 27.6 m) in touchline coordinates; the separation is 20.8 m in both descriptions.
Quick check
Test the quadrant, then transform a real acceleration.
Practice for this visit only; refreshing clears answers. This is not saved course completion.
Invariants · the physics behind the numbers
For orthonormal Cartesian axes using the same units, rotations preserve vector lengths, scalar products and physical angles. Fixed translations also preserve the separation of points. Components and position coordinates depend on your choices.
Checking length is necessary but not sufficient: a wrong rotation direction or swapped components may still preserve it. Always compare the signs and direction with a sketch.
Full authored formula reference
Resolving a vector into components
Aₓ = A cos θ, Ay = A sin θ
Measured from +x, θ produces the right signs in every quadrant. Measured from any other line, cosine belongs to the axis the angle starts from.
A ≥ 0 in the vector's own unit (m, m s⁻¹, N); θ counterclockwise from +x; components keep that unit and gain a signMagnitude and direction from components
A = √(Aₓ² + Ay²), θ = atan2(Ay, Aₓ)
When Aₓ < 0, plain arctan points the opposite way, so add 180°. Sketch the signs first and the quadrant is never in doubt.
atan2 returns −180° to 180°; a calculator's arctan(Ay/Aₓ) returns only −90° to 90°Moving the origin
x′ = x − x₀, y′ = y − y₀ ⇒ Δx′ = Δx, dx′/dt = dx/dt
Every position shifts by one constant, so every difference and every time derivative — displacement, velocity, acceleration — is untouched.
(x₀, y₀) is the new origin written in the old coordinates, in metres, and it must stay fixedRotating the axes through φ
Aₓ′ = Aₓ cos φ + Ay sin φ, Ay′ = −Aₓ sin φ + Ay cos φ
To return to the old axes, use −φ, which flips the sign of both sine terms. Setting φ equal to the vector's own direction θ gives (A, 0): the new x′ axis then lies along the arrow.
φ turns +x onto +x′, counterclockwise positive; primes mark components in the new axes, same unit as AWhat no choice of axes can change
Aₓ′² + Ay′² = Aₓ² + Ay² = A²
A free test of any transformation: if the length changed, a term is missing or has the wrong sign. Turning the wrong way, swapping sine and cosine or flipping one component all pass it, so check the signs against the sketch.
holds for every φ; the distance between two points also survives any shift of originGravity in tilted axes
gₓ′ = −g sin α, gy′ = −g cos α
For a slope rising towards +x this is the rotation rule with φ = α applied to (0, −g). One component runs along the motion and the other presses into the surface, which is why tilted axes are worth choosing.
α = incline angle; x′ up the slope, y′ out of the surface; g = 9.81 m s⁻², a positive magnitudeOptional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics I completion tasks.