If you see this, something is wrong
First published on Thursday, Sep 24, 2026 and last modified on Sunday, Nov 15, 2026
The Matrix View
Now we shall discover the systems of linear equations and see how they can be viewed as matrix equations.
Travelling Plane
But let's start with the example of the previous lecture.
A plane travels between two cities separated by 5000 km.
What is the system of linear equations to solve? Let's remember.
Consider the system x minus y equals 800, x plus y equals 1000.
\( \left\{ \begin{matrix} x&-&y&=&800\\ x&+&y&=&1000 \end{matrix} \right.\)
And consider the matrix and the vectors.
The matrix of coefficients A equals 1, -1, 1, 1, the unknown column vector big X equals x, y, and the column vector of second members big B equals 800, 1000.
\( A=\begin{bmatrix} 1&-1\\ 1&1 \end{bmatrix}\)
\( X=\begin{bmatrix} x\\ y \end{bmatrix}\)
\( B=\begin{bmatrix} 800\\ 1000 \end{bmatrix}\)
For the illustration of the matrix multiplication, watch the video.
Let's multiply the matrix A by the vector big X.
AX equals 1, -1, 1, 1 multiplied by the column vector x, y, that is equal to 1, -1 multiplied by x, y element by element and summed.
That is x minus y.
1, 1 multiplied element by element by x, y and summed, x plus y.
So AX is equal to x minus y, x plus y.
\( AX=\begin{bmatrix} 1&-1\\ 1&1 \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} =\begin{bmatrix} x-y\\ x+y \end{bmatrix}\)
Consequently, the matrix equation equivalent to the system is the following.
The system of two linear equations in x, y in R to the square, x minus y equals 800 x plus y equals 1000, is equivalent to the matrix equation in the vector big X with two real elements, AX equals B.
\( AX=B\)
Let's generalize that.
What is a general system of linear equations? Consider the system of m linear equations in n real variables.
The n variables are x_0, x_1, etc., x_{n-1}.
The second members are b_0, b_1, etc., b_{m-1}.
And there are m equations with coefficients, where a_{ij} is the coefficient of x_j in the i-th equation, and b_i is the second member of the i-th equation.
\( \left\{ \begin{matrix} a_{00}x_0&+&a_{01}x_1&+&…&+&a_{0,n-1}x_{n-1}&=&b_0\\ a_{10}x_0&+&a_{11}x_1&+&…&+&a_{1,n-1}x_{n-1}&=&b_1\\ \vdots&&\vdots&&&&\vdots&&\vdots\\ a_{m-1,0}x_0&+&a_{m-1,1}x_1&+&…&+&a_{m-1,n-1}x_{n-1}&=&b_{m-1} \end{matrix} \right.\)
And consider the matrix and the vectors.
The matrix of coefficients A equals a_{00}, a_{01}, etc., a_{0,n-1}.
Second row, a_{10}, a_{11}, etc., a_{1, n-1}, etc., until the last row, a_{m-1,0}, a_{m-1,1}, etc., a_{m-1,n-1}.
The unknown vector big X equals x_0, x_1, etc. x_{n-1}.
And the vector of the second members big B equals b_0, b_1, etc. b_{m-1}.
\( A=\begin{bmatrix} a_{00}&a_{01}&…&a_{0,n-1}\\ a_{10}&a_{11}&…&a_{1,n-1}\\ \vdots&\vdots&&\vdots\\ a_{m-1,0}&a_{m-1,1}&…&a_{m-1,n-1}\\ \end{bmatrix}\)
\( X=\begin{bmatrix} x_0\\ x_1\\ \vdots\\ x_{n-1} \end{bmatrix}\)
\( B=\begin{bmatrix} b_0\\ b_1\\ \vdots\\ b_{m-1} \end{bmatrix}\)
For the illustration of the matrix multiplication, watch the video.
Let's multiply the matrix A by the vector big X.
It is a column vector with first element, the sum of the products element by element of the first row of A by the column vector big X, and it is the left member of the first equation.
The second element is the sum of the products element by element of the second row of A by the column vector big X, and it is the left member of the second equation.
The last element is the sum of the products element by element of the last row of A multiplied by the column vector big X, and it is the left member of the last equation.
\( AX=\begin{bmatrix} a_{00}&a_{01}&…&a_{0,n-1}\\ a_{10}&a_{11}&…&a_{1,n-1}\\ \vdots&\vdots&&\vdots\\ a_{m-1,0}&a_{m-1,1}&…&a_{m-1,n-1}\\ \end{bmatrix} \begin{bmatrix} x_0\\ x_1\\ \vdots\\ x_{n-1} \end{bmatrix} =\begin{bmatrix} a_{00}x_0&+&a_{01}x_1&+&…&+&a_{0,n-1}x_{n-1}\\ a_{10}x_0&+&a_{11}x_1&+&…&+&a_{1,,-1}x_{n-1}\\ \vdots&&\vdots&&&&\vdots\\ a_{m-1,0}x_0&+&a_{m-1,1}x_1&+&…&+&a_{m-1,n-1}x_{n-1} \end{bmatrix}\)
Consequently, we have a matrix equation equivalent to the system.
The system of m linear equations in x_0, x_1, etc. x_{n-1}, that is so, is equivalent to the matrix equation in the vector big X with n real elements, AX equals B.
\( AX=B\)
What's coming now? Now we shall solve a square matrix equation in Python with the functions solve of A and B.