Projection and the Cauchy–Schwarz slack
Drag u and v and see the projection of u onto v and what is left over; two bars compare |⟨u,v⟩| with ‖u‖‖v‖. Then switch to a weighted inner product: perpendicularity, the unit circle and the projection all change, and the inequality still holds.
- u
- v
- projection tv
- remainder u − tv
- unit “circle” ‖x‖ = 1
|⟨u,v⟩|5.5
‖u‖‖v‖8.51
⟨u,v⟩ 5.5cos θ 0.646projection coefficient t 0.55slack 42.25
inner product
Arrow keys move
What did you observe?Play first, then answer. Read the explanation only after you have thought it through.
- 1.Drag u once around the origin. When is the |⟨u,v⟩| bar as long as ‖u‖‖v‖? How are u and v related then?
- 2.Pull u away from the line through v. How is the “slack” related to the length of the dashed red remainder u − tv?
- 3.Switch to the weighted inner product 2u₁v₁ + u₂v₂ and press “Orthogonal when weighted”. u and v do not look perpendicular, yet their inner product is 0. What has the unit circle become? Does the inequality still hold?
The bars are equal only when lies on the line through (same or opposite direction), that is, when are dependent: the equality case. The slack equals exactly: multiply the proof's by and this is what you get. At the start, : , , slack . So “a projection is never longer” and Cauchy–Schwarz are the same statement, and the slack is the length of what is left over (squared, times ). With the weighted inner product the points of length form the ellipse ; and have weighted inner product , so they are orthogonal and the projection is . Right angles, circles and projections are all decided by the inner product, and the proof used only the three axioms, so the inequality holds here just the same.
Related concept: Inner products & Cauchy–Schwarz
Discussion
Found a mistake, have a question or a suggestion? You can also write to 620026600@qq.com
No comments yet. Share your understanding, ask a question, or point out an error on this page.
Log in to join the discussion