Vectors in space and operations on them
The vector AB with initial point A(x₁, y₁, z₁) and endpoint B(x₂, y₂, z₂) has coordinates (x₂ − x₁, y₂ − y₁, z₂ − z₁); equal vectors have equal corresponding coordinates. The length of a(a₁, a₂, a₃) is |a| = √(a₁² + a₂² + a₃²). Addition and multiplication by a number work coordinatewise: a + b = (a₁ + b₁, a₂ + b₂, a₃ + b₃), λa = (λa₁, λa₂, λa₃); geometrically the triangle, parallelogram and parallelepiped rules give AB + BC = AC, AB + AD = AC, AB + AD + AA₁ = AC₁. Non-zero a and b are collinear if a = λb, i.e. their coordinates are proportional. With the unit vectors i(1, 0, 0), j(0, 1, 0), k(0, 0, 1) we write a = a₁i + a₂j + a₃k. The dot product is a · b = |a||b| cos φ = a₁b₁ + a₂b₂ + a₃b₃ (a number!). Consequences: cos φ = (a · b)/(|a||b|); a ⊥ b ⇔ a · b = 0; a · a = |a|².
A solar panel gets more energy when the angle between the sunlight direction and the panel’s normal is small: the share is cos φ = (a · b)/(|a||b|). For normal a(0, 0, 1) and light direction b(1, 0, 1) we get a · b = 1, |b| = √2 and cos φ ≈ 0.71: the panel receives about 71 % of the most light it could.
Computer-graphics specialists compute light and shadow with the dot product, robotics engineers compare directions of movement, and solar-energy designers choose the tilt of panels.
In daylight by a window, out of direct sunshine, hold a white sheet of paper and tilt it slowly: it looks brightest when it faces the light and dimmer as it tilts away. Do not look at the sun.
“Vector journey”: on paper, record three consecutive “steps” (vectors a, b, c — for example 2 m east, 1 m north, 1.5 m up) in coordinates starting from a corner. Compute the coordinates of a + b + c and its length, and compare with the straight-line distance.