GUIDING QUESTION:
How can I compute a solution to a linear system?
In many, many applications, we'll need to solve the linear systems $$\color{var(--emphColor)}{A}x=b_1, \,\, \color{var(--emphColor)}{A}x=b_2, \,\, \ldots, \,\, \color{var(--emphColor)}{A}x=b_N,$$ for many different load vectors $b_j$.
What if we run Gaussian Elimination once on $A$, keeping track of the elementary row operations used.
The LU factorization results from recording the elementary row operations used in Gaussian Elimination.
The goal of Gaussian Elimination is to obtain an upper triangular system, so the resulting matrix is probably related to the $U$ we seek in an LU factorization.
Consider the array $L$ created during our Gaussian Elimination routine.