0:00 / 0:00

Basics of Systems of Linear Equations

Linear Equations

A linear equation with unknowns x1,x2,,xn\colorOne{x_1,x_2,\dots,x_n} is an equation written in the form:
𝑎1𝑥1+𝑎2𝑥2++𝑎𝑛𝑥𝑛=𝑏\boxed{\quad 𝑎_1\colorOne{𝑥_1}+𝑎_2\colorOne{𝑥_2}+⋯+𝑎_𝑛\colorOne{𝑥_𝑛}=𝑏 \quad}
Notes
  • Each term is of degree 1     \implies a coefficient aiRa_i \in \reals times a single variable/unknown
  • aia_i cannot all be 0

Examples
  • linear equation with 2 unknowns: ln(3)x1πy=1\ln(3)x-\dfrac{1}{\pi}y=1
  • linear equation with 4 unknowns: 4𝑥1+5𝑥2x3+2𝑥4=e2-4𝑥_1 + 5𝑥_2 - x_3 + 2𝑥_4 = e^2
  • non-linear equation with 2 unknowns: sin(3x)y2=1\sin(3x)-y^2=1

PAGE BREAK

System of Linear Equations

A system of linear equations (SLE) or linear system is a collection of linear equations with the same variables x1,x2,,xn\colorOne{x_1,x_2,\dots,x_n}:
m equations {a11x1+a12x2++a1nxn=b1a21x1+a22x2++a2nxn=b2am1x1+am2x2++amnxn=bmm \text{ equations } \left\{ \begin{array}{ccccccccl} a_{11}\colorOne{\colorOne{x_1}}&+&a_{12}\colorOne{\colorOne{x_2}}&+&\cdots&+&a_{1n}\colorOne{\colorOne{x_n}} &=& b_1\\ a_{21}\colorOne{x_1}&+&a_{22}\colorOne{x_2}&+&\cdots&+&a_{2n}\colorOne{x_n} &=& b_2\\ &&&\vdots&&\\ a_{m1}\colorOne{x_1}&+&a_{m2}\colorOne{x_2}&+&\cdots&+&a_{mn}\colorOne{x_n} &=& b_m\\ \end{array} \right.

A system with mm equations (rows) and nn unknowns (terms/columns) is of size m×nm\times n.

PAGE BREAK

Solutions to Linear Systems

A solution to an m×nm\times n SLE is a vector x=x1,x2,,xn\vec x = \lang x_1, x_2, \dots, x_n\rang that satisfies all mm equations.
Two SLEs are equivalent if they have the same solution.
Example
x=[xy]=[12]\vec x = \begin{bmatrix} x\\ y \end{bmatrix} = \begin{bmatrix} 1\\ -2 \end{bmatrix} is a solution to the following equivalent SLEs:
x+y=12xy=4\begin{array}{rcl} x+y&=&-1\\ 2x-y&=&4 \end{array} and 2x+2y=22xy=4\begin{array}{rcl} 2x+2y&=&-2\\ 2x-y&=&4 \end{array}
Family of Solutions
A k\colorFour{\bm{k}}-parameter family of solutions to a SLE is a set of solutions which contains kk parameters (real number variables).
A family of solutions consists of infinitely many solutions (but not every vector is a solution!)
Example
x=[1t2ss]\vec x = \begin{bmatrix} 1\\ t\\ 2-s\\ s \end{bmatrix} is a 2-parameter family of solutions (with parameters s, tRs,\ t \in \reals) to the SLE:
x1+x3+x4=3x1x3x4=1\begin{aligned} x_1 +x_3+x_4&=3\\ x_1 -x_3-x_4 &=-1 \end{aligned}
Wize Tip
We can rewrite the general solution to clearly see that it is a 2-parameter family of solutions:
x=[1020]+t[0100]+s[0011]\vec x = \begin{bmatrix} 1\\ 0\\ 2\\ 0 \end{bmatrix} + t\begin{bmatrix} 0\\ 1\\ 0\\ 0 \end{bmatrix} +s\begin{bmatrix} 0\\ 0\\ -1\\ 1 \end{bmatrix}

0:00 / 0:00

Example: Linear Equations

1. Determine whether the following are linear equations in the variables x, y, zx,\ y,\ z.
A) 5xy2=30.5z\sqrt{5}x-\frac{y}{2}=3-0.5z
Linear. (Can be rearranged to the standard form)
The variables x, y, zx,\ y,\ z are all linear with constant coefficients in front.
B) 2𝑥2sin𝑦+1𝑧=02𝑥^2−\sin𝑦+\frac1𝑧=0
Non-linear.
x2x^2 is quadratic, sin y\sin\ y is a trigonometric function, 1z\frac{1}{z} is a reciprocal function.
C) sin(40)𝑥+24𝑧=13\sin(40)𝑥+2^4𝑧=−\frac{1}{3}
Linear.
x, zx,\ z are linear with constant coefficients in front, and the coefficient in front of yy is 0.
D) sin(0)x+(e01)z=0\sin(0)x + (e^0 - 1)z = 0
Non-linear.
The coefficients for each of the variables x, y, zx,\ y,\ z is 0 (yy does not appear, sin(0)=0\sin(0)=0, and e01=0e^0 -1 = 0).
This equation just says 0=00=0, and since there are no variables, it is not linear.
Which of the following are linear equations in the variables p, q, rp,\ q,\ r? [Select all that apply]
Determine which vectors are solutions to the following SLE [select all that apply]:
x1  5x2 +x3=2x1 +5x2 3x3= 6\begin{alignedat}{8} x_1\ &-&\ 5x_2\ &+& x_3 &=& 2\\ -x_1\ &+& 5x_2\ &-& 3x_3 &=&\ -6 \end{alignedat}

Extra Practice