← Back to course

Math — Mechina

Vectors in the plane

Summary

A vector is a quantity with a direction. In the plane it is written by components u⃗=(x,y)\vec u=(x,y). Add and multiply by a number component by component; the dot product gives angles, perpendicularity and projections — tools for geometry without an exact drawing.

∣u⃗∣=x2+y2,u⃗⋅v⃗=x1x2+y1y2=∣u⃗∣∣v⃗∣cos⁡θ,u⃗⊥v⃗  ⟺  u⃗⋅v⃗=0,AB⃗=B−A|\vec u|=\sqrt{x^2+y^2},\qquad \vec u\cdot\vec v=x_1x_2+y_1y_2=|\vec u||\vec v|\cos\theta,\qquad \vec u\perp\vec v\iff\vec u\cdot\vec v=0,\qquad \vec{AB}=B-A

Symbols in the formulas

u⃗=(x,y)\vec u=(x,y)
A vector with horizontal component xx and vertical component yy
∣u⃗∣|\vec u|
The length of the vector
u⃗⋅v⃗\vec u\cdot\vec v
The dot product — a number, not a vector
θ\theta
The angle between the vectors, 0∘≤θ≤180∘0^\circ\le\theta\le180^\circ
AB⃗\vec{AB}
The vector from point AA to point BB: “end minus start”

Where it comes from: by the law of cosines in the triangle with sides u⃗\vec u, v⃗\vec v, u⃗−v⃗\vec u-\vec v: ∣u⃗−v⃗∣2=∣u⃗∣2+∣v⃗∣2−2∣u⃗∣∣v⃗∣cos⁡θ|\vec u-\vec v|^2=|\vec u|^2+|\vec v|^2-2|\vec u||\vec v|\cos\theta. Expanding the left side in components leaves exactly x1x2+y1y2=∣u⃗∣∣v⃗∣cos⁡θx_1x_2+y_1y_2=|\vec u||\vec v|\cos\theta.

  • Parallel: v⃗=ku⃗\vec v=k\vec u, i.e. the component ratios are equal.
  • Midpoint: M=A+B2M=\frac{A+B}2; the point dividing in the ratio m:nm:n from AA: A+mm+nAB⃗A+\frac m{m+n}\vec{AB}.
  • Parallelogram ABCDABCD: AB⃗=DC⃗\vec{AB}=\vec{DC}, so D=A+C−BD=A+C-B.
  • ∣u⃗+v⃗∣2=∣u⃗∣2+∣v⃗∣2+2u⃗⋅v⃗|\vec u+\vec v|^2=|\vec u|^2+|\vec v|^2+2\vec u\cdot\vec v.
  • Area of the parallelogram on u⃗,v⃗\vec u,\vec v: ∣x1y2−x2y1∣|x_1y_2-x_2y_1|; a triangle’s area is half.

Question types

1

Angle and perpendicularity

Vectors or points are given; the question is about an angle, perpendicularity or a parameter value.

Worked example

In the triangle A(0,0)A(0,0), B(4,0)B(4,0), C(0,3)C(0,3). What is the angle at BB?

Solution

IdeaThe angle at BB is between the vectors that start at BB.
  1. The vectors: BA⃗=A−B=(−4,0)\vec{BA}=A-B=(-4,0), BC⃗=C−B=(−4,3)\vec{BC}=C-B=(-4,3).
  2. The dot product: (−4)(−4)+0⋅3=16(-4)(-4)+0\cdot3=16.
  3. The lengths: ∣BA⃗∣=4|\vec{BA}|=4, ∣BC⃗∣=5|\vec{BC}|=5.
  4. Substitute: cos⁡θ=164⋅5=0.8\cos\theta=\frac{16}{4\cdot5}=0.8.
  5. Compute: θ≈36.87∘\theta\approx36.87^\circ.
CheckA 33-44-55 triangle: tan⁡θ=34\tan\theta=\frac34 ✓.
Common mistakeTaking AB⃗\vec{AB} instead of BA⃗\vec{BA} gives the supplementary angle to 180∘180^\circ.

Variants of this type · 1

1.1A parameter that gives perpendicularity

Worked example

For which kk is the vector (2,k)(2,k) perpendicular to (3,−6)(3,-6)?

Solution

IdeaDot product 00.
  1. 6−6k=06-6k=0, k=1k=1.
Check(2,1)⋅(3,−6)=0(2,1)\cdot(3,-6)=0 ✓.
Common mistakeEquating component ratios — that is parallelism.
2

Vectors in geometry

A parallelogram, a midpoint, division in a ratio, the length of a combination of vectors.

Worked example

∣u⃗∣=2|\vec u|=2, ∣v⃗∣=3|\vec v|=3, u⃗⋅v⃗=−3\vec u\cdot\vec v=-3. What is ∣u⃗−v⃗∣|\vec u-\vec v|?

Solution

IdeaSquare it and expand like a short multiplication formula.
  1. ∣u⃗−v⃗∣2=∣u⃗∣2−2u⃗⋅v⃗+∣v⃗∣2|\vec u-\vec v|^2=|\vec u|^2-2\vec u\cdot\vec v+|\vec v|^2.
  2. Substitute ∣u⃗∣2=4|\vec u|^2=4, u⃗⋅v⃗=−3\vec u\cdot\vec v=-3, ∣v⃗∣2=9|\vec v|^2=9: 4−2(−3)+94-2(-3)+9.
  3. Compute: 1919, so ∣u⃗−v⃗∣=19≈4.36|\vec u-\vec v|=\sqrt{19}\approx4.36.
CheckThe angle is obtuse, so the difference is longer than 4+9≈3.6\sqrt{4+9}\approx3.6 ✓.
Common mistake∣u⃗−v⃗∣=∣u⃗∣−∣v⃗∣|\vec u-\vec v|=|\vec u|-|\vec v|.

Practice · 20

Test yourself with problems and full solutions.

Go to practice