Linear System

Solving 2 unknowns with 2 equations

Example

Solve the following linear equations 2xy=0,x+2y=32x - y = 0, -x + 2y = 3

The above equation can be represented as linear combination of columns

x[21]+y[12]=[03] x \begin{bmatrix} 2 \\ -1 \end{bmatrix} + y \begin{bmatrix} -1 \\ 2 \end{bmatrix} = \begin{bmatrix} 0 \\ 3 \end{bmatrix}

The matrix representation of above equations is AX=b AX = b[2112][xy]=[03] \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 0 \\ 3 \end{bmatrix}

The above equation solving is simple, Can we solve for AX=bAX = b for every bb ?

Maybe, It depends on A we had chosen, Suppose if we consider three dimensional and all the equations are in the same plane then the linear combination of it also lies in the same plane. So in that case we may not be able to cover all bb's

How to solve AX = b

Elimination and Back substution

Convert AA to upper triangular matrix UU

Once we got upper triangular matrix from AA we can back substitute values and find XX

i.e, the above equation is converted to AU=bAU = b'

Matrices

AX=b AX = bX=A1b X = A^{-1}b

results matching ""

    No results matching ""