Inputs
Example Data Table
A small example demonstrating a 3×2 basis and a 3×1 vector.
Example A
| 1 | 1 |
|---|---|
| 1 | -1 |
| 0 | 1 |
Example x
| 2 |
|---|
| 1 |
| 3 |
Results
Formula Used
For a basis matrix A whose columns span a subspace of ℝm, the orthogonal projection onto Col(A) is:
We compute an orthonormal basis Q via modified Gram–Schmidt. This avoids explicit inversion and is typically more numerically stable. If requested, we attempt the normal-equations formula using (AᵀA)−1.
How to Use
- Enter your basis matrix A. Each row on a separate line.
- Optionally enter a vector x to project onto Col(A).
- Choose the method and number of decimal places to display.
- Click Compute Projection to generate P and optional P x.
- Use the CSV buttons to export P, Q, or P x as files.
- Click Download Results as PDF to capture the result card.