Column 1 Column 2 Column 3 Row1 value value value Row2 value value value Row3 value value value
diagonal 對角
commutative law
associative law
distributive law
A = [ 1 2 3 4 ] A=\begin{bmatrix}
1&2\\
3&4\\
\end{bmatrix} A = [ 1 3 2 4 ]
B = [ 1 − 2 2 − 4 ] B=\begin{bmatrix}
1&-2\\
2&-4\\
\end{bmatrix} B = [ 1 2 − 2 − 4 ]
A = [ a b c d ] B = [ 1 2 3 4 ] A ∗ B = [ a ∗ 1 + b ∗ 3 a ∗ 2 + b ∗ 4 c ∗ 1 + d ∗ 3 c ∗ 2 + d ∗ 4 ] A = [ 2 3 1 − 5 ] B = [ 4 3 6 1 − 2 3 ] A ∗ B = [ 2 ∗ 4 + 3 ∗ 1 2 ∗ 3 + 3 ∗ − 2 2 ∗ 6 + 3 ∗ 3 1 ∗ 4 + − 5 ∗ 1 1 ∗ 3 + − 5 ∗ − 2 1 ∗ 6 + − 5 ∗ 3 ] = [ 11 0 21 − 1 13 − 9 ] A [ n × m ] ∗ B [ m × s ] = C [ n × s ] A=\begin{bmatrix}
a&b\\
c&d\\
\end{bmatrix}
\\
B=\begin{bmatrix}
1&2\\
3&4\\
\end{bmatrix}
\\
A*B=\begin{bmatrix}
a*1+b*3 & a*2+b*4\\
c*1+d*3& c*2+d*4\\
\end{bmatrix}
\\
A=\begin{bmatrix}
2&3\\
1&-5\\
\end{bmatrix}
B=\begin{bmatrix}
4&3&6\\
1&-2&3\\
\end{bmatrix}
\\
A*B=\begin{bmatrix}
2*4+3*1 & 2*3+3*-2&2*6+3*3\\
1*4+-5*1& 1*3+-5*-2 &1*6+-5*3\\
\end{bmatrix}=
\begin{bmatrix}
11 & 0 &21\\
-1& 13 &-9\\
\end{bmatrix}\\
\underset{[n\times m]}{A}*\underset{[m\times s]}{B}=\underset{[n\times s]}{C} A = [ a c b d ] B = [ 1 3 2 4 ] A ∗ B = [ a ∗ 1 + b ∗ 3 c ∗ 1 + d ∗ 3 a ∗ 2 + b ∗ 4 c ∗ 2 + d ∗ 4 ] A = [ 2 1 3 − 5 ] B = [ 4 1 3 − 2 6 3 ] A ∗ B = [ 2 ∗ 4 + 3 ∗ 1 1 ∗ 4 + − 5 ∗ 1 2 ∗ 3 + 3 ∗ − 2 1 ∗ 3 + − 5 ∗ − 2 2 ∗ 6 + 3 ∗ 3 1 ∗ 6 + − 5 ∗ 3 ] = [ 11 − 1 0 13 21 − 9 ] [ n × m ] A ∗ [ m × s ] B = [ n × s ] C
A = [ a b c d ] a ∗ d − b ∗ c = 0 t h e n n o t i n v e r a b l e A ∗ A − 1 = I = [ 1 0 0 1 ] A − 1 = 1 ∣ a b c d ∣ ∗ [ d − b − c a ] high level matrix [ A I ] = [ A ∗ A − 1 I ∗ A − 1 ] = [ I A − 1 ] [ 1 0 0 ∣ 1 0 0 1 1 0 ∣ 0 1 0 1 1 1 ∣ 0 0 1 ] = [ 1 0 0 ∣ 1 0 0 0 1 0 ∣ − 1 1 0 0 0 1 ∣ 0 − 1 1 ] [ 1 0 0 ∣ 1 0 0 1 1 0 ∣ 0 1 0 1 1 1 ∣ 0 0 1 ] = [ 1 0 0 ∣ 1 0 0 0 1 0 ∣ − 1 1 0 0 0 1 ∣ 0 − 1 1 ] A=\begin{bmatrix}
a&b\\
c&d\\
\end{bmatrix}\\
{a*d-b*c=0} \;then\; not \;inverable\\
A * A^{-1}=I =\begin{bmatrix}
1&0\\
0&1\\
\end{bmatrix}
\\
A^{-1}=\frac{1} {\begin{vmatrix}
a&b\\
c&d\\
\end{vmatrix}} *\begin{bmatrix}
d&-b\\
-c&a\\
\end{bmatrix}\\
\text{high level matrix} \\
\begin{bmatrix}
A&I\\
\end{bmatrix}=
\begin{bmatrix}
A*A^{-1}&I*A^{-1}\\
\end{bmatrix}=
\begin{bmatrix}
I&A^{-1}\\
\end{bmatrix}\\
\begin{bmatrix}
1&0&0 &| & 1&0&0\\
1&1&0 &| & 0&1&0\\
1&1&1 &| & 0&0&1\\
\end{bmatrix}=
\begin{bmatrix}
1&0&0 &| & 1&0&0\\
0&1&0 &| & -1&1&0\\
0&0&1 &| & 0&-1&1\\
\end{bmatrix}\\
\begin{bmatrix}
1&0&0 &| & 1&0&0\\
1&1&0 &| & 0&1&0\\
1&1&1 &| & 0&0&1\\
\end{bmatrix}=
\begin{bmatrix}
1&0&0 &| & 1&0&0\\
0&1&0 &| & -1&1&0\\
0&0&1 &| & 0&-1&1\\
\end{bmatrix} A = [ a c b d ] a ∗ d − b ∗ c = 0 t h e n n o t in v er ab l e A ∗ A − 1 = I = [ 1 0 0 1 ] A − 1 = a c b d 1 ∗ [ d − c − b a ] high level matrix [ A I ] = [ A ∗ A − 1 I ∗ A − 1 ] = [ I A − 1 ] 1 1 1 0 1 1 0 0 1 ∣ ∣ ∣ 1 0 0 0 1 0 0 0 1 = 1 0 0 0 1 0 0 0 1 ∣ ∣ ∣ 1 − 1 0 0 1 − 1 0 0 1 1 1 1 0 1 1 0 0 1 ∣ ∣ ∣ 1 0 0 0 1 0 0 0 1 = 1 0 0 0 1 0 0 0 1 ∣ ∣ ∣ 1 − 1 0 0 1 − 1 0 0 1
I = [ 1 0 0 0 1 0 0 0 1 ] I=\begin{bmatrix}
1&0&0\\
0&1&0\\
0&0&1\\
\end{bmatrix} I = 1 0 0 0 1 0 0 0 1
A = [ 1 2 3 4 ] A T = [ 1 3 2 4 ] ( A − 1 ) T = ( A T ) − 1 A=\begin{bmatrix}
1&2\\
3&4\\
\end{bmatrix}\\
A^{T}=\begin{bmatrix}
1&3\\
2&4\\
\end{bmatrix}
(A^{-1})^T=(A^T)^{-1} A = [ 1 3 2 4 ] A T = [ 1 2 3 4 ] ( A − 1 ) T = ( A T ) − 1
[ 1 2 3 4 5 6 ] = = [ 5 6 3 4 1 2 ] \begin{bmatrix}
1&2\\
3&4\\
5&6\\
\end{bmatrix} ==\begin{bmatrix}
5&6\\
3&4\\
1&2\\
\end{bmatrix} 1 3 5 2 4 6 == 5 3 1 6 4 2
{ 1 ∗ x 1 + 2 ∗ x 2 + 3 ∗ x 3 = 5 2 ∗ x 1 + 3 ∗ x 2 + 4 ∗ x 3 = 7 = [ 1 2 3 5 2 3 4 7 ] \begin{cases}
1*x_1&+&2*x_2&+&3*x_3=5\\
2*x_1&+&3*x_2&+&4*x_3=7
\end{cases}=
\begin{bmatrix}
1&2&3&5\\
2&3&4&7\\
\end{bmatrix} { 1 ∗ x 1 2 ∗ x 1 + + 2 ∗ x 2 3 ∗ x 2 + + 3 ∗ x 3 = 5 4 ∗ x 3 = 7 = [ 1 2 2 3 3 4 5 7 ]
[ 0 3 − 6 6 4 − 5 3 − 7 8 − 5 8 9 3 − 9 12 − 9 6 15 ] = = [ 3 − 9 12 − 9 6 15 3 − 7 8 − 5 8 9 0 3 − 6 6 4 − 5 ] = [ 3 − 9 12 − 9 6 15 0 2 − 4 4 2 − 6 0 3 − 6 6 4 − 5 ] = [ 3 − 9 12 − 9 6 15 0 2 − 4 4 2 − 6 0 3 − 6 6 4 − 5 ] = [ 3 − 9 12 − 9 6 15 0 2 − 4 4 2 − 6 0 0 0 0 1 4 ] = [ 3 − 9 12 − 9 6 15 0 1 − 2 2 1 − 3 0 0 0 0 1 4 ] = [ 1 − 3 4 − 3 2 5 0 1 − 2 2 1 − 3 0 0 0 0 1 4 ] = [ 1 − 3 4 − 3 0 − 3 0 1 − 2 2 0 − 7 0 0 0 0 1 4 ] = [ 1 0 − 2 − 3 0 − 24 0 1 − 2 2 0 − 7 0 0 0 0 1 4 ] = { 1 ∗ x 1 − 2 ∗ x 3 + − 3 ∗ x 4 = 24 1 ∗ x 2 − 2 ∗ x 3 + 2 ∗ x 4 = − 7 x 5 = 4 \begin{bmatrix}
0& 3 &-6 &6 &4 &-5\\
3& -7 &8 &-5 &8 &9\\
3& -9 &12 &-9 &6 &15\\
\end{bmatrix}==
\begin{bmatrix}
3& -9 &12 &-9 &6 &15\\
3& -7 &8 &-5 &8 &9\\
0& 3 &-6 &6 &4 &-5\\
\end{bmatrix}=
\begin{bmatrix}
3& -9 &12 &-9 &6 &15\\
0& 2 &-4 &4 &2 &-6\\
0& 3 &-6 &6 &4 &-5\\
\end{bmatrix}\\=
\begin{bmatrix}
3& -9 &12 &-9 &6 &15\\
0& 2 &-4 &4 &2 &-6\\
0& 3 &-6 &6 &4 &-5\\
\end{bmatrix}=
\begin{bmatrix}
3& -9 &12 &-9 &6 &15\\
0& 2 &-4 &4 &2 &-6\\
0& 0 &0 &0 &1 &4\\
\end{bmatrix}\\=
\begin{bmatrix}
3& -9 &12 &-9 &6 &15\\
0& 1 &-2 &2 &1 &-3\\
0& 0 &0 &0 &1 &4\\
\end{bmatrix}=
\begin{bmatrix}
1& -3 &4 &-3 &2 &5\\
0& 1 &-2 &2 &1 &-3\\
0& 0 &0 &0 &1 &4\\
\end{bmatrix}\\=
\begin{bmatrix}
1& -3 &4 &-3 &0 &-3\\
0& 1 &-2 &2 &0 &-7\\
0& 0 &0 &0 &1 &4\\
\end{bmatrix}=
\begin{bmatrix}
1& 0 &-2 &-3 &0 &-24\\
0& 1 &-2 &2 &0 &-7\\
0& 0 &0 &0 &1 &4\\
\end{bmatrix}\\=
\begin{cases}
1*x_1 -2*x_3 +-3*x_4 =24\\
1*x_2 -2*x_3 +2*x_4 =-7\\
x_5=4
\end{cases} 0 3 3 3 − 7 − 9 − 6 8 12 6 − 5 − 9 4 8 6 − 5 9 15 == 3 3 0 − 9 − 7 3 12 8 − 6 − 9 − 5 6 6 8 4 15 9 − 5 = 3 0 0 − 9 2 3 12 − 4 − 6 − 9 4 6 6 2 4 15 − 6 − 5 = 3 0 0 − 9 2 3 12 − 4 − 6 − 9 4 6 6 2 4 15 − 6 − 5 = 3 0 0 − 9 2 0 12 − 4 0 − 9 4 0 6 2 1 15 − 6 4 = 3 0 0 − 9 1 0 12 − 2 0 − 9 2 0 6 1 1 15 − 3 4 = 1 0 0 − 3 1 0 4 − 2 0 − 3 2 0 2 1 1 5 − 3 4 = 1 0 0 − 3 1 0 4 − 2 0 − 3 2 0 0 0 1 − 3 − 7 4 = 1 0 0 0 1 0 − 2 − 2 0 − 3 2 0 0 0 1 − 24 − 7 4 = ⎩ ⎨ ⎧ 1 ∗ x 1 − 2 ∗ x 3 + − 3 ∗ x 4 = 24 1 ∗ x 2 − 2 ∗ x 3 + 2 ∗ x 4 = − 7 x 5 = 4
{ x 1 + 2 x 2 − x 3 = 3 − 2 x 1 − 2 x 2 + 4 x 3 = 0 2 x 2 + 2 x 3 = 6 = = x 1 [ 1 − 2 0 ] + x 2 [ 2 − 2 2 ] + x 3 [ − 1 4 2 ] = [ 3 0 6 ] A [ 1 2 − 1 − 2 − 2 4 0 2 2 ] ∗ x [ x 1 x 2 x 3 ] = [ 3 0 6 ] A x = b A m a t r i x ∗ x v e c t o r = b v e c t o r \begin{cases}
&x_1 &+ &2x_2 &-&x_3 &=&3\\
-&2x_1 &- &2x_2 &+&4x_3 &=&0\\
& & &2x_2 &+&2x_3 &=&6\\
\end{cases}==\\
x_1 \begin{bmatrix}
1\\
-2\\
0\\
\end{bmatrix}
+x_2 \begin{bmatrix}
2\\
-2\\
2\\
\end{bmatrix}
+x_3 \begin{bmatrix}
-1\\
4\\
2\\
\end{bmatrix}=
\begin{bmatrix}
3\\
0\\
6\\
\end{bmatrix}\\
A\begin{bmatrix}
1& 2 &-1 \\
-2&-2 &4 \\
0& 2 &2 \\
\end{bmatrix}
*x\begin{bmatrix}
x_1\\
x_2\\
x_3\\
\end{bmatrix}
=\begin{bmatrix}
3\\
0\\
6\\
\end{bmatrix}\\
Ax=b\\
A_{matrix}*x_{vector}=b_{vector} ⎩ ⎨ ⎧ − x 1 2 x 1 + − 2 x 2 2 x 2 2 x 2 − + + x 3 4 x 3 2 x 3 = = = 3 0 6 == x 1 1 − 2 0 + x 2 2 − 2 2 + x 3 − 1 4 2 = 3 0 6 A 1 − 2 0 2 − 2 2 − 1 4 2 ∗ x x 1 x 2 x 3 = 3 0 6 A x = b A ma t r i x ∗ x v ec t or = b v ec t or
v 1 = [ 1 − 2 0 ] v 2 = [ 2 − 2 2 ] v 3 = [ − 1 4 2 ] s e t { v 1 , v 2 , v 3 } s p a n : mean all the combination vector of can combine by v 1 、 v 2 、 v 3 . s e t { v 1 , v 2 , v 3 } s p a n R 3 : mean all the vector can be combine by v 1 、 v 2 、 v 3 . b are the all the vector x are the all the possible vector e x a m p l e : i f { v 1 , v 2 , v 3 } s p a n R 3 t h e n A [ 1 2 − 1 − 2 − 2 4 0 2 2 ] ∗ x [ x 1 x 2 x 3 ] = b [ b 1 b 2 b 3 ] a n d [ 1 2 − 1 0 − 2 − 2 4 0 0 2 2 0 ] have pivot position in every row b u t [ 1 2 − 1 b 1 − 2 − 2 4 b 2 0 2 2 b 3 ] = [ 1 0 − 3 b 1 0 1 1 b 2 0 0 0 b 3 ] did not have pivot point in row3 S o { v 1 , v 2 , v 3 } n o t s p a n R 3 v_1=\begin{bmatrix}
1\\
-2\\
0\\
\end{bmatrix}
v_2=\begin{bmatrix}
2\\
-2\\
2\\
\end{bmatrix}
v_3=\begin{bmatrix}
-1\\
4\\
2\\
\end{bmatrix}\\
set\lbrace
\begin{matrix}
&v_1,&v_2,&v_3
\end{matrix}
\rbrace
span
\text{: mean all the combination vector of can combine by }v_1、v_2、v_3 .\\
\\
set\lbrace
\begin{matrix}
&v_1,&v_2,&v_3
\end{matrix}
\rbrace
span \ R^3
\text{: mean all the vector can be combine by }v_1、v_2、v_3 .\\
\text{b are the all the vector} \\
\text{x are the all the possible vector} \\
example:\\
if \lbrace
\begin{matrix}
&v_1,&v_2,&v_3
\end{matrix}
\rbrace
span \ R^3 \ then \\
A\begin{bmatrix}
1 &2 & -1 \\
-2 &-2 & 4 \\
0 & 2 & 2 \\
\end{bmatrix}
*x\begin{bmatrix}
x_1\\
x_2\\
x_3\\
\end{bmatrix}
=b\begin{bmatrix}
b_1\\
b_2\\
b_3\\
\end{bmatrix}\\
\\
and\begin{bmatrix}
1 &2 & -1 &0\\
-2 &-2 & 4 &0\\
0 & 2 & 2 &0\\
\end{bmatrix}
\text{have pivot position in every row}\\
but\begin{bmatrix}
1 &2 & -1 &b_1\\
-2 &-2 & 4 &b_2\\
0 & 2 & 2 &b_3\\
\end{bmatrix}=
\begin{bmatrix}
1 &0 & -3 &b_1\\
0 &1 & 1 &b_2\\
0 & 0 & 0 &b_3\\
\end{bmatrix} \text{did not have pivot point in row3}\\
So \lbrace
\begin{matrix}
&v_1,&v_2,&v_3
\end{matrix}
\rbrace
not \ span \ R^3 v 1 = 1 − 2 0 v 2 = 2 − 2 2 v 3 = − 1 4 2 se t { v 1 , v 2 , v 3 } s p an : mean all the combination vector of can combine by v 1 、 v 2 、 v 3 . se t { v 1 , v 2 , v 3 } s p an R 3 : mean all the vector can be combine by v 1 、 v 2 、 v 3 . b are the all the vector x are the all the possible vector e x am pl e : i f { v 1 , v 2 , v 3 } s p an R 3 t h e n A 1 − 2 0 2 − 2 2 − 1 4 2 ∗ x x 1 x 2 x 3 = b b 1 b 2 b 3 an d 1 − 2 0 2 − 2 2 − 1 4 2 0 0 0 have pivot position in every row b u t 1 − 2 0 2 − 2 2 − 1 4 2 b 1 b 2 b 3 = 1 0 0 0 1 0 − 3 1 0 b 1 b 2 b 3 did not have pivot point in row3 S o { v 1 , v 2 , v 3 } n o t s p an R 3
i f { v 1 , v 2 , v 3 } linear dependence then at least one of vector is linear combination of another. if \lbrace
\begin{matrix}
v_1 ,& v_2 ,& v_3
\end{matrix}
\rbrace
\text{
linear dependence then at least one of vector is linear combination of another.} i f { v 1 , v 2 , v 3 } linear dependence then at least one of vector is linear combination of another.
A m a t r i x ∗ x v e c t o r = b v e c t o r A [ 0 2 − 2 1 1 1 − 2 0 − 4 1 2 0 ] x [ x 1 x 2 x 3 ] = b [ b 1 b 2 b 3 b 4 ] A_{matrix}*x_{vector}=b_{vector}\\
A\begin{bmatrix}
0 &2 & -2 \\
1 &1 & 1 \\
-2 &0 & -4 \\
1 &2 & 0 \\
\end{bmatrix}x
\begin{bmatrix}
x_1 \\
x_2 \\
x_3 \\
\end{bmatrix}=
b
\begin{bmatrix}
b_1 \\
b_2 \\
b_3 \\
b_4 \\
\end{bmatrix} A ma t r i x ∗ x v ec t or = b v ec t or A 0 1 − 2 1 2 1 0 2 − 2 1 − 4 0 x x 1 x 2 x 3 = b b 1 b 2 b 3 b 4
[ 0 2 − 2 b 1 1 1 1 b 2 − 2 0 − 4 b 3 1 2 0 b 4 ] = [ 1 1 1 b 2 0 2 − 2 b 1 − 2 0 − 4 b 3 1 2 0 b 4 ] = [ 1 1 1 b 2 0 2 − 2 b 1 0 2 − 2 2 b 2 + b 3 0 1 − 1 − b 2 + b 4 ] = [ 1 0 2 b 2 + − b 1 2 0 2 − 2 b 1 0 0 0 2 b 2 + b 3 − b 1 0 0 0 − b 2 + b 4 + − b 1 2 ] \begin{bmatrix}
0 &2 & -2 &b_1 \\
1 &1 & 1 &b_2\\
-2 &0 & -4 &b_3\\
1 &2 & 0 &b_4\\
\end{bmatrix}=
\begin{bmatrix}
1 &1 & 1 &b_2\\
0 &2 & -2 &b_1 \\
-2 &0 & -4 &b_3\\
1 &2 & 0 &b_4\\
\end{bmatrix}=
\begin{bmatrix}
1 &1 & 1 &b_2\\
0 &2 & -2 &b_1 \\
0 &2 & -2 &2b_2+b_3\\
0 &1 & -1 &-b_2+b_4\\
\end{bmatrix}=\\
\begin{bmatrix}
1 &0 & 2 &b_2+\frac{-b_1}{2}\\
0 &2 & -2 &b_1 \\
0 &0 & 0 &2b_2+b_3-b_1 \\
0 &0 & 0 &-b_2+b_4+\frac{-b_1}{2}\\
\end{bmatrix} 0 1 − 2 1 2 1 0 2 − 2 1 − 4 0 b 1 b 2 b 3 b 4 = 1 0 − 2 1 1 2 0 2 1 − 2 − 4 0 b 2 b 1 b 3 b 4 = 1 0 0 0 1 2 2 1 1 − 2 − 2 − 1 b 2 b 1 2 b 2 + b 3 − b 2 + b 4 = 1 0 0 0 0 2 0 0 2 − 2 0 0 b 2 + 2 − b 1 b 1 2 b 2 + b 3 − b 1 − b 2 + b 4 + 2 − b 1
x 1 [ 1 0 0 0 ] + x 2 [ 0 2 0 0 ] + x 3 [ 2 − 2 0 0 ] = b [ b 2 + − b 1 2 b 1 2 b 2 + b 3 − b 1 − b 2 + b 4 + − b 1 2 ] x_1\begin{bmatrix}
1 \\
0 \\
0 \\
0 \\
\end{bmatrix}+
x_2\begin{bmatrix}
0 \\
2 \\
0 \\
0 \\
\end{bmatrix}+
x_3\begin{bmatrix}
2 \\
-2 \\
0 \\
0 \\
\end{bmatrix}=
b\begin{bmatrix}
b_2+\frac{-b_1}{2} \\
b_1 \\
2b_2+b_3-b_1 \\
-b_2+b_4+\frac{-b_1}{2}\\
\end{bmatrix} x 1 1 0 0 0 + x 2 0 2 0 0 + x 3 2 − 2 0 0 = b b 2 + 2 − b 1 b 1 2 b 2 + b 3 − b 1 − b 2 + b 4 + 2 − b 1
NO,did not have pivot point in row3 and row4
NO,did not have pivot point in column 3
T ( x ) = b for all b only have one x that T(x)=b T(x)= b \\
\text{for all b only have one x that T(x)=b} T ( x ) = b for all b only have one x that T(x)=b
T ( x ) = b for all b have at least one x that T(x)=b T(x)= b \\
\text{for all b have at least one x that T(x)=b} T ( x ) = b for all b have at least one x that T(x)=b
T ( x ) = b for all b have at least one x that T(x)=b T ( a + b ) = T ( a ) + T ( b ) T(x)= b \\
\text{for all b have at least one x that T(x)=b}\\
T(a+b)=T(a)+T(b) T ( x ) = b for all b have at least one x that T(x)=b T ( a + b ) = T ( a ) + T ( b )
If A is vector space then { the zero vector or zero matrix must be in side of A if u and v is inside A then (u+v) should be inside A if v is inside A then n ∈ R and n*v should be also inside A \text{If A is vector space then}\\
\begin{cases}
\text{the zero vector or zero matrix must be in side of A}\\
\text{if u and v is inside A then (u+v) should be inside A}\\
\text{if v is inside A then n} \in \text{R and n*v should be also inside A}\\
\end{cases} If A is vector space then ⎩ ⎨ ⎧ the zero vector or zero matrix must be in side of A if u and v is inside A then (u+v) should be inside A if v is inside A then n ∈ R and n*v should be also inside A
x = [ 2 2 4 − 2 2 4 0 4 8 ] → rref [ 1 0 0 0 1 2 0 0 0 ] x=\begin{bmatrix}
2 & 2& 4 \\
-2 & 2& 4 \\
0 & 4& 8 \\
\end{bmatrix}
\xrightarrow[\text{}]{\text{rref}}
\begin{bmatrix}
1 & 0& 0 \\
0 & 1& 2 \\
0 & 0& 0 \\
\end{bmatrix} x = 2 − 2 0 2 2 4 4 4 8 rref 1 0 0 0 1 0 0 2 0
C o l ( A ) = R o w ( A T ) C o l ( A T ) = R o w ( A ) Col(A)=Row(A^T)\\
Col(A^T)=Row(A)\\ C o l ( A ) = R o w ( A T ) C o l ( A T ) = R o w ( A )
null space : all the solution make A v = 0. orth to columns space { [ 0 − 2 1 ] \text{null space : all the solution make } Av=0.\\
\text{orth to columns space}\\
{\begin{cases}
{\begin{bmatrix}
0\\
-2\\
1\\
\end{bmatrix}}
\end{cases}} null space : all the solution make A v = 0. orth to columns space ⎩ ⎨ ⎧ 0 − 2 1
columns space :all the combination of column vector A x = b The pivot columns of the origin columns. { [ 2 − 2 0 ] , [ 2 2 4 ] \text{columns space :all the combination of column vector }\\
Ax=b\\
\text{The pivot columns of the origin columns.}\\
{\begin{cases}
\begin{bmatrix}
2\\
-2\\
0\\
\end{bmatrix},
\begin{bmatrix}
2\\
2\\
4\\
\end{bmatrix}
\end{cases}} columns space :all the combination of column vector A x = b The pivot columns of the origin columns. ⎩ ⎨ ⎧ 2 − 2 0 , 2 2 4
rows space :the space that is orth to columns space the pivot row { [ 2 2 4 ] , [ − 2 2 4 ] o r { [ 1 0 0 ] , [ 0 1 2 ] \text{rows space :the space that is orth to columns space}\\
\text{the pivot row}\\
{\begin{cases}
\begin{bmatrix}
2\\
2\\
4\\
\end{bmatrix},
\begin{bmatrix}
-2\\
2\\
4\\
\end{bmatrix}
\end{cases}}or
{\begin{cases}
\begin{bmatrix}
1\\
0\\
0\\
\end{bmatrix},
\begin{bmatrix}
0\\
1\\
2\\
\end{bmatrix}
\end{cases}} rows space :the space that is orth to columns space the pivot row ⎩ ⎨ ⎧ 2 2 4 , − 2 2 4 or ⎩ ⎨ ⎧ 1 0 0 , 0 1 2
A ∈ R m × n r a n k ( A ) + n u l l i t y ( A ) = n r a n k ( A T ) + n u l l i t y ( A T ) = m A \in R^{m\times n} \\
rank(A)+nullity(A)=n\\
rank(A^T)+nullity(A^T)=m A ∈ R m × n r ank ( A ) + n u ll i t y ( A ) = n r ank ( A T ) + n u ll i t y ( A T ) = m
the number of non-zero pivot column
r a n k ( A ) = d i m ( C o l ( A ) ) r a n k ( A ) = r a n k ( A T ) rank(A)=dim(Col(A))\\
rank(A)=rank(A^T) r ank ( A ) = d im ( C o l ( A )) r ank ( A ) = r ank ( A T )
the number of zero pivot column
n u l l i t y ( A ) = d i m ( N u l ( A ) ) nullity(A)=dim(Nul(A)) n u ll i t y ( A ) = d im ( N u l ( A ))
λ = eigenvalue (nature number could be zero) v = eigenvector(not zero vector) A v = λ v A v = λ I v A v − λ I v = 0 ∣ A − λ I ∣ = 0 \lambda= \text{eigenvalue (nature number could be zero)}\\
v=\text{eigenvector(not zero vector)}\\
Av=\lambda v\\
Av =\lambda Iv\\
Av − \lambda Iv = 0\\
| A − \lambda I | = 0\\ λ = eigenvalue (nature number could be zero) v = eigenvector(not zero vector) A v = λ v A v = λ I v A v − λ I v = 0 ∣ A − λ I ∣ = 0
A = [ 6 9 2 3 ] d e t [ 6 9 2 3 ] = 6 ∗ 3 − 9 ∗ 2 = 0 ∣ A − λ I ∣ = 0 d e t [ 6 − λ 9 2 3 − λ ] = ( 6 − λ ) ( 3 − λ ) − 18 = 0 λ = 0 o r 9 A=\begin{bmatrix}
6 & 9\\
2 & 3\\
\end{bmatrix}\\
det\begin{bmatrix}
6 & 9\\
2 & 3\\
\end{bmatrix}=6*3-9*2=0\\
| A − \lambda I | = 0\\
det\begin{bmatrix}
6-\lambda & 9\\
2 & 3-\lambda \\
\end{bmatrix}=(6-\lambda)(3-\lambda)-18=0\\
\lambda =0 \ or \ 9 A = [ 6 2 9 3 ] d e t [ 6 2 9 3 ] = 6 ∗ 3 − 9 ∗ 2 = 0 ∣ A − λ I ∣ = 0 d e t [ 6 − λ 2 9 3 − λ ] = ( 6 − λ ) ( 3 − λ ) − 18 = 0 λ = 0 or 9
λ = 0 o r 9 A v = λ v [ 6 9 2 3 ] [ x y ] = 9 [ x y ] { 6 x + 9 y = 9 x 2 x + 3 y = 9 y 6 x = 18 y → x = − 3 y A v = λ v [ 6 9 2 3 ] [ x y ] = 0 [ x y ] x ∈ R y ∈ R v = [ 3 1 ] o r [ a b ] \lambda =0 \ or \ 9 \\
Av=\lambda v\\
\begin{bmatrix}
6 & 9\\
2 & 3\\
\end{bmatrix}
\begin{bmatrix}
x\\
y\\
\end{bmatrix}=9
\begin{bmatrix}
x\\
y\\
\end{bmatrix}\\
\begin{cases}
6x+9y=9x\\
2x+3y=9y\\
\end{cases}\\
6x=18y \rightarrow x=-3y \\
Av=\lambda v\\
\begin{bmatrix}
6 & 9\\
2 & 3\\
\end{bmatrix}
\begin{bmatrix}
x\\
y\\
\end{bmatrix}=0
\begin{bmatrix}
x\\
y\\
\end{bmatrix}\\
x \in R\\
y \in R\\
v=\begin{bmatrix}
3\\
1\\
\end{bmatrix}or
\begin{bmatrix}
a\\
b\\
\end{bmatrix} λ = 0 or 9 A v = λ v [ 6 2 9 3 ] [ x y ] = 9 [ x y ] { 6 x + 9 y = 9 x 2 x + 3 y = 9 y 6 x = 18 y → x = − 3 y A v = λ v [ 6 2 9 3 ] [ x y ] = 0 [ x y ] x ∈ R y ∈ R v = [ 3 1 ] or [ a b ]
Find P and D that A = P D P − 1 So A 2 = ( P D P − 1 ) ( P D P − 1 ) A 2 = P D 2 P − 1 A n = P D n P − 1 P n × m = [ V 1 E i g e n V e c t o r V 2 E i g e n V e c t o r V 3 E i g e n V e c t o r . . . ] D n × m = [ λ 1 E i g e n V a l u e 0 0 . . . 0 λ 2 E i g e n V a l u e 0 . . . 0 0 λ 3 E i g e n V a l u e . . . ⋮ ⋮ ⋮ ⋱ ] \text{Find P and D that}\\
A=PDP^{-1}\\
\text{So }
A^2=(PDP^{-1})(PDP^{-1})\\
A^2=PD^2P^{-1}\\
A^n=PD^nP^{-1}\\
\underset{n\times m}{P}=\begin{bmatrix}
V1_{EigenVector} & V2_{EigenVector}& & V3_{EigenVector} &...\\
\end{bmatrix}\\
\underset{n \times m}{D}=\begin{bmatrix}
\lambda1_{EigenValue} &0 &0&... \\
0 & \lambda2_{EigenValue} & 0&...\\
0 & 0 &\lambda3_{EigenValue} &...\\
\vdots & \vdots &\vdots & \ddots \\
\end{bmatrix} Find P and D that A = P D P − 1 So A 2 = ( P D P − 1 ) ( P D P − 1 ) A 2 = P D 2 P − 1 A n = P D n P − 1 n × m P = [ V 1 E i g e nV ec t or V 2 E i g e nV ec t or V 3 E i g e nV ec t or ... ] n × m D = λ 1 E i g e nVa l u e 0 0 ⋮ 0 λ 2 E i g e nVa l u e 0 ⋮ 0 0 λ 3 E i g e nVa l u e ⋮ ... ... ... ⋱
If a ⋅ b = 0 then a ⊥ b (orthogonal) [ 1 2 ] ⋅ [ − 8 4 ] = 1 × − 8 + 2 × 4 = 0 [ 1 2 ] ⊥ [ − 8 4 ] \text{If } a\cdot b=0 \text{ then }a \perp b \text{ (orthogonal)}\\
\begin{bmatrix}
1\\
2\\
\end{bmatrix}\cdot
\begin{bmatrix}
-8\\
4\\
\end{bmatrix}=1\times-8+2\times 4=0\\
\begin{bmatrix}
1\\
2\\
\end{bmatrix}\perp
\begin{bmatrix}
-8\\
4\\
\end{bmatrix} If a ⋅ b = 0 then a ⊥ b (orthogonal) [ 1 2 ] ⋅ [ − 8 4 ] = 1 × − 8 + 2 × 4 = 0 [ 1 2 ] ⊥ [ − 8 4 ]
A n ∗ m ⋅ B n ∗ m columns space vector: A ⋅ B = A T × B rows space vector: A ⋅ B = A × B T \underset{n*m}{A}\cdot \underset{n*m}{B}\\
\text{columns space vector: }A\cdot B=A^T\times B\\
\text{rows space vector: }A\cdot B=A\times B^T\\ n ∗ m A ⋅ n ∗ m B columns space vector: A ⋅ B = A T × B rows space vector: A ⋅ B = A × B T
∣ A ∣ = ∑ i = 1 n ∑ j = 1 m ( A i j ) 2 ∣ A − B ∣ = ∣ A ∣ − 2 A ⋅ B + ∣ B ∣ |A|=\sqrt{\sum_{i=1}^{n}\sum_{j=1}^{m}{{(A_{ij})}^2}}\\
|A-B|=|A|-2A\cdot B+|B|\\ ∣ A ∣ = i = 1 ∑ n j = 1 ∑ m ( A ij ) 2 ∣ A − B ∣ = ∣ A ∣ − 2 A ⋅ B + ∣ B ∣
link
∣ A − B ∣ = B to A distance or Similarity between two matrices d i s t a n c e = ∑ i = 1 n ∑ j = 1 m ∣ A i j − B i j ∣ d i s t a n c e = ∑ i = 1 n ∑ j = 1 m ( A i j − B i j ) 2 |A-B|=\text{B to A distance or Similarity between two matrices}\\
distance=\sum_{i=1}^{n}\sum_{j=1}^{m}{|A_{ij}-B_{ij}}|\\
distance=\sqrt{\sum_{i=1}^{n}\sum_{j=1}^{m}{{(A_{ij}-B_{ij})}^2}}\\ ∣ A − B ∣ = B to A distance or Similarity between two matrices d i s t an ce = i = 1 ∑ n j = 1 ∑ m ∣ A ij − B ij ∣ d i s t an ce = i = 1 ∑ n j = 1 ∑ m ( A ij − B ij ) 2
If column vector are orth to each other(dot product is 0) \text{If column vector are orth to each other(dot product is 0)}\\ If column vector are orth to each other(dot product is 0)
If column vector are orth to each other and the length of column vector is 1 then is orthonormal then is orthogonal matrix [ 1 2 0 1 2 ] ⊥ [ 1 2 1 2 0 ] ⊥ [ 0 1 2 1 2 ] [ 1 2 1 2 0 0 1 2 1 2 1 2 0 1 2 ] is orthogonal matrix if A is orthogonal matrix then A T × A = I A T = A − 1 d e t ( A ) 2 = 1 \text{If column vector are orth to each other and the length of column vector is 1 then is orthonormal}\\
\text{then is orthogonal matrix}\\
\begin{bmatrix}
\frac{1}{\sqrt{2}} \\
0 \\
\frac{1}{\sqrt{2}} \\
\end{bmatrix} \perp
\begin{bmatrix}
\frac{1}{\sqrt{2}} \\
\frac{1}{\sqrt{2}} \\
0 \\
\end{bmatrix} \perp
\begin{bmatrix}
0 \\
\frac{1}{\sqrt{2}} \\
\frac{1}{\sqrt{2}} \\
\end{bmatrix}\\
\\
\begin{bmatrix}
\frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}} & 0\\
0 & \frac{1}{\sqrt{2}} & \frac{1}{\sqrt{2}}\\
\frac{1}{\sqrt{2}} & 0 & \frac{1}{\sqrt{2}} \
\end{bmatrix}\text{is orthogonal matrix}\\
\text{if A is orthogonal matrix then } \\
A^T \times A=I \\
A^T=A^{-1}\\
det(A)^2=1\\ If column vector are orth to each other and the length of column vector is 1 then is orthonormal then is orthogonal matrix 2 1 0 2 1 ⊥ 2 1 2 1 0 ⊥ 0 2 1 2 1 2 1 0 2 1 2 1 2 1 0 0 2 1 2 1 is orthogonal matrix if A is orthogonal matrix then A T × A = I A T = A − 1 d e t ( A ) 2 = 1
A = [ 1 2 3 4 ] A x = [ 1 2 3 4 ] [ x 1 x 2 ] = [ 1 x 1 + 2 x 2 3 x 1 + 4 x 2 ] f 1 ( x 1 , x 2 ) = 1 x 1 + 2 x 2 f 2 ( x 1 , x 2 ) = 3 x 1 + 4 x 2 d d x A x = [ d d x 1 f 1 d d x 2 f 1 d d x 1 f 2 d d x 2 f 2 ] = [ 1 2 3 4 ] = A ∴ d d x A x = A X T A X = [ x 1 x 2 ] [ a 11 x 1 + a 12 x 2 a 21 x 1 + a 22 x 2 ] = [ a 11 x 1 2 + a 12 x 1 x 2 + a 21 x 1 x 2 + a 22 x 2 2 ] f 3 ( x 1 , x 2 ) = a 11 x 1 2 + a 12 x 1 x 2 + a 21 x 1 x 2 + a 22 x 2 2 d d x X T A X = [ d d x 1 f 3 d d x 2 f 3 ] = [ 2 x 1 + a 12 x 2 2 x 2 + a 21 x 1 ] ∵ z ≠ x A=\begin{bmatrix}
1 &2\\
3 &4\\
\end{bmatrix}\\
Ax=\begin{bmatrix}
1 &2\\
3 &4\\
\end{bmatrix}
\begin{bmatrix}
x_1 \\
x_2 \\
\end{bmatrix}=
\begin{bmatrix}
1x_1+2x_2 \\
3x_1+4x_2 \\
\end{bmatrix}\\
f_1(x_1,x_2)=1x_1+2x_2\\
f_2(x_1,x_2)=3x_1+4x_2\\
\frac{d}{dx}Ax=
\begin{bmatrix}
\frac{d}{dx_1}f_1 &\frac{d}{dx_2}f_1 \\
\frac{d}{dx_1}f_2 &\frac{d}{dx_2}f_2 \\
\end{bmatrix}=
\begin{bmatrix}
1&2 \\
3&4 \\
\end{bmatrix}=A\\
\therefore\frac{d}{dx}Ax=A\\
X^TAX=
\begin{bmatrix}
x_1 & x_2 \\
\end{bmatrix}
\begin{bmatrix}
a_{11}x_1+a_{12}x_2 \\
a_{21}x_1+a_{22}x_2 \\
\end{bmatrix}=\begin{bmatrix}
a_{11}{x_1}^2+a_{12}x_1x_2+a_{21}x_1x_2+a_{22}{x_2}^2 \\
\end{bmatrix}\\
f_3(x_1,x_2)=a_{11}{x_1}^2+a_{12}x_1x_2+a_{21}x_1x_2+a_{22}{x_2}^2\\
\frac{d}{dx}X^TAX=
\begin{bmatrix}
\frac{d}{dx_1}f_3 &\frac{d}{dx_2}f_3 \\
\end{bmatrix}=
\begin{bmatrix}
2x_1+a_{12}x_2 & 2x_2+a_{21}x_1 \\
\end{bmatrix}
\\
\because z \neq x \\ A = [ 1 3 2 4 ] A x = [ 1 3 2 4 ] [ x 1 x 2 ] = [ 1 x 1 + 2 x 2 3 x 1 + 4 x 2 ] f 1 ( x 1 , x 2 ) = 1 x 1 + 2 x 2 f 2 ( x 1 , x 2 ) = 3 x 1 + 4 x 2 d x d A x = [ d x 1 d f 1 d x 1 d f 2 d x 2 d f 1 d x 2 d f 2 ] = [ 1 3 2 4 ] = A ∴ d x d A x = A X T A X = [ x 1 x 2 ] [ a 11 x 1 + a 12 x 2 a 21 x 1 + a 22 x 2 ] = [ a 11 x 1 2 + a 12 x 1 x 2 + a 21 x 1 x 2 + a 22 x 2 2 ] f 3 ( x 1 , x 2 ) = a 11 x 1 2 + a 12 x 1 x 2 + a 21 x 1 x 2 + a 22 x 2 2 d x d X T A X = [ d x 1 d f 3 d x 2 d f 3 ] = [ 2 x 1 + a 12 x 2 2 x 2 + a 21 x 1 ] ∵ z = x
y ^ = A A T A A T y A T A define z = y − y ^ s o { y = y ^ + z y ^ ⊥ z y ^ ∈ A columns space \hat{y}=
\frac{A }{A^T A} \frac{A^Ty }{A^T A}\\
\text{define } z=y-\hat{y}\\
% z=y(1-\frac{y\cdot A}{y \cdot y})\\
so\begin{cases}
y=\hat{y}+z\\
\hat{y}\perp z\\
\hat{y}\in \text{A columns space}\\
\end{cases} y ^ = A T A A A T A A T y define z = y − y ^ so ⎩ ⎨ ⎧ y = y ^ + z y ^ ⊥ z y ^ ∈ A columns space
( dim β ) n = 2 , (test number) m = 4 β 0 + x β 1 = y , (x,y) β 0 + 2 β 1 = 1 , (2,1) β 0 + 5 β 1 = 2 , (5,2) β 0 + 7 β 1 = 3 , (7,3) β 0 + 8 β 1 = 3 , (8,3) A × β = y [ 1 2 1 5 1 7 1 8 ] A [ m × n ] × [ β 0 β 1 ] β [ n × 1 ] = [ 1 2 3 3 ] y [ m × 1 ] y ^ = y projection on A z = y − y ^ z ∈ nul A T distance of y to A columns space is z ( because z ⊥ A ) (\dim \beta)n=2,
\text{(test number)}m=4\\
\beta_0+x\beta_1 =y,\text{(x,y) }\\
\beta_0+2\beta_1 =1,\text{(2,1) }\\
\beta_0+5\beta_1 =2,\text{(5,2) }\\
\beta_0+7\beta_1 =3,\text{(7,3) }\\
\beta_0+8\beta_1 =3,\text{(8,3) }\\
\\
A\times \beta=y\\
\underset{A[m\times n]}{\begin{bmatrix}
1&2 \\
1&5 \\
1&7 \\
1&8 \\
\end{bmatrix}}\times
\underset{\beta[n\times 1]}{\begin{bmatrix}
\beta_0 \\
\beta_1 \\
\end{bmatrix}}=
\underset{y[m\times 1]}{\begin{bmatrix}
1 \\
2 \\
3 \\
3 \\
\end{bmatrix}}\\
\hat{y}=y \text{ projection on }A\\
z=y-\hat{y}\\
z\in \text{nul }A^T\\
\text{distance of y to A columns space is } z(\text{because } z \perp A)\\ ( dim β ) n = 2 , (test number) m = 4 β 0 + x β 1 = y , (x,y) β 0 + 2 β 1 = 1 , (2,1) β 0 + 5 β 1 = 2 , (5,2) β 0 + 7 β 1 = 3 , (7,3) β 0 + 8 β 1 = 3 , (8,3) A × β = y A [ m × n ] 1 1 1 1 2 5 7 8 × β [ n × 1 ] [ β 0 β 1 ] = y [ m × 1 ] 1 2 3 3 y ^ = y projection on A z = y − y ^ z ∈ nul A T distance of y to A columns space is z ( because z ⊥ A )
Find β l e t ∣ A β − y ∣ 2 have min ∣ A β − y ∣ 2 = ( ∣ A β ∣ − 2 A β ⋅ y + ∣ y ∣ ) 2 ∣ A β − y ∣ 2 = ( ∣ A β ∣ − 2 A β ⋅ ( y ^ + z ) + ∣ y ^ + z ∣ ) 2 ∣ A β − y ∣ 2 = ( ∣ A β ∣ − 2 A β ⋅ ( y ^ + z ) + ∣ y ^ + z ∣ ) 2 \text{Find } \beta \ let \ {|A\beta - y|}^2 \text{have} \min\\
{|A\beta - y|}^2=(|A\beta|-2A\beta\cdot y+|y|)^2\\
{|A\beta - y|}^2=(|A\beta|-2A\beta\cdot (\hat{y}+z)+|\hat{y}+z|)^2\\
{|A\beta - y|}^2=(|A\beta|-2A\beta\cdot (\hat{y}+z)+|\hat{y}+z|)^2\\ Find β l e t ∣ A β − y ∣ 2 have min ∣ A β − y ∣ 2 = ( ∣ A β ∣ − 2 A β ⋅ y + ∣ y ∣ ) 2 ∣ A β − y ∣ 2 = ( ∣ A β ∣ − 2 A β ⋅ ( y ^ + z ) + ∣ y ^ + z ∣ ) 2 ∣ A β − y ∣ 2 = ( ∣ A β ∣ − 2 A β ⋅ ( y ^ + z ) + ∣ y ^ + z ∣ ) 2
Find β l e t ∣ A β − y ∣ 2 have min if derivative f ′ ( a ) = 0 t h e n f ( a ) is max or min value d d β ∣ y − A β ∣ 2 = 0 2 ∣ y − A β ∣ × d d β ∣ y − A β ∣ = 0 2 ∣ y − A β ∣ × d d β ( ∣ y ∣ − 2 y ⋅ A β + ∣ A β ∣ ) = 0 2 ∣ y − A β ∣ × ( A + ∣ A β ∣ ) = 0 \text{Find } \beta \ let \ {|A\beta - y|}^2 \text{have} \min\\
\text{if derivative }f^{'}(a)=0 \ then \ f(a)\text{ is max or min value }\\
\frac{d}{d\beta}{|y-A\beta|}^2=0\\
2{|y-A\beta|}\times\frac{d}{d\beta}|y-A\beta|=0\\
2{|y-A\beta|}\times\frac{d}{d\beta}(|y|-2y\cdot A\beta+|A\beta|)=0\\
2{|y-A\beta|}\times (A+|A\beta|)=0\\ Find β l e t ∣ A β − y ∣ 2 have min if derivative f ′ ( a ) = 0 t h e n f ( a ) is max or min value d β d ∣ y − A β ∣ 2 = 0 2 ∣ y − A β ∣ × d β d ∣ y − A β ∣ = 0 2 ∣ y − A β ∣ × d β d ( ∣ y ∣ − 2 y ⋅ A β + ∣ A β ∣ ) = 0 2 ∣ y − A β ∣ × ( A + ∣ A β ∣ ) = 0
Find β l e t ∣ A β − y ∣ 2 have min ∣ A T y − A T A β ∣ = A T × d i s t a n c e ∣ A T ( y ^ + z ) − A T A β ∣ = A T × d i s t a n c e ∣ A T y ^ + A T z − A T A β ∣ = A T × d i s t a n c e ∣ A T y ^ − A T A β ∣ = A T × d i s t a n c e y ^ ∈ A columns space so can find A β = y ^ ∣ A T y ^ − A T A β ∣ = 0 A T y = A T A β β = ( A T A ) − 1 A T y \text{Find } \beta \ let \ {|A\beta - y|}^2 \text{have} \min\\
\begin{aligned}
|A^Ty-A^TA\beta|&=A^T\times distance\\
|A^T(\hat{y}+z)-A^TA\beta|&=A^T\times distance\\
|A^T\hat{y}+A^Tz-A^TA\beta|&=A^T\times distance\\
|A^T\hat{y}-A^TA\beta|&=A^T\times distance\\
\end{aligned}\\
\hat{y}\in \text{A columns space so can find }A\beta =\hat{y} \\
|A^T\hat{y}-A^TA\beta|=0\\
A^Ty=A^TA\beta\\
\beta=(A^T A)^{-1}A^T y Find β l e t ∣ A β − y ∣ 2 have min ∣ A T y − A T A β ∣ ∣ A T ( y ^ + z ) − A T A β ∣ ∣ A T y ^ + A T z − A T A β ∣ ∣ A T y ^ − A T A β ∣ = A T × d i s t an ce = A T × d i s t an ce = A T × d i s t an ce = A T × d i s t an ce y ^ ∈ A columns space so can find A β = y ^ ∣ A T y ^ − A T A β ∣ = 0 A T y = A T A β β = ( A T A ) − 1 A T y