Linear Algebra
Vector Projection
Projection of u onto v.
Formula
Formula
proj_v u = (u·vv·v) v
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| u | vector to project | list of real numbers | — | input |
| v | direction vector | list of real numbers | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenu = 3, 4, v = 1, 0
Result[ 3, 0 ]
Example 2
Givenu = 2, 2, v = 0, 3
Result[ 0, 2 ]