Types: N/A
Examples: N/A
Constructions: N/A
Generalizations: 15.1 LU Factorization without Pivoting

Properties: N/A
Sufficiencies: N/A
Questions: N/A

Review of Nonsingular Gravity Model

Let's look back at our 12.2.1 Nonsingular Matrix to Model Gravity.

[13.09.0013.310.8913.612.96][x1x2x3]=[3.0002.5591.236]

Recall that the first thing we did was annihilate our first column step-by step.

[100110001]S21(1)[13.09.0013.310.8913.612.96][x1x2x3]

After annihilating that value, we moved down and annihilated the value under.

[100010101]S31(1)[100110001]S21(1)[13.09.0013.310.8913.612.96][x1x2x3]

After that, we moved to pivot 2.

[100010021]S32(2)[13.09.0000.31.8900.63.96]S31(1)S21(1)A

Notice that

S31(1)S21(1)=[100010101][100110001]=(I3+1e3e1T)(I3+1e2e1T)=I3+1e3e1T+(I3+1e3e1T)1e2e1T=I3+1e3e1T+1e2e1T+1e3e1T1e2e1T=I3+1e3e1T+1e2e1T+1e3(e1Te2)e1TS31(1)S21(1)=I3+1e2e1T+1e2e1T=[100010001]+[000000100]+[000100000][100010101][100110001]=[100110101]

For such a complex calculation that matrix multiplication is, we seem to get an elegant answer. It looks like the two shear matrices just overlapped on top of each other. Unfortunately, this doesn't always work.

S32(2)S31(1)S21(1)[100110121]

Let's do the calculation to see why.

[100010021][100110101]=[100110121]

The stuff that happens in pivot 2 stays separate from the stuff that happens in pivot 2.

[100010021]L2[100110101]L1[13.09.0013.310.8913.612.96]A=[13.09.0000.31.89000.18]U

Recall the definition

Gauss Transform

Let natural numbers n,kN with k<n. Let 3.1 Column Vector τtauRn whose first k components are zero. Suppose τ is in the form
τT=[00kτk+1τn]
Then, a Gauss transformation is a matrix
Lk=InτekT
We call the vector τ a Gauss vector.

Let's apply this definition to our example.

L1=[100110101]=[100010001]+[000100100]=[100010001][000100100]=[100010001][011][100]L1=I3τ1e1T with τ1=[011]=[0a21a11a31a11]
Why are we even using a Gauss Transform?

The whole idea is we're trying to solve a nonsingular linear systems problem by turning our modeling matrix into 8.9 Upper-Triangular Matrix. The whole process of turning our matrix into upper-triangular is multiplying A on the left by a sequence of elementary matrices. In this case, our matrix is a 12.3 Regular Matrix. The trend that we notice is that the shear matrices for each pivot is "married" into one. This matrix is known as the 9.12 Gauss Transform. Instead of using a bunch of 9.8 Shear Matrix, we can put the c values into the same column.

We solve our NLSP from left to right.

L2L1A=U

To get rid of L2 first, we can multiply it by its 13.1 Inverse of a Square Matrix.

L21L2L1A=L21U

Once we've gotten rid of L2, we want to get rid of L1.

L11L21L2L1A=L11L21UL11I3L1A=L11L21UL11L1A=L11L21UI3A=L11L21UA=L11L21U

Note the inverse of our first Gauss transform:

L11=(I3τ1e1T)1=(I3+τ1e1T)

We can write a more general case as:

Lk1=(InτkekT)1=(In+τkekT)

The first Gauss transform zeroes out the entries underneath the first pivot. The second Gauss transform zeroes out the entries underneath the second pivot. We can generalize, saying a Gauss transform zeroes out the entries underneath the kth pivot.

L11L21=[100110101][100010021]=[100110121]=L

We now have our L matrix for LU factorization.

[100110121]L[13.09.0000.31.89000.18]U=[13.09.0013.310.8913.612.96]AAx=b(LU)x=bL(Ux)=bLy=bforward substitution,Ux=yBbackwards substitution

Let's see LU factorization in action by starting with 12.5 Forward Substitution.

[100110121][y1y2y3]=[3.0002.5591.236]y1=31y1+1y2=2.559y2=11(2.5591(3))=0.4411y1+2y2+1y3=1.236y3=11(1.2362(0.441)3)=0.882

Therefore,

Ly=by=[3.0000.4410.882]Ux=y[13.09.0000.31.89000.18][x1x2x3]=[3.0000.4410.882]

We can solve this using 12.2 Backwards Substitution.

x30.18=0.882x3=4.9x20.3+x31.89=0.441x2=29.41x1+3x2+9x3=3x1=41.1[x1x2x3]=[41.129.44.9]

This is the same solution we found in 12.2.1 Nonsingular Matrix to Model Gravity.