# Confusion about week 2 exercise 5

I Have no idea what it wants me to do

From the last line of the reduced matrix A_ref find π₯4
. Then you can calculate each of the π₯3
, π₯2
and π₯1
taking the elements of the matrix A_ref[i,j] and solving the linear equations one by one.

Suppose that the augmented matrix for a linear system has been reduced by row operations.
just like this example:
|1 -3 4 7|
|0 1 2 2 |
|0 0 1 5 |

assume the variables range from x1 to x3
to get the answer of all the variables is to use process called back substitution.
start from the last row and check x3 and associated value which is now x3 = 5 and then go the middle row and then since you have x3, find x2.
x2 = 2 - 2(x3)
x2 = 2 - 10
x2 = -8
lastly you can find easily x1 using the same path, that is what questions needs you to do, and in code you have to figure it using list slice and indices.

I hope that clarifies your questions.
Letβs know the progress.

Thanks

Thanks, I managed to do everything and passed my lab.