Linear Equation

A linear equation in variables is an equation of the form where

  • are the variables (unknowns)
  • are coefficients
  • is the constant term

To solve systems of linear equations, we use Matrix.

Next, see Homogeneous Linear Equation.

System of Linear Equations

If we have a set of linear equations, we can write it down in matrix form, i.e.:

  • where is a matrix

This is very fundamental

Systems of linear equations are used eveywhere.

The solution is given by

How many solutions are there? Is there no solution, 1 solution, or an infinite amount of solutions?

  • It seems like there is only 1 solution, because the matrix inverse is unique. So is only invertible when there is a single solution. When there are multiple or no solutions, cannot be invertible. Because if there was, then there would be multiple matrix inverses. Which is a contradiction. If there are no solutions but a matrix inverse exists, that is also a contradiction

We can first examine A. Remember the RREF stuff.

So there are 2 ways you can visualize .

  1. You can see it row-wise, where you have a dot product between the -th row of and , where .

  2. You can see it as a column-wise linear combination, where you have

  • note that this only works because the second is a column vector

With this way of seeing the matrix multiplication, you can see that a solution only exists when is the in Column Space of !!

Abstract

Determining whether has a solution thus amounts to testing whether is in the span of the columns of .

Interview question

For to have a solution , what are the requirements of ?

  • If you want it to work for all , then the column space of must be
  • must have a least vectors for that to work.
  • If has more than vectors, then is not linearly independent
  • So must be exactly for it to have an inverse