Inverse of a Matrix
The Determinant of a 2 X 2 Matrix
Determinant of a matrix
A = ( a ↶ c ↷ b ↶ d ↷ ) A = \begin{pmatrix}
\stackrel{\curvearrowleft}{a} & \stackrel{\curvearrowright}{c} \\
\stackrel{\curvearrowleft}{b} & \stackrel{\curvearrowright}{d}
\end{pmatrix} A = ( a ↶ b ↶ c ↷ d ↷ )
a ↶ → d ↶ = Leading diagonal b ↶ → c ↶ = Main diagonal \begin{aligned}
&\stackrel{\curvearrowleft}{a}\rightarrow \stackrel{\curvearrowleft}{d} = \text{Leading diagonal} \\
&\stackrel{\curvearrowleft}{b}\rightarrow \stackrel{\curvearrowleft}{c} = \text{Main diagonal}
\end{aligned} a ↶ → d ↶ = Leading diagonal b ↶ → c ↶ = Main diagonal
Now the determinant of matrix A is then defined as the difference of the product of elements in the leading diagonal and the product of the elements in the main diagonal.
Example 1
Find
If A = ( 1 3 2 4 ) , then: \text{If } A = \begin{pmatrix} 1 & 3 \\ 2 & 4 \end{pmatrix}, \text{ then:} If A = ( 1 2 3 4 ) , then:
∣ A ∣ = 1 × 4 − 2 × 3 = 4 − 6 = − 2 |A| = 1 \times 4 - 2 \times 3 = 4 - 6 = -2 ∣ A ∣ = 1 × 4 − 2 × 3 = 4 − 6 = − 2
∴ ∣ A ∣ = − 2 \therefore |A| = -2 ∴ ∣ A ∣ = − 2
∣ A ∣ |A| ∣ A ∣ if A = ( 1 3 2 4 ) A = \begin{pmatrix} 1 & 3 \\ 2 & 4 \end{pmatrix} A = ( 1 2 3 4 )
Solution:
∣ A ∣ = 1 × 4 − 2 × 3 = 4 − 6 = − 2 |A| = 1 \times 4 - 2 \times 3 = 4 - 6 = -2 ∣ A ∣ = 1 × 4 − 2 × 3 = 4 − 6 = − 2
∴ ∣ A ∣ = − 2 \therefore |A| = -2 ∴ ∣ A ∣ = − 2
Example 2
Considering
If B = ( 1 0 3 5 ) B = \begin{pmatrix} 1 & 0 \\ 3 & 5 \end{pmatrix} B = ( 1 3 0 5 ) , find ∣ A ∣ |A| ∣ A ∣
Solution: ∣ B ∣ = 1 × 5 − 0 × 3 = 5 − 0 = 5 |B| = 1 \times 5 - 0 \times 3 = 5 - 0 = 5 ∣ B ∣ = 1 × 5 − 0 × 3 = 5 − 0 = 5
∴ ∣ B ∣ = 5 \therefore |B| = 5 ∴ ∣ B ∣ = 5
Example 3
Find the value of x
If C = ( 2 x 3 − 2 10 ) C = \begin{pmatrix} 2x & 3 \\ -2 & 10 \end{pmatrix} C = ( 2 x − 2 3 10 ) having determinant 46.
Solution:
C = ( 2 x 3 − 2 10 ) C = \begin{pmatrix} 2x & 3 \\ -2 & 10 \end{pmatrix} C = ( 2 x − 2 3 10 )
∣ C ∣ = 2 x ⋅ 10 − ( − 2 ) ⋅ 3 = 46 |C| = 2x \cdot 10 - (-2) \cdot 3 = 46 ∣ C ∣ = 2 x ⋅ 10 − ( − 2 ) ⋅ 3 = 46
20 x + 6 = 46 20x + 6 = 46 20 x + 6 = 46
20 x = 46 − 6 20x = 46 - 6 20 x = 46 − 6
20 x = 40 20x = 40 20 x = 40
x = 40 20 = 2 x = \frac{40}{20} = 2 x = 20 40 = 2
∴ \therefore ∴ The value of x is 2.
Singular and non-singular matrices
Definition:
A singular matrix is a matrix whose determinant is zero, while non – singular matrix is the one with a non zero determinant.
Example 4
Find the value of y
The Inverse of a 2 X 2 Matrix
If
B = ( 4 5 3 y 6 ) B = \begin{pmatrix} 4 & 5 \\ 3y & 6 \end{pmatrix} B = ( 4 3 y 5 6 )
is a singular matrix, then:
∣ B ∣ = 4 × 6 − 5 × ( 3 y ) |B| = 4 \times 6 - 5 \times (3y) ∣ B ∣ = 4 × 6 − 5 × ( 3 y )
∣ B ∣ = 24 − 15 y |B| = 24 - 15y ∣ B ∣ = 24 − 15 y
Since B B B is a singular matrix, its determinant must be zero:
24 − 15 y = 0 24 - 15y = 0 24 − 15 y = 0
24 = 15 y 24 = 15y 24 = 15 y
y = 24 15 = 8 5 y = \frac{24}{15} = \frac{8}{5} y = 15 24 = 5 8
∴ y = 8 5 \therefore y = \frac{8}{5} ∴ y = 5 8
Inverse of matrices
Definition : If A is a square matrix and B is another matrix with the same order as A, then B is the inverse of A if AB = BA = I where I is the identity matrix.
Thus AB = BA = I means either A is the inverse of B or B is the inverse of A.
Where B = A − 1 B = A^{-1} B = A − 1 , that is B is the inverse of matrix A
A A − 1 = I = ( 1 0 0 1 ) AA^{-1} = I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} A A − 1 = I = ( 1 0 0 1 )
So,
( a c b d ) ( p r q s ) = ( 1 0 0 1 ) \begin{pmatrix} a & c \\ b & d \end{pmatrix}
\begin{pmatrix} p & r \\ q & s \end{pmatrix}
=
\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} ( a b c d ) ( p q r s ) = ( 1 0 0 1 )
( a p + c q a r + c s b p + d q b r + d s ) = ( 1 0 0 1 ) \begin{pmatrix}
ap + cq & ar + cs \\
bp + dq & br + ds
\end{pmatrix}
=
\begin{pmatrix}
1 & 0 \\
0 & 1
\end{pmatrix} ( a p + c q b p + d q a r + cs b r + d s ) = ( 1 0 0 1 )
From which we obtain:
a p + c q = 1 (i) a r + c s = 0 (ii) b p + d q = 0 (iii) b r + d s = 1 (iv) \begin{aligned}
&ap + cq = 1 \quad \text{(i)} \\
&ar + cs = 0 \quad \text{(ii)} \\
&bp + dq = 0 \quad \text{(iii)} \\
&br + ds = 1 \quad \text{(iv)}
\end{aligned} a p + c q = 1 (i) a r + cs = 0 (ii) b p + d q = 0 (iii) b r + d s = 1 (iv)
Since we need the unknown matrix B, we can solve for p and q by using equations (i) and (iii) and we solve for r and s using equations (ii) and (iv)
Now: { a p + c q = 1 b p + d q = 0 and { a r + c s = 0 b r + d s = 1 \text{Now: }
\begin{cases}
ap + cq = 1 \\
bp + dq = 0
\end{cases}
\quad \text{and} \quad
\begin{cases}
ar + cs = 0 \\
br + ds = 1
\end{cases} Now: { a p + c q = 1 b p + d q = 0 and { a r + cs = 0 b r + d s = 1
By elimination method \text{By elimination method} By elimination method
From { a p + c q = 1 (1) b p + d q = 0 (2) Multiply (1) by b : a b p + b c q = b Multiply (2) by a : a b p + a d q = 0 Subtract: ( b c − a d ) q = b ⇒ q = b b c − a d \begin{aligned}
& \text{From }
\begin{cases}
ap + cq = 1 \quad \text{(1)} \\
bp + dq = 0 \quad \text{(2)}
\end{cases} \\
\text{Multiply (1) by } b: &\quad abp + bcq = b \\
\text{Multiply (2) by } a: &\quad abp + adq = 0 \\
\text{Subtract:} &\quad (bc - ad)q = b \\
\Rightarrow \quad & q = \frac{b}{bc - ad}
\end{aligned} Multiply (1) by b : Multiply (2) by a : Subtract: ⇒ From { a p + c q = 1 (1) b p + d q = 0 (2) ab p + b c q = b ab p + a d q = 0 ( b c − a d ) q = b q = b c − a d b
To find p : \text{To find } p: To find p :
a p + c q = 1 ⇒ p = 1 − c q a \begin{aligned}
& ap + cq = 1 \\
& \Rightarrow p = \frac{1 - cq}{a}
\end{aligned} a p + c q = 1 ⇒ p = a 1 − c q
Since q = b b c − a d , substitute into the equation for p : \text{Since } q = \frac{b}{bc - ad}, \text{ substitute into the equation for } p: Since q = b c − a d b , substitute into the equation for p :
p = 1 − c ( b b c − a d ) a = ( b c − a d ) − b c a ( b c − a d ) = − a d a ( b c − a d ) = d a d − b c \begin{aligned}
p &= \frac{1 - c\left(\frac{b}{bc - ad}\right)}{a} \\
&= \frac{(bc - ad) - bc}{a(bc - ad)} \\
&= \frac{-ad}{a(bc - ad)} \\
&= \frac{d}{ad - bc}
\end{aligned} p = a 1 − c ( b c − a d b ) = a ( b c − a d ) ( b c − a d ) − b c = a ( b c − a d ) − a d = a d − b c d
Also to get r and s, the same procedure must be followed:
And
{ a r + c s = 0 b r + d s = 1 { a d r + c d s = 0 b c r + c d s = c ( a d − b c ) r = − c or ( b c − a d ) r = c r = c b c − a d Therefore p = d a d − b c , q = − b a d − b c , r = c b c − a d , s = a a d − b c . \begin{aligned}
& \begin{cases}
ar + cs = 0 \\
br + ds = 1
\end{cases} \\[10pt]
& \begin{cases}
adr + cds = 0 \\
bcr + cds = c
\end{cases} \\[10pt]
& (ad - bc)r = -c \\
& \text{or } (bc - ad)r = c \\
& r = \frac{c}{bc - ad} \\[10pt]
& \text{Therefore }
p = \frac{d}{ad - bc}, \quad
q = \frac{-b}{ad - bc}, \quad
r = \frac{c}{bc - ad}, \quad
s = \frac{a}{ad - bc}.
\end{aligned} { a r + cs = 0 b r + d s = 1 { a d r + c d s = 0 b cr + c d s = c ( a d − b c ) r = − c or ( b c − a d ) r = c r = b c − a d c Therefore p = a d − b c d , q = a d − b c − b , r = b c − a d c , s = a d − b c a .
Remember B = ( p r q s ) B = \begin{pmatrix} p & r \\ q & s \end{pmatrix} B = ( p q r s ) which is the inverse of A A A where A = ( 1 0 0 1 ) A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} A = ( 1 0 0 1 ) .
So
B = ( d a d − b c c b c − a d b b c − a d a a d − b c ) B = \begin{pmatrix}
\dfrac{d}{ad-bc} & \dfrac{c}{bc-ad} \\
\dfrac{b}{bc-ad} & \dfrac{a}{ad-bc}
\end{pmatrix} B = a d − b c d b c − a d b b c − a d c a d − b c a
But b c − a d = − ( a d − b c ) bc-ad = -(ad-bc) b c − a d = − ( a d − b c ) .
Now
B = ( d a d − b c − c a d − b c − b a d − b c a a d − b c ) B = \begin{pmatrix}
\dfrac{d}{ad-bc} & \dfrac{-c}{ad-bc} \\
\dfrac{-b}{ad-bc} & \dfrac{a}{ad-bc}
\end{pmatrix} B = a d − b c d a d − b c − b a d − b c − c a d − b c a
Example 5
Given that,
If B = ( 4 5 3 y 6 ) B = \begin{pmatrix} 4 & 5 \\ 3y & 6 \end{pmatrix} B = ( 4 3 y 5 6 ) is a singular matrix,
Solution:
Then,
∣ B ∣ = 4 × 6 − 5 × ( 3 y ) = 24 − 15 y |B| = 4 \times 6 - 5 \times (3y) = 24 - 15y ∣ B ∣ = 4 × 6 − 5 × ( 3 y ) = 24 − 15 y
Since B B B is a singular matrix, its determinant is zero:
∣ B ∣ = 0 ⇒ 24 − 15 y = 0 |B| = 0 \Rightarrow 24 - 15y = 0 ∣ B ∣ = 0 ⇒ 24 − 15 y = 0
Solving for y y y :
24 = 15 y ⇒ y = 24 15 = 8 5 24 = 15y \Rightarrow y = \frac{24}{15} = \frac{8}{5} 24 = 15 y ⇒ y = 15 24 = 5 8
∴ y = 8 5 \therefore y = \frac{8}{5} ∴ y = 5 8
Example 6
(a) B = ( − 1 3 2 6 ) B = \begin{pmatrix} -1 & 3 \\ 2 & 6 \end{pmatrix} B = ( − 1 2 3 6 ) ,
∣ B ∣ = − 1 × 6 − 2 × 3 |B| = -1 \times 6 - 2 \times 3 ∣ B ∣ = − 1 × 6 − 2 × 3
∣ B ∣ = − 12 ≠ 0 |B| = -12 \neq 0 ∣ B ∣ = − 12 = 0
∴ B − 1 \therefore B^{-1} ∴ B − 1 exists
(b) C = ( 3 6 4 8 ) C = \begin{pmatrix} 3 & 6 \\ 4 & 8 \end{pmatrix} C = ( 3 4 6 8 ) ,
∣ C ∣ = 3 × 8 − 4 × 6 = 24 − 24 = 0 |C| = 3 \times 8 - 4 \times 6 = 24 - 24 = 0 ∣ C ∣ = 3 × 8 − 4 × 6 = 24 − 24 = 0
∣ C ∣ = 0 , so C − 1 does not exist |C| = 0, \text{ so } C^{-1} \text{ does not exist} ∣ C ∣ = 0 , so C − 1 does not exist
(c) D = ( 2 9 4 18 ) D = \begin{pmatrix} 2 & 9 \\ 4 & 18 \end{pmatrix} D = ( 2 4 9 18 ) ,
∣ D ∣ = 2 × 18 − 9 × 4 = 36 − 36 = 0 |D| = 2 \times 18 - 9 \times 4 = 36 - 36 = 0 ∣ D ∣ = 2 × 18 − 9 × 4 = 36 − 36 = 0
∴ D − 1 \therefore D^{-1} ∴ D − 1 does not exist.
Which of the following matrices have inverses?
2 X 2 Matrix to Solve Simultaneous Equations
Solving simultaneous equations by matrix method:
If A A A and B B B are two matrices such that
A = ( a c b d ) , B = ( x y ) A = \begin{pmatrix} a & c \\ b & d \end{pmatrix}, \quad B = \begin{pmatrix} x \\ y \end{pmatrix} A = ( a b c d ) , B = ( x y )
Then
A B = ( a c b d ) ( x y ) = ( a x + c y b x + d y ) AB = \begin{pmatrix} a & c \\ b & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} ax + cy \\ bx + dy \end{pmatrix} A B = ( a b c d ) ( x y ) = ( a x + cy b x + d y )
where a , b , c , d , x a, b, c, d, x a , b , c , d , x , and y y y are any real numbers.
Let A B = C AB = C A B = C where
C = ( p q ) C = \begin{pmatrix} p \\ q \end{pmatrix} C = ( p q )
Then,
A B = C ⇒ ( a x + c y b x + d y ) = ( p q ) AB = C \Rightarrow \begin{pmatrix} ax + cy \\ bx + dy \end{pmatrix} = \begin{pmatrix} p \\ q \end{pmatrix} A B = C ⇒ ( a x + cy b x + d y ) = ( p q )
a x + c y = p … … … ( 1 ) b x + d y = q … … … ( 2 ) \begin{aligned}
ax + cy &= p \quad \ldots \ldots \ldots (1) \\
bx + dy &= q \quad \ldots \ldots \ldots (2)
\end{aligned} a x + cy b x + d y = p ……… ( 1 ) = q ……… ( 2 )
Therefore, for any system of simultaneous equations, a matrix method can be used if and only if a d − b c ≠ 0 ad - bc \neq 0 a d − b c = 0 .
Since the system:
a x + c y = p and b x + d y = q ax + cy = p \quad \text{and} \quad bx + dy = q a x + cy = p and b x + d y = q
can be written in matrix form as:
( a c b d ) ( x y ) = ( p q ) \begin{pmatrix} a & c \\ b & d \end{pmatrix}
\begin{pmatrix} x \\ y \end{pmatrix}
=
\begin{pmatrix} p \\ q \end{pmatrix} ( a b c d ) ( x y ) = ( p q )
Let
A = ( a c b d ) , B = ( x y ) , C = ( p q ) A = \begin{pmatrix} a & c \\ b & d \end{pmatrix}, \quad
B = \begin{pmatrix} x \\ y \end{pmatrix}, \quad
C = \begin{pmatrix} p \\ q \end{pmatrix} A = ( a b c d ) , B = ( x y ) , C = ( p q )
Then the matrix equation becomes:
A B = C AB = C A B = C
If A − 1 A^{-1} A − 1 is multiplied on each side of the equation, we get:
A − 1 ⋅ A B = A − 1 ⋅ C A^{-1} \cdot AB = A^{-1} \cdot C A − 1 ⋅ A B = A − 1 ⋅ C
( A − 1 A ) ⋅ B = A − 1 ⋅ C (A^{-1}A) \cdot B = A^{-1} \cdot C ( A − 1 A ) ⋅ B = A − 1 ⋅ C
But A − 1 A = I A^{-1}A = I A − 1 A = I , where I I I is the identity matrix, and for any matrix K K K , K I = I K = K KI = IK = K K I = I K = K .
Therefore:
I ⋅ B = A − 1 C ⇒ B = A − 1 C I \cdot B = A^{-1}C \Rightarrow B = A^{-1}C I ⋅ B = A − 1 C ⇒ B = A − 1 C
Now by equating the corresponding elements, the following simultaneous equations are obtained.
Then B = A − 1 × C B = A^{-1} \times C B = A − 1 × C
Cramer's Rule
Cramer's Rule is another method to solve the equations of the form:
{ a x + c y = p b x + d y = q \begin{cases}
ax + cy = p \\
bx + dy = q
\end{cases} { a x + cy = p b x + d y = q
By using the inverse of a matrix method, we have seen that:
( x y ) = 1 a d − b c ( d − c − b a ) ( p q ) \begin{pmatrix} x \\ y \end{pmatrix}
=
\frac{1}{ad - bc}
\begin{pmatrix} d & -c \\ -b & a \end{pmatrix}
\begin{pmatrix} p \\ q \end{pmatrix} ( x y ) = a d − b c 1 ( d − b − c a ) ( p q )
Or:
x = d p − c q a d − b c , y = a q − b p a d − b c x = \frac{dp - cq}{ad - bc}, \quad
y = \frac{aq - bp}{ad - bc} x = a d − b c d p − c q , y = a d − b c a q − b p
Where a d − b c ad - bc a d − b c is the determinant of the matrix
( a c b d ) \begin{pmatrix} a & c \\ b & d \end{pmatrix} ( a b c d ) .
So
x = ∣ p c c d ∣ ∣ a c b d ∣ and y = ∣ d p b q ∣ ∣ a c b d ∣ x = \frac{\begin{vmatrix} p & c \\ c & d \end{vmatrix}}{\begin{vmatrix} a & c \\ b & d \end{vmatrix}} \quad \text{and} \quad
y = \frac{\begin{vmatrix} d & p \\ b & q \end{vmatrix}}{\begin{vmatrix} a & c \\ b & d \end{vmatrix}} x = a b c d p c c d and y = a b c d d b p q
In x = ∣ p c c d ∣ ∣ a c b d ∣ x = \frac{\begin{vmatrix} p & c \\ c & d \end{vmatrix}}{\begin{vmatrix} a & c \\ b & d \end{vmatrix}} x = a b c d p c c d , the numerator is obtained by replacing the first column by the column ( p q ) \begin{pmatrix} p \\ q \end{pmatrix} ( p q ) .
In y = ∣ d p b q ∣ ∣ a c b d ∣ y = \frac{\begin{vmatrix} d & p \\ b & q \end{vmatrix}}{\begin{vmatrix} a & c \\ b & d \end{vmatrix}} y = a b c d d b p q , the numerator is obtained by taking the determinant of the matrix after replacing the second column by the column ( p q ) \begin{pmatrix} p \\ q \end{pmatrix} ( p q ) .
While the denominator in both cases is the determinant of ( a c b d ) \begin{pmatrix} a & c \\ b & d \end{pmatrix} ( a b c d ) .
Example
Solve
{ 3 x − y = 11 x + 3 y = − 3 \begin{cases}
3x - y = 11 \\
x + 3y = -3
\end{cases} { 3 x − y = 11 x + 3 y = − 3
Solution:
The equations can be written as
( 3 − 1 1 3 ) ( x y ) = ( 11 − 3 ) \begin{pmatrix}
3 & -1 \\
1 & 3
\end{pmatrix}
\begin{pmatrix}
x \\
y
\end{pmatrix}
=
\begin{pmatrix}
11 \\
-3
\end{pmatrix} ( 3 1 − 1 3 ) ( x y ) = ( 11 − 3 )
So,
x = ∣ 11 − 1 − 3 3 ∣ ∣ 3 − 1 1 3 ∣ and y = ∣ 3 11 1 − 3 ∣ ∣ 3 − 1 1 3 ∣ x = \frac{\begin{vmatrix} 11 & -1 \\ -3 & 3 \end{vmatrix}}{\begin{vmatrix} 3 & -1 \\ 1 & 3 \end{vmatrix}}
\quad \text{and} \quad
y = \frac{\begin{vmatrix} 3 & 11 \\ 1 & -3 \end{vmatrix}}{\begin{vmatrix} 3 & -1 \\ 1 & 3 \end{vmatrix}} x = 3 1 − 1 3 11 − 3 − 1 3 and y = 3 1 − 1 3 3 1 11 − 3
Now, calculate:
For x x x :
x = 11 × 3 − ( − 3 × − 1 ) 3 × 3 − 1 × ( − 1 ) = 33 − 3 9 + 1 = 30 10 = 3 x = \frac{11 \times 3 - (-3 \times -1)}{3 \times 3 - 1 \times (-1)}
= \frac{33 - 3}{9 + 1}
= \frac{30}{10} = 3 x = 3 × 3 − 1 × ( − 1 ) 11 × 3 − ( − 3 × − 1 ) = 9 + 1 33 − 3 = 10 30 = 3
For y y y :
y = 3 × ( − 3 ) − 1 × 11 3 × 3 − 1 × ( − 1 ) = − 9 − 11 9 + 1 = − 20 10 = − 2 y = \frac{3 \times (-3) - 1 \times 11}{3 \times 3 - 1 \times (-1)}
= \frac{-9 - 11}{9 + 1}
= \frac{-20}{10} = -2 y = 3 × 3 − 1 × ( − 1 ) 3 × ( − 3 ) − 1 × 11 = 9 + 1 − 9 − 11 = 10 − 20 = − 2
Therefore, x = 3 x = 3 x = 3 and y = − 2 y = -2 y = − 2