Types: N/A
Examples: N/A
Constructions: N/A
Generalizations: N/A

Properties: N/A
Sufficiencies: N/A

Nonsingular Matrix to Model Gravity

Let's experiment with gravity. Suppose we study a falling object (ball). We will measure the height h of the ball at different times in an experiment.

Suppose we collect the following data.
![[Pasted image 20240524134524.png#invert]]
We have three data points:

(t1,h1)=(3.0,3)(t2,h2)=(3.3,2.559)(t3,h3)=(3.6,1.236)

where t is in seconds and h is in meters. Notice that our data takes the form of a parabolic curve. We can guess that we can use a quadratic polynomial to model our data. The general form of a quadratic polynomial for our function h(t) is

h(t)=a0+a1t+a2t2

To create a model of our data, we want to find the coefficients a0,a1,a2 that most closely fit our data such that

hi=h(ti)=a0+a1ti+a2ti2

With this in mind, let's plug in our data points.

h(t1)=a01+a1t+a2t2=a01+a13.0+a29=3h(t2)=a01+a13.3+a210.89=2.559h(t3)=a01+a13.6+a212.96=1.236

Do you see a 10 Matrix-Vector Multiplication problem? Do you see columns?

[13.09.0013.310.8913.612.96]3×3[a0a1a2]3×1=[32.5591.236]3×1

Remark.
In it's current form, our linear-systems problem is difficult to solve. Instead of attempting to solve it how it currently is, let's transform Ax=b into the system Ux=y where U is an 8.9 Upper-Triangular Matrix so we can use 12.2 Backwards Substitution.


\begin{proof}[Solution.]

Step 1: Identify first pivot

We want to identify the first entry with row and column index 1. This entry must be nonzero and will be referred to as the first pivot of our matrix. Likewise, column 1 will be referred to as the first pivot column.

For our matrix, a11=1 is nonzero. Thus, we will make this our first pivot.

[13.09.0013.310.8913.612.96]

Column A(:,1) of matrix A is the first pivot column.

Step 2: Create zeroes in all entries below the first pivot

To turn our matrix into an 8.9 Upper-Triangular Matrix, we can multiply the original system of equation by a sequence of shear matrices to introduce zeroes in all entries to our pivot column A(:,1) that are under the pivot.

In our case, we need to annihilate entries a21 and a31.

[13.09.0013.310.8913.612.96]

First, let's transform a21 to zero. How can we do this via 6.1 Linear Combination of Vectors?

1A(1,:)+A(2,:)=1[13.09.00]+1[13.310.89]=[00.31.89]

When modifying row 2, we do not want to touch rows 1 or 3. We can do this by multiplying A on the left-hand side by a shear matrix Sik(c).

We need to find what our c value will be for our shear matrix.

S31(c)A=[××××××0××]Entry31(S31(c)A)=0Row3(S31(c)Column1(A)=0[c01][111]=c1+11=0c=11 [100110001][13.09.0013.310.8913.612.96][a0a1a2]=[100110001][3.002.5591.236][13.09.0000.31.8913.612.96][a0a1a2]=[3.000.4421.236]

Because we are working with an equation, anything done to the left of the = sign has to be done on the right also.

Next, let's create a zero at a31=1 by taking the linear combination 1A(1,l:)+A(3,:).

1[13.009.00]+1[13.612.96]=[00.63.96]

Again, we do not touch the other rows. We will multiply on the left by shear matrix S31(1) where k=1 and i=3 because we add a scalar multiple of row 1 to row 3 (AKA linear combination). We set c=a31a11=1 and multiply:

[100010101][13.09.0000.31.8913.612.96][a0a1a2]=[100010101][3.000.4421.236][13.09.0000.31.8900.63.96]=[3.000.4421.764]

Step 3: Identify next pivot

To continue transforming our matrix into an 8.9 Upper-Triangular Matrix, we move to the next row down and next column to the right. The first nonzero entry in this row is the second pivot, and this column is called the second pivot column.

In our case, our second pivot is at entry (2,2).

[13.09.0000.31.8900.63.96]

Column A(:,2) is our second pivot column.

Does it matter what pivot we choose?

When we think about constructing an upper-triangular matrix, we generally prefer to choose our pivots along the diagonal because it is easier to keep track of. In much more complex situations like computer memory optimization, it may be better to choose a pivot that is not along the diagonal.

Step 4: Create zeros in all entries below current pivot

Again, we use a series of shear matrices to introduce zeros in all entries under the current pivot in our current pivot column.

Let's identify where we need to introduce zeros.

[13.09.0000.31.8900.63.96]

Because we want to eliminate the entry at row 3 column 2 of A, we choose i=3 and k=2 for our shear matrix. Let's find our c value that we will multiply by.

S32(c)A=[×××××××0×]Entry32(S32(c)A)=0Row3(S32(c))Column2(A)=0[0c1][3.00.30.6]=c0.3+10.6=0c=0.60.3c=2

Now that we have our shear matrix S32(2), let's multiply to find:

[100010021][13.09.0000.31.8900.63.96][a0a1a2]=[100010021][3.000.4421.764][13.09.0000.31.8900.00.18]=[3.000.4420.88]

Step 5: Repeat until all sub-diagonal elements are zero

If matrix A is not fully transformed into an upper-triangular coefficient matrix U, repeat steps 3 and 4.

In our gravity model, we are already done and do not need to repeat steps 3 and 4.

[13.09.0000.31.8900.00.18]U[a0a1a2]x=[3.000.4420.880]y

Now, we have transformed our original matrix A into our upper triangular matrix U. If we set E=S32(2)S31(1)S21(1), we can write a more simplified version of our system:

EA=U,Eb=y

Now, our system is designed so any solution of Ux=y will also be a solution to our original linear system of equations Ax=b. We can now solve for the values of x row-by-row using 12.2 Backwards Substitution.

0.18a2=0.882a2=0.8820.18=4.9

Using our linear equation result from row 3, we see

0.3a1+1.89a2=0.442a1=0.4421.89(4.9)0.3=29.4

Finally, we find a0 using our previous values

1a0+3a1+9a2=3a0=3329.49(4.9)1=41.1

Plugging into our original model h(t), we see

h(t)=4.9t2+29.4t41.1

We can simplify our quadratic polynomial by completing the square.

h(t)=4.9t2+29.4t41.1=4.9(t2+6t+99)41.1=4.9(t3)2+3

Our model indicates that we started our experiment at t=3 seconds dropping from an initial height of 3 meters with 0 initial velocity. Thus, we can conclude our model h(t) is valid for the domain [3,3.782).


Remark. This example demonstrates regular Gaussian Elimination to solve a system of n equations with n unknowns. This technique works well for a special type of matrix called a 12.3 Regular Matrix.

\end{proof}