ProjectionMatrix - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[LinearAlgebra]

  

ProjectionMatrix

  

construct the matrix of the orthogonal projection onto a subspace

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ProjectionMatrix(S, options)

Parameters

S

-

{set, list}(Vector); Vectors spanning the subspace to project onto

options

-

(optional); constructor options for the result object

Description

• 

The ProjectionMatrix(S) command constructs the matrix of the orthogonal linear projection onto the subspace spanned by the vectors in S.  If B is a maximal, linearly independent subset of S and M is the Matrix whose columns are the Vectors in B, then

ProjectionMatrix⁡S=M·MT·M-1·MT

• 

Additional arguments are passed as options to the Matrix constructor which builds the result.

Examples

> 

with⁡StudentLinearAlgebra:

> 

S≔1,2,3,4,4,3,2,1

S≔1234,4321

(1)
> 

P≔ProjectionMatrix⁡S

P≔71025110−1525310151101101531025−1511025710

(2)
> 

v≔1,0,−1,3

v≔10−13

(3)
> 

w≔P·v

w≔012132

(4)
> 

Basis⁡op⁡S,w=S

1234,4321=1234,4321

(5)
> 

w·v−w

0

(6)
> 

ProjectionMatrix⁡a,1

a2a2+1aa2+1aa2+11a2+1

(7)

Compatibility

• 

The Student[LinearAlgebra][ProjectionMatrix] command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

Matrix

Student[LinearAlgebra]

Vector