Solve Using LU Decomposition
This example shows how to use LU Decomposition to solve a linear system of equations.
Problem:
Suppose we have:
Solve for
Solution:
First we define
Inspecting the first line we realize this is easy to solve using Forward Substitution, solving for
Inspecting the last line we realize this is easy to solve using Backward Substitution, solving for