State the target
(a2+b2+c2)(x2+y2+z2)≥(ax+by+cz)2 This is the Cauchy–Schwarz inequality in three dimensions. We prove it via an exact identity.
Expand the left product
∑a2∑x2=a2x2+a2y2+a2z2+b2x2+b2y2+b2z2+c2x2+c2y2+c2z2 We multiply out the two brackets, giving nine terms.
Expand the right square
(ax+by+cz)2=a2x2+b2y2+c2z2+2(axby+bycz+axcz) We square the linear combination, obtaining three squared terms and three cross terms.
Form the difference
D=(a2+b2+c2)(x2+y2+z2)−(ax+by+cz)2 We compute the left minus the right and hope to recognise a sum of squares.
Cancel the matching squares
a2x2, b2y2, c2z2 cancel These three terms appear on both sides and disappear in the difference.
Write the surviving terms
D=a2y2+b2x2+b2z2+c2y2+a2z2+c2x2−2(abxy+bcyz+acxz) Six mixed square terms remain, minus twice the three cross terms.
Group into three pairs
(a2y2−2abxy+b2x2)+(b2z2−2bcyz+c2y2)+(a2z2−2acxz+c2x2) Each pair of square terms is matched with a cross term to complete a square.
Write as three squares
D=(ay−bx)2+(bz−cy)2+(az−cx)2 This is Lagrange's identity: the difference is exactly a sum of three squares.
Use non-negativity
(ay−bx)2,(bz−cy)2,(az−cx)2≥0 Each square is non-negative, so their sum is non-negative.
Deduce D≥0
Since D is a sum of squares, it is at least 0.
Rearrange
(a2+b2+c2)(x2+y2+z2)≥(ax+by+cz)2 D\ge0 is exactly the required inequality.
State equality condition
ay=bx, bz=cy, az=cx Equality needs all three squares to vanish, which means (a,b,c) and (x,y,z) are proportional.
Interpret geometrically
equality⟺(a,b,c)∥(x,y,z) Cauchy–Schwarz becomes an equality precisely when the two vectors are parallel.
Verify an example
(1,2,2)⋅(2,1,2): 9⋅9=81≥82=64 Checking a=(1,2,2), x=(2,1,2): left is 9\times9=81, right is (2+2+4)^2=64, and 81\ge64.
Conclude
(a2+b2+c2)(x2+y2+z2)≥(ax+by+cz)2 Therefore the inequality holds for all real numbers, with equality iff the vectors are proportional.