LeoMath

Explore

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
⟨u,v⟩2≤‖u‖2‖v‖2‖u‖2‖v‖2−⟨u,v⟩2=‖v‖2‖u−tv‖2
inner product
Arrow keys move
Back to the article →

What did you observe?Play first, then answer. Read the explanation only after you have thought it through.

  1. 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. 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. 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?

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