Quantities with both magnitude and direction, added and scaled to describe displacement and force.
IntuitionWhat Is a Vector?
When you tell someone you walked three kilometers, they still do not know where you ended up: three kilometers east reaches a completely different place from three kilometers north. Many quantities in physics and geometry—displacement, velocity, acceleration, and force—carry both a magnitude (how much) and a direction (which way). A vector captures both pieces of information in a single mathematical object, drawn as a directed arrow whose length represents magnitude and whose arrowhead shows direction.
Interactive unit circle showing a rotating unit vector and its cosine and sine projections
Parallelogram law of vector addition: the two vectors u=(a11,a21) and v=(a12,a22) span a parallelogram whose diagonal is u+v.
SchoolAdding and Scaling Vectors
Definition: Directed Segments, Magnitude, and Equality
A vector with initial point A and terminal point B is written AB, or by a single letter u. Its magnitude (or length) is the distance between A and B, denoted ∣AB∣ or ∣u∣. The zero vector0=AA has length 0 and arbitrary direction. Two vectors u and v are equal (u=v) if and only if they have the same magnitude and the same direction, regardless of where their initial points are placed.
AB+BC=AC,OA+OB=OC(OACB parallelogram)
To add two vectors by the triangle rule, place the tail of the second vector at the tip of the first: going from A to B and then from B to C gives the net displacement AB+BC=AC. Equivalently, by the parallelogram rule, if OA and OB share the same initial point O, their sum OA+OB is the diagonal OC of the parallelogram OACB. Subtracting vectors is adding the opposite vector: OB−OA=AB.
∣ku∣=∣k∣∣u∣,u⋅v=∣u∣∣v∣cosθ
Multiplying a vector u by a real number k (called scalar multiplication) produces a vector ku of length ∣k∣∣u∣ that points in the same direction as u when k>0, in the opposite direction when k<0, and equals 0 when k=0. The dot product (or scalar product) u⋅v=∣u∣∣v∣cosθ, where θ is the angle between u and v (0∘≤θ≤180∘), combines two vectors into a single real number that measures how strongly they align; in particular, two nonzero vectors are perpendicular (u⊥v) if and only if u⋅v=0.
Core vector operations and their geometric meanings
Point G is the centroid of △ABC if and only if GA+GB+GC=0, or equivalently, for every reference point O in the plane, OG=31(OA+OB+OC).
Why is it true?
If equal unit masses are placed at the three vertices A, B, and C, the vectors GA, GB, and GC represent the pulls toward each vertex from G; their sum is 0 precisely when G is the center of mass.
Proof
Let M be the midpoint of side BC. Since M bisects BC, the two vectors MB and MC have equal length and opposite directions, so MB+MC=0. By the triangle rule from G through M, we have GB+GC=(GM+MB)+(GM+MC)=2GM.
By the median property of △ABC, the centroid G lies on the median AM and divides it in a 2:1 ratio from the vertex, meaning GA=−2GM.
Adding the two relations yields GA+GB+GC=−2GM+2GM=0. Finally, for any point O, writing GA=OA−OG (and similarly for B and C) gives (OA+OB+OC)−3OG=0, or OG=31(OA+OB+OC).
For any two vectors u=(x1,y1) and v=(x2,y2) forming an angle θ, the geometric dot product u⋅v=∣u∣∣v∣cosθ equals the coordinate expression x1x2+y1y2.
Why is it true?
Expanding ∣u−v∣2 in coordinates and comparing it with the Law of Cosines on the triangle formed by u, v, and u−v cancels the squared lengths and isolates the cross-term x1x2+y1y2.
Proof
Place u=OA and v=OB at the origin O so that AB=v−u=(x2−x1,y2−y1). By the Law of Cosines in △OAB, the squared side length opposite angle θ is ∣v−u∣2=∣u∣2+∣v∣2−2∣u∣∣v∣cosθ.
On the other hand, computing the squared lengths in coordinates gives ∣u∣2=x12+y12, ∣v∣2=x22+y22, and ∣v−u∣2=(x2−x1)2+(y2−y1)2=x12+y12+x22+y22−2(x1x2+y1y2).
Equating the two expressions for ∣v−u∣2 and subtracting x12+y12+x22+y22 from both sides yields −2∣u∣∣v∣cosθ=−2(x1x2+y1y2). Dividing by −2 gives u⋅v=∣u∣∣v∣cosθ=x1x2+y1y2.
UndergraduateReal-World Applications and Worked Examples
In mechanics, aviation, and computer graphics, vectors are the standard language for combining motions and forces. An airplane flying through a crosswind moves along the vector sum of its airspeed vector and the wind velocity vector; a physics engine computes mechanical work and surface lighting by taking dot products between force, displacement, and normal vectors.
Example: Resultant of Two Tugboat Forces
Two tugboats pull a barge with forces F1 of magnitude ∣F1∣=300 kN due east and F2 of magnitude ∣F2∣=400 kN due north. Find the magnitude ∣F∣ of the resultant force F=F1+F2.
Solution
Choose a coordinate system with the positive first axis pointing east and the positive second axis pointing north, so F1=(300,0) and F2=(0,400).
Adding the two vectors component-wise gives the resultant force F=F1+F2=(300,400). Its magnitude is ∣F∣=3002+4002=90000+160000=250000=500 kN.
Example: Mechanical Work via the Dot Product
A crate is pulled along a horizontal floor by a rope exerting a force F of magnitude ∣F∣=50 N at an angle θ=60∘ above the horizontal over a displacement d of length ∣d∣=10 m. Compute the mechanical work W=F⋅d.
Solution
By definition of mechanical work as the dot product of force and displacement, we have W=F⋅d=∣F∣∣d∣cosθ.
Substituting ∣F∣=50, ∣d∣=10, and cos60∘=21 gives W=50×10×21=250 J. Only the horizontal component ∣F∣cos60∘=25 N along d performs work.
What is the magnitude ∣u∣ of the vector u=(6,−8)?
Let G be the centroid of △ABC. If GA=(2,−1) and GB=(−5,4), what is GC?
For which value of m are the vectors u=(3,4) and v=(m,−6) perpendicular?
A delivery drone flies 12 km due east from A to B and then 5 km due north from B to C. What is the magnitude ∣AC∣ of its net displacement?