Proving the Cauchy-Schwarz Inequality

Reported in interviews at DRW

Problem statement

Prove the Cauchy-Schwarz inequality: for any two vectors $u$ and $v$ in a real inner-product space, $$\lvert \langle u, v \rangle \rvert \le \lVert u \rVert \, \lVert v \rVert,$$ with equality if and only if $u$ and $v$ are linearly dependent. State the proof cleanly and give the equality condition.

Show hint

What would make a proof of this inequality valid in every real inner-product space, not just for coordinate vectors?

Relevant roles: Research Scientist, Applied Scientist, ML Engineer and Data Scientist.

Related free problems