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 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 is a solid teal arrow and b a solid coral arrow, both starting at the origin. A dashed coral copy of b starts at the tip of a to show tip-to-tail addition, the sum a+b is a thick navy arrow from the origin, and the scalar multiple ca is a dashed purple arrow.
a₁, a₂: the components of a, each from −8 to 8 in steps of 0.5 (defaults 4 and 2).
b₁, b₂: the components of 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 and b with their magnitudes, the sum a+b in component form, ∣a+b∣ worked out as a square root, the direction of the sum as atan2(y, x) in degrees, and ca 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⟩ and b=⟨b1,b2⟩:
Sum:a+b=⟨a1+b1,a2+b2⟩. Geometrically, place the tail of b at the tip of a; the sum runs from the start to the finish.
Scalar multiple:ca=⟨ca1,ca2⟩, with length ∣c∣∣a∣. If c<0, it points the opposite way.
Magnitude:∣v∣=v12+v22.
Direction angle: the angle θ from the positive x-axis with v=∣v∣⟨cosθ,sinθ⟩. Use tanθ=v1v2, then choose the quadrant from the signs of the components.
Unit vector:∣v∣v has length 1 and the same direction as v.
The simulator does not show it, but the same topic also uses the dot product a⋅b=a1b1+a2b2, which is 0 exactly when the vectors are perpendicular.
Worked example
Let a=⟨4,2⟩ and b=⟨−1,5⟩. Find a+b, its magnitude and direction, and 1.5a. These are the simulator's starting values.
Step 1: add components.a+b=⟨4+(−1),2+5⟩=⟨3,7⟩.
Step 2: magnitude.∣a+b∣=32+72=58≈7.62.
Step 3: direction. Both components are positive, so the sum is in Quadrant I and θ=tan−137≈66.8∘.
Step 4: scalar multiple.1.5⟨4,2⟩=⟨6,3⟩, with magnitude 1.520≈6.71, pointing the same way as 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 581⟨3,7⟩≈⟨0.394,0.919⟩.
Follow-up (Quadrant III): set a=⟨−1,−1⟩ and b=⟨−2,−3⟩. The sum is ⟨−3,−4⟩ with magnitude 5. tan−1−3−4=tan−134≈53.1∘ is the reference angle, but the vector points down and left, so θ=180∘+53.1∘=233.1∘. The simulator reports −126.9°, which is the same direction measured clockwise: −126.9∘+360∘=233.1∘.
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∣ is not ∣a∣+∣b∣. Here 4.47+5.10=9.57, but the sum has length 7.62.
Trusting 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; entering −3² on a calculator gives −9.
Forgetting that a negative scalar reverses direction.−1⋅a has the same length as 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−P, not P−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.
Sitting a paper sets one essential cookie so your attempt stays yours (paying or signing in sets the ones those need). Nothing identifying is set unless you accept: advertising cookies only help us measure our adverts, and the site works either way.
Sitting a paper sets one essential cookie so your attempt stays yours. Nothing identifying is set unless you accept; advertising cookies only measure our adverts.