Command Palette

Search for a command to run...

Matrix

Matrix Equality

Definition of Matrix Equality

In the world of matrices, we often need to compare two or more matrices. One important concept in this comparison is matrix equality. Two matrices are said to be equal if they meet certain conditions.

Two matrices, let's say matrix AA and matrix BB, are said to be equal (written as A=BA=B) if and only if both of the following conditions are met:

  1. Same Order: Matrix AA and matrix BB must have the same order (number of rows and columns). If matrix AA has an order of m×nm \times n, then matrix BB must also have an order of m×nm \times n.
  2. Corresponding Elements are Equal: Every corresponding element (located in the same row and column position) in matrix AA and matrix BB must have the same value. If A=[aij]A = [a_{ij}] and B=[bij]B = [b_{ij}], then aij=bija_{ij} = b_{ij} for all values of ii (row index) and jj (column index).

If one of these two conditions is not met, then matrix AA is not equal to matrix BB (written as ABA \neq B).

Examples of Matrix Equality

Equal Matrices

Given two matrices:

P=[1234]andQ=[1234]P = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \quad \text{and} \quad Q = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}

Matrix PP and matrix QQ are equal (P=QP=Q) because:

  • Both have an order of 2×22 \times 2.

  • Corresponding elements have the same value:

    p11=q11=1p_{11} = q_{11} = 1, p12=q12=2p_{12} = q_{12} = 2 , p21=q21=3p_{21} = q_{21} = 3, p22=q22=4p_{22} = q_{22} = 4 .

Unequal Matrices (Different Order)

Given two matrices:

R=[4971]andC=[497100]R = \begin{bmatrix} 4 & -9 \\ 7 & 1 \end{bmatrix} \quad \text{and} \quad C = \begin{bmatrix} 4 & -9 \\ 7 & 1 \\ 0 & 0 \end{bmatrix}

Matrix RR is not equal to matrix CC (RCR \neq C) because the order of matrix RR is 2×22 \times 2, while the order of matrix CC is 3×23 \times 2.

Unequal Matrices (Different Corresponding Elements)

Given two matrices:

S=[5028]andT=[5028]S = \begin{bmatrix} 5 & 0 \\ -2 & 8 \end{bmatrix} \quad \text{and} \quad T = \begin{bmatrix} 5 & 0 \\ 2 & 8 \end{bmatrix}

Although matrix SS and matrix TT have the same order (2×22 \times 2), they are not equal (STS \neq T) because the element in the 2nd row and 1st column is not the same (s21=2s_{21} = -2 while t21=2t_{21} = 2).

Determining Variable Values from Matrix Equality

Given matrices A=[x23yz2]A = \begin{bmatrix} -x & 2 \\ -3y & z^2 \end{bmatrix} and B=[1269]B = \begin{bmatrix} -1 & 2 \\ 6 & 9 \end{bmatrix}.

If matrix AA is equal to matrix BB (A=BA=B), determine the values of xx, yy, and zz.

Solution:

Since A=BA=B, the corresponding elements must be equal:

  1. a11=b11    x=1    x=1a_{11} = b_{11} \implies -x = -1 \implies x = 1
  2. a12=b12    2=2a_{12} = b_{12} \implies 2 = 2 (already equal)
  3. a21=b21    3y=6    y=63    y=2a_{21} = b_{21} \implies -3y = 6 \implies y = \frac{6}{-3} \implies y = -2
  4. a22=b22    z2=9    z=±9    z=3 or z=3a_{22} = b_{22} \implies z^2 = 9 \implies z = \pm\sqrt{9} \implies z = 3 \text{ or } z = -3

Thus, the values are x=1x=1, y=2y=-2, and z=±3z = \pm 3.

Exercises

Answer the following questions with True or False.

  1. Two matrices having the same order is one of the conditions for the two matrices to be equal.

  2. Two different matrices always have different orders.

  3. If given matrix K=[2002]K = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix} and matrix L=[200200]L = \begin{bmatrix} 2 & 0 \\ 0 & 2 \\ 0 & 0 \end{bmatrix}, then matrix KK is equal to matrix LL.

  4. Given matrices P=[2x41y+3]P = \begin{bmatrix} 2x & 4 \\ -1 & y+3 \end{bmatrix} and Q=[10412]Q = \begin{bmatrix} -10 & 4 \\ -1 & 2 \end{bmatrix}. If P=QP=Q, determine the values of xx and yy.

  5. If matrix A=[x3y0(x2y)21]A = \begin{bmatrix} -x-3y & 0 \\ (x-2y)^2 & 1 \end{bmatrix} and II is the identity matrix of order 2×22 \times 2. If A=IA = I, determine the value of x+yx+y.

  6. Calculate the value of a+b+c+da+b+c+d that satisfies the following matrix equality:

    [a+2b2a+bc+d2c+d]=[3371]\begin{bmatrix} a+2b & 2a+b \\ c+d & 2c+d \end{bmatrix} = \begin{bmatrix} 3 & -3 \\ 7 & 1 \end{bmatrix}

Answer Key

  1. True. Having the same order is the first condition for two matrices to be equal.

  2. False. Two different matrices can have the same order, but their corresponding elements are different (see Example 3).

  3. False. Matrix KK has an order of 2×22 \times 2 while matrix LL has an order of 3×23 \times 2. Since their orders are different, the two matrices are not equal.

  4. Given P=QP=Q:

    [2x41y+3]=[10412]\begin{bmatrix} 2x & 4 \\ -1 & y+3 \end{bmatrix} = \begin{bmatrix} -10 & 4 \\ -1 & 2 \end{bmatrix}

    From the equality of corresponding elements:

    • 2x=10    x=52x = -10 \implies x = -5
    • y+3=2    y=23    y=1y+3 = 2 \implies y = 2-3 \implies y = -1

      Thus, x=5x=-5 and y=1y=-1.

  5. The identity matrix II of order 2×22 \times 2 is I=[1001]I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}.

    Given A=IA=I:

    [x3y0(x2y)21]=[1001]\begin{bmatrix} -x-3y & 0 \\ (x-2y)^2 & 1 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

    From the equality of corresponding elements, we obtain a system of equations:

    1. x3y=1-x-3y = 1 (Equation 1)
    2. (x2y)2=0(x-2y)^2 = 0 (Equation 2)

    Solve Equation 2 first:

    (x2y)2=0(x-2y)^2 = 0
    x2y=0x-2y = \sqrt{0}
    x2y=0x-2y = 0
    x=2y(Equation 2’)x = 2y \quad \text{(Equation 2')}

    Substitute Equation 2' into Equation 1:

    (2y)3y=1-(2y)-3y = 1
    2y3y=1-2y-3y = 1
    5y=1-5y = 1
    y=15y = -\frac{1}{5}

    Substitute the value of y=15y = -\frac{1}{5} into Equation 2':

    x=2(15)x = 2\left(-\frac{1}{5}\right)
    x=25x = -\frac{2}{5}

    Then, the value of x+yx+y is:

    x+y=(25)+(15)x+y = \left(-\frac{2}{5}\right) + \left(-\frac{1}{5}\right)
    =2515= -\frac{2}{5} - \frac{1}{5}
    =215= \frac{-2-1}{5}
    =35= -\frac{3}{5}
  6. Given the matrix equality:

    [a+2b2a+bc+d2c+d]=[3371]\begin{bmatrix} a+2b & 2a+b \\ c+d & 2c+d \end{bmatrix} = \begin{bmatrix} 3 & -3 \\ 7 & 1 \end{bmatrix}

    From the equality of corresponding elements, we obtain a system of equations:

    1. a+2b=3a+2b = 3
    2. 2a+b=32a+b = -3
    3. c+d=7c+d = 7
    4. 2c+d=12c+d = 1

    Solve the system of equations for aa and bb (equations 1 and 2):

    Initial equations:

    a+2b=3(1)a+2b = 3 \quad \text{(1)}
    2a+b=3(2)2a+b = -3 \quad \text{(2)}

    To eliminate bb, multiply equation (2) by 2:

    2(2a+b)=2(3)2(2a+b) = 2(-3)
    4a+2b=6(2’)4a+2b = -6 \quad \text{(2')}

    Subtract equation (1) from equation (2'):

    (4a+2b)(a+2b)=63(4a+2b) - (a+2b) = -6 - 3
    4aa+2b2b=94a - a + 2b - 2b = -9
    3a=93a = -9
    a=93a = \frac{-9}{3}
    a=3a = -3

    Substitute the value of a=3a=-3 into equation (1):

    3+2b=3-3+2b=3
    2b=3+32b=3+3
    2b=62b=6
    b=62b = \frac{6}{2}
    b=3b = 3

    Solve the system of equations for cc and dd (equations 3 and 4):

    Initial equations:

    c+d=7(3)c+d = 7 \quad \text{(3)}
    2c+d=1(4)2c+d = 1 \quad \text{(4)}

    Subtract equation (3) from equation (4) to eliminate dd:

    (2c+d)(c+d)=17(2c+d) - (c+d) = 1 - 7
    2cc+dd=62c - c + d - d = -6
    c=6c = -6

    Substitute the value of c=6c=-6 into equation (3):

    6+d=7-6+d=7
    d=7+6d=7+6
    d=13d=13

    Then, the value of a+b+c+da+b+c+d is:

    a+b+c+d=(3)+3+(6)+13a+b+c+d = (-3) + 3 + (-6) + 13
    =06+13= 0 - 6 + 13
    =7= 7