Sonzaschool
Rudi

Sekondari ya Kawaida · Kidato cha Nne

Hisabati

Inverse of a matrix

takriban dakika 10 kusoma

Majadiliano
Mada za sehemu hiiMatrices And TransformationsMada 3

Inverse of a Matrix

The Determinant of a 2 X 2 Matrix

Determinant of a matrix

A=(acbd)A = \begin{pmatrix} \stackrel{\curvearrowleft}{a} & \stackrel{\curvearrowright}{c} \\ \stackrel{\curvearrowleft}{b} & \stackrel{\curvearrowright}{d} \end{pmatrix} ad=Leading diagonalbc=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}

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=(1324), then:\text{If } A = \begin{pmatrix} 1 & 3 \\ 2 & 4 \end{pmatrix}, \text{ then:}

A=1×42×3=46=2|A| = 1 \times 4 - 2 \times 3 = 4 - 6 = -2

A=2\therefore |A| = -2

A|A| if A=(1324)A = \begin{pmatrix} 1 & 3 \\ 2 & 4 \end{pmatrix}

Solution: A=1×42×3=46=2|A| = 1 \times 4 - 2 \times 3 = 4 - 6 = -2

A=2\therefore |A| = -2

Example 2

Considering

If B=(1035)B = \begin{pmatrix} 1 & 0 \\ 3 & 5 \end{pmatrix}, find A|A|

Solution: B=1×50×3=50=5|B| = 1 \times 5 - 0 \times 3 = 5 - 0 = 5

B=5\therefore |B| = 5

Example 3

Find the value of x

If C=(2x3210)C = \begin{pmatrix} 2x & 3 \\ -2 & 10 \end{pmatrix} having determinant 46.

Solution: C=(2x3210)C = \begin{pmatrix} 2x & 3 \\ -2 & 10 \end{pmatrix}

C=2x10(2)3=46|C| = 2x \cdot 10 - (-2) \cdot 3 = 46

20x+6=4620x + 6 = 46

20x=46620x = 46 - 6

20x=4020x = 40

x=4020=2x = \frac{40}{20} = 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=(453y6)B = \begin{pmatrix} 4 & 5 \\ 3y & 6 \end{pmatrix}

is a singular matrix, then:

B=4×65×(3y)|B| = 4 \times 6 - 5 \times (3y)

B=2415y|B| = 24 - 15y

Since BB is a singular matrix, its determinant must be zero:

2415y=024 - 15y = 0 24=15y24 = 15y y=2415=85y = \frac{24}{15} = \frac{8}{5} y=85\therefore y = \frac{8}{5}

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=A1B = A^{-1}, that is B is the inverse of matrix A

AA1=I=(1001)AA^{-1} = I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

So,

(acbd)(prqs)=(1001)\begin{pmatrix} a & c \\ b & d \end{pmatrix} \begin{pmatrix} p & r \\ q & s \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} (ap+cqar+csbp+dqbr+ds)=(1001)\begin{pmatrix} ap + cq & ar + cs \\ bp + dq & br + ds \end{pmatrix} = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

From which we obtain:

ap+cq=1(i)ar+cs=0(ii)bp+dq=0(iii)br+ds=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}

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: {ap+cq=1bp+dq=0and{ar+cs=0br+ds=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} By elimination method\text{By elimination method} From {ap+cq=1(1)bp+dq=0(2)Multiply (1) by b:abp+bcq=bMultiply (2) by a:abp+adq=0Subtract:(bcad)q=bq=bbcad\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} To find p:\text{To find } p: ap+cq=1p=1cqa\begin{aligned} & ap + cq = 1 \\ & \Rightarrow p = \frac{1 - cq}{a} \end{aligned} Since q=bbcad, substitute into the equation for p:\text{Since } q = \frac{b}{bc - ad}, \text{ substitute into the equation for } p: p=1c(bbcad)a=(bcad)bca(bcad)=ada(bcad)=dadbc\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}

Also to get r and s, the same procedure must be followed:

And

{ar+cs=0br+ds=1{adr+cds=0bcr+cds=c(adbc)r=cor (bcad)r=cr=cbcadTherefore p=dadbc,q=badbc,r=cbcad,s=aadbc.\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}

Remember B=(prqs)B = \begin{pmatrix} p & r \\ q & s \end{pmatrix} which is the inverse of AA where A=(1001)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}.

So

B=(dadbccbcadbbcadaadbc)B = \begin{pmatrix} \dfrac{d}{ad-bc} & \dfrac{c}{bc-ad} \\ \dfrac{b}{bc-ad} & \dfrac{a}{ad-bc} \end{pmatrix}

But bcad=(adbc)bc-ad = -(ad-bc).

Now

B=(dadbccadbcbadbcaadbc)B = \begin{pmatrix} \dfrac{d}{ad-bc} & \dfrac{-c}{ad-bc} \\ \dfrac{-b}{ad-bc} & \dfrac{a}{ad-bc} \end{pmatrix}

Example 5

Given that,

If B=(453y6)B = \begin{pmatrix} 4 & 5 \\ 3y & 6 \end{pmatrix} is a singular matrix,

Solution:

Then,

B=4×65×(3y)=2415y|B| = 4 \times 6 - 5 \times (3y) = 24 - 15y

Since BB is a singular matrix, its determinant is zero:

B=02415y=0|B| = 0 \Rightarrow 24 - 15y = 0

Solving for yy:

24=15yy=2415=8524 = 15y \Rightarrow y = \frac{24}{15} = \frac{8}{5} y=85\therefore y = \frac{8}{5}

Example 6

(a) B=(1326)B = \begin{pmatrix} -1 & 3 \\ 2 & 6 \end{pmatrix}, B=1×62×3|B| = -1 \times 6 - 2 \times 3

B=120|B| = -12 \neq 0

B1\therefore B^{-1} exists

(b) C=(3648)C = \begin{pmatrix} 3 & 6 \\ 4 & 8 \end{pmatrix}, C=3×84×6=2424=0|C| = 3 \times 8 - 4 \times 6 = 24 - 24 = 0

C=0, so C1 does not exist|C| = 0, \text{ so } C^{-1} \text{ does not exist}

(c) D=(29418)D = \begin{pmatrix} 2 & 9 \\ 4 & 18 \end{pmatrix}, D=2×189×4=3636=0|D| = 2 \times 18 - 9 \times 4 = 36 - 36 = 0

D1\therefore 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 AA and BB are two matrices such that

A=(acbd),B=(xy)A = \begin{pmatrix} a & c \\ b & d \end{pmatrix}, \quad B = \begin{pmatrix} x \\ y \end{pmatrix}

Then

AB=(acbd)(xy)=(ax+cybx+dy)AB = \begin{pmatrix} a & c \\ b & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} ax + cy \\ bx + dy \end{pmatrix}

where a,b,c,d,xa, b, c, d, x, and yy are any real numbers.

Let AB=CAB = C where

C=(pq)C = \begin{pmatrix} p \\ q \end{pmatrix}

Then,

AB=C(ax+cybx+dy)=(pq)AB = C \Rightarrow \begin{pmatrix} ax + cy \\ bx + dy \end{pmatrix} = \begin{pmatrix} p \\ q \end{pmatrix} ax+cy=p(1)bx+dy=q(2)\begin{aligned} ax + cy &= p \quad \ldots \ldots \ldots (1) \\ bx + dy &= q \quad \ldots \ldots \ldots (2) \end{aligned}

Therefore, for any system of simultaneous equations, a matrix method can be used if and only if adbc0ad - bc \neq 0.

Since the system:

ax+cy=pandbx+dy=qax + cy = p \quad \text{and} \quad bx + dy = q

can be written in matrix form as:

(acbd)(xy)=(pq)\begin{pmatrix} a & c \\ b & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} p \\ q \end{pmatrix}

Let

A=(acbd),B=(xy),C=(pq)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}

Then the matrix equation becomes:

AB=CAB = C

If A1A^{-1} is multiplied on each side of the equation, we get:

A1AB=A1CA^{-1} \cdot AB = A^{-1} \cdot C (A1A)B=A1C(A^{-1}A) \cdot B = A^{-1} \cdot C

But A1A=IA^{-1}A = I, where II is the identity matrix, and for any matrix KK, KI=IK=KKI = IK = K.

Therefore:

IB=A1CB=A1CI \cdot B = A^{-1}C \Rightarrow B = A^{-1}C

Now by equating the corresponding elements, the following simultaneous equations are obtained.

Then B=A1×CB = A^{-1} \times C

Cramer's Rule

Cramer's Rule is another method to solve the equations of the form:

{ax+cy=pbx+dy=q\begin{cases} ax + cy = p \\ bx + dy = q \end{cases}

By using the inverse of a matrix method, we have seen that:

(xy)=1adbc(dcba)(pq)\begin{pmatrix} x \\ y \end{pmatrix} = \frac{1}{ad - bc} \begin{pmatrix} d & -c \\ -b & a \end{pmatrix} \begin{pmatrix} p \\ q \end{pmatrix}

Or:

x=dpcqadbc,y=aqbpadbcx = \frac{dp - cq}{ad - bc}, \quad y = \frac{aq - bp}{ad - bc}

Where adbcad - bc is the determinant of the matrix (acbd)\begin{pmatrix} a & c \\ b & d \end{pmatrix}.

So

x=pccdacbdandy=dpbqacbdx = \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}}

In x=pccdacbdx = \frac{\begin{vmatrix} p & c \\ c & d \end{vmatrix}}{\begin{vmatrix} a & c \\ b & d \end{vmatrix}}, the numerator is obtained by replacing the first column by the column (pq)\begin{pmatrix} p \\ q \end{pmatrix}.

In y=dpbqacbdy = \frac{\begin{vmatrix} d & p \\ b & q \end{vmatrix}}{\begin{vmatrix} a & c \\ b & d \end{vmatrix}}, the numerator is obtained by taking the determinant of the matrix after replacing the second column by the column (pq)\begin{pmatrix} p \\ q \end{pmatrix}.

While the denominator in both cases is the determinant of (acbd)\begin{pmatrix} a & c \\ b & d \end{pmatrix}.

Example

Solve

{3xy=11x+3y=3\begin{cases} 3x - y = 11 \\ x + 3y = -3 \end{cases}

Solution:

The equations can be written as

(3113)(xy)=(113)\begin{pmatrix} 3 & -1 \\ 1 & 3 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 11 \\ -3 \end{pmatrix}

So,

x=111333113andy=311133113x = \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}}

Now, calculate:

For xx:

x=11×3(3×1)3×31×(1)=3339+1=3010=3x = \frac{11 \times 3 - (-3 \times -1)}{3 \times 3 - 1 \times (-1)} = \frac{33 - 3}{9 + 1} = \frac{30}{10} = 3

For yy:

y=3×(3)1×113×31×(1)=9119+1=2010=2y = \frac{3 \times (-3) - 1 \times 11}{3 \times 3 - 1 \times (-1)} = \frac{-9 - 11}{9 + 1} = \frac{-20}{10} = -2

Therefore, x=3x = 3 and y=2y = -2

Mwalimu

Unasoma somo hili? Niulize nikuelezee chochote kilichomo.

Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.

Ingia ili kuuliza

Majadiliano

Hakuna maswali bado

Ingia ili kuuliza
Inapakia majadiliano…