AP subjects/AP Precalculus/Vector Addition & Operations Visualizer
CED 4.8AP Precalculus

Vector Addition & Operations Visualizer

Use this free vector addition and operations visualizer to build two vectors from their components, add them tip-to-tail, and read the sum's magnitude and direction angle. A third control scales a⃗\vec a by a constant, so you can see what multiplying by a negative or fractional scalar does.

gap-fill addition (Unit 4)

Controls
a1a2b1b2c

How to use the simulator

The grid runs from −10 to 10 on both axes. Vector a⃗\vec a is a solid teal arrow and b⃗\vec b a solid coral arrow, both starting at the origin. A dashed coral copy of b⃗\vec b starts at the tip of a⃗\vec a to show tip-to-tail addition, the sum a⃗+b⃗\vec a + \vec b is a thick navy arrow from the origin, and the scalar multiple ca⃗c\vec a is a dashed purple arrow.
  • a₁, a₂: the components of a⃗\vec a, each from −8 to 8 in steps of 0.5 (defaults 4 and 2).
  • b₁, b₂: the components of b⃗\vec b, same range (defaults −1 and 5).
  • c: the scalar, from −2 to 2 in steps of 0.25 (default 1.5).
The readout lists a⃗\vec a and b⃗\vec b with their magnitudes, the sum a⃗+b⃗\vec a + \vec b in component form, ∣a⃗+b⃗∣|\vec a + \vec b| worked out as a square root, the direction of the sum as atan2(y, x) in degrees, and ca⃗c\vec a in component form. All readouts are rounded to one decimal place, and that includes c itself: a setting of 0.25 is displayed as 0.3, so for exact work stick to values of c that are whole numbers or end in .5.
Two habits of the readout to know. First, the direction is reported between −180° and 180°, so a vector pointing into Quadrant III or IV gets a negative angle; add 360° to convert to the 0° to 360° convention. Second, with large components the sum can reach 16 in either coordinate and run past the edge of the grid; the readout is still correct.

The equations

For a⃗=⟨a1,a2⟩\vec a = \langle a_1, a_2 \rangle and b⃗=⟨b1,b2⟩\vec b = \langle b_1, b_2 \rangle:
  • Sum: a⃗+b⃗=⟨a1+b1, a2+b2⟩\vec a + \vec b = \langle a_1 + b_1,\ a_2 + b_2 \rangle. Geometrically, place the tail of b⃗\vec b at the tip of a⃗\vec a; the sum runs from the start to the finish.
  • Scalar multiple: ca⃗=⟨ca1, ca2⟩c\vec a = \langle c a_1,\ c a_2 \rangle, with length ∣c∣ ∣a⃗∣|c|\,|\vec a|. If c<0c < 0, it points the opposite way.
  • Magnitude: ∣v⃗∣=v12+v22|\vec v| = \sqrt{v_1^2 + v_2^2}.
  • Direction angle: the angle θ\theta from the positive x-axis with v⃗=∣v⃗∣⟨cos⁡θ,sin⁡θ⟩\vec v = |\vec v|\langle \cos\theta, \sin\theta \rangle. Use tan⁡θ=v2v1\tan\theta = \frac{v_2}{v_1}, then choose the quadrant from the signs of the components.
  • Unit vector: v⃗∣v⃗∣\frac{\vec v}{|\vec v|} has length 1 and the same direction as v⃗\vec v.
The simulator does not show it, but the same topic also uses the dot product a⃗⋅b⃗=a1b1+a2b2\vec a \cdot \vec b = a_1 b_1 + a_2 b_2, which is 0 exactly when the vectors are perpendicular.

Worked example

Let a⃗=⟨4,2⟩\vec a = \langle 4, 2 \rangle and b⃗=⟨−1,5⟩\vec b = \langle -1, 5 \rangle. Find a⃗+b⃗\vec a + \vec b, its magnitude and direction, and 1.5a⃗1.5\vec a. These are the simulator's starting values.
Step 1: add components. a⃗+b⃗=⟨4+(−1), 2+5⟩=⟨3,7⟩\vec a + \vec b = \langle 4 + (-1),\ 2 + 5 \rangle = \langle 3, 7 \rangle.
Step 2: magnitude. ∣a⃗+b⃗∣=32+72=58≈7.62|\vec a + \vec b| = \sqrt{3^2 + 7^2} = \sqrt{58} \approx 7.62.
Step 3: direction. Both components are positive, so the sum is in Quadrant I and θ=tan⁡−173≈66.8∘\theta = \tan^{-1}\frac{7}{3} \approx 66.8^\circ.
Step 4: scalar multiple. 1.5⟨4,2⟩=⟨6,3⟩1.5\langle 4, 2 \rangle = \langle 6, 3 \rangle, with magnitude 1.520≈6.711.5\sqrt{20} \approx 6.71, pointing the same way as a⃗\vec a.
Check it in the simulator: the readout shows a + b = ⟨3, 7⟩, |a + b| = √(3²+7²) = 7.6, direction(a+b) = atan2(7, 3) = 66.8°, and c·a = 1.5·⟨4, 2⟩ = ⟨6, 3⟩. The unit vector in the direction of the sum is 158⟨3,7⟩≈⟨0.394,0.919⟩\frac{1}{\sqrt{58}}\langle 3, 7\rangle \approx \langle 0.394, 0.919 \rangle.
Follow-up (Quadrant III): set a⃗=⟨−1,−1⟩\vec a = \langle -1, -1 \rangle and b⃗=⟨−2,−3⟩\vec b = \langle -2, -3 \rangle. The sum is ⟨−3,−4⟩\langle -3, -4 \rangle with magnitude 5. tan⁡−1−4−3=tan⁡−143≈53.1∘\tan^{-1}\frac{-4}{-3} = \tan^{-1}\frac43 \approx 53.1^\circ is the reference angle, but the vector points down and left, so θ=180∘+53.1∘=233.1∘\theta = 180^\circ + 53.1^\circ = 233.1^\circ. The simulator reports −126.9°, which is the same direction measured clockwise: −126.9∘+360∘=233.1∘-126.9^\circ + 360^\circ = 233.1^\circ.

Common mistakes on the AP exam

Vectors are in Unit 4, which is not assessed on the AP Precalculus exam itself; they matter for class assessments, AP Calculus BC and AP Physics. The errors that come up most often:
  • Adding magnitudes. ∣a⃗+b⃗∣|\vec a + \vec b| is not ∣a⃗∣+∣b⃗∣|\vec a| + |\vec b|. Here 4.47+5.10=9.574.47 + 5.10 = 9.57, but the sum has length 7.62.
  • Trusting tan⁡−1\tan^{-1} blindly. Inverse tangent only returns angles between −90° and 90°. For vectors in Quadrants II and III, add 180°.
  • Squaring a negative component wrongly. (−3)2=9(-3)^2 = 9; entering −3² on a calculator gives −9.
  • Forgetting that a negative scalar reverses direction. −1⋅a⃗-1\cdot\vec a has the same length as a⃗\vec a but points the opposite way; set c = −1 to see it.
  • Mixing up head and tail. The vector from P to Q is Q−PQ - P, not P−QP - Q.

When the AP exam uses this

Although Topic 4.8 sits outside the exam's scope, vector components and the sum of vectors are the language of displacement, velocity and force in AP Physics 1, and of motion along parametric curves in AP Calculus BC.
Embed this simulator on your class page

Free for classroom use. Paste this into your site, LMS page or blog; keep the credit link under it.