SOLUTION: Suppose that A is the matrix over Z7: A = 3 2 4 4 3 5 2 1 2. (a) Find the inverse of A in Z7. (b) Let b = 1 −4 9 Solve Ax = b in Z7.

Algebra.Com
Question 1204571: Suppose that A is the matrix over Z7:
A =
3 2 4
4 3 5
2 1 2.
(a) Find the inverse of A in Z7.
(b) Let b =
1
−4
9
Solve Ax = b in Z7.

Answer by math_tutor2020(3817)   (Show Source): You can put this solution on YOUR website!

Part (a)

Let's ignore the Z7 notation for a moment.

For now we're just going to worry about finding the inverse.

The given matrix is

I'll place the 9 items in separate boxes
324
435
212


Append the 3x3 identity matrix to the right hand side like so
324100
435010
212001

The goal is to use matrix row reduction (i.e. Gauss-Jordan Elimination) to transform the left 3x3 block into the identity matrix.
The resulting right hand side will be the inverse.

324100
435010
212001

212001R1 <--> R3
435010
324100

11/21001/2(1/2)*R1 --> R1
435010
324100

11/21001/2
01101-2R2 - 4*R1 --> R2
324100

11/21001/2
01101-2
01/2110-3/2R3 - 3*R1 --> R3

11/21001/2
01101-2
001/21-1/2-1/2R3 - (1/2)*R2 --> R3

11/21001/2
01101-2
0012-1-12*R3 --> R3

Almost done. Just a few more steps.
11/21001/2
010-22-1R2 - R3 --> R2
0012-1-1

11/20-213/2R1 - R3 --> R1
010-22-1
0012-1-1

100-102R1 - (1/2)R2 --> R1
010-22-1
0012-1-1

Here is a very useful tool
http://www.math.odu.edu/~bogacki/lat/
It is called "linear algebra toolkit". It is a collection of matrix solvers that show step by step solutions. I recommend it to check your work.

We now have the left hand 3x3 block as the identity matrix.
The 3x3 block on the right hand side is the inverse.

The inverse of is

This can be verified by showing that

and

I'll let the student do these two calculations to verify.


Now let's return to the idea of Z7.
This is the set of integers modulo 7. We look at the remainders when dividing over 7.
Those remainders are: {0,1,2,3,4,5,6}
If we have a value too large, then subtract off 7 repeatedly until landing on one of those remainders listed above.
For instance, start with 15 and subtract off two copies of 7 to get 15-7-7 = 1, which shows that 15/7 gives remainder 1.

If we have a value too small, then repeatedly add 7 until landing on one of the remainders.
Example: start with -2 and land on -2+7 = 5
It shows that -2 = 5 (mod 7)

So when we're working with Z7, then the inverse turns into

This wraps up part (a)

---------------------------------------------------------------------------------------------

Part (b)


Use the trick mentioned in the previous part to find that
-4 = 3 (mod 7)
9 = 2 (mod 7)

So,
when in Z7.


The matrix equation turns into when we left-multiply both sides by the inverse of matrix A.


That turns into

I'll skip steps, but you'll then perform matrix multiplication to get

Then we'll need to find the remainder of each of those items mod 7
10 = 3 (mod 7)
23 = 2 (mod 7)
32 = 4 (mod 7)

The final answer to part (b) is

What this means is that
when in Z7.

RELATED QUESTIONS

I= {h(t)*([4]t^4 + [2]t^3 + [6]t^2 + [4]t + [5]) + k(t)*([3]t^3 + [5]t^2 + [6]t):h(t),... (answered by venugopalramana)
Find the roots of : a) z3 = 1 + i b) z5 = −i c) z7 =... (answered by greenestamps)
Solve the matrix equation AX=B for X using A= 2 -3 B=4 1 5 (answered by richwmiller)
Solve the matrix equation AX=B for X using A=2 -3 B=4 1 5 (answered by Fombitz)
Find the inverse of the following matrix, the inverse exists. A = [2 1 0] [0 (answered by Fombitz)
For the matrix A = (-6 3 9) ( 3 6 -2) ( 5 1 4) a. Find the determinant of... (answered by ikleyn)
Suppose A is a 5 x 3 matrix, B is an r x s matrix and C is a 4 x 5 matrix. If At BC is... (answered by jim_thompson5910)
A (3 1 ) B= (6 1 C= (-4 3 D= (4 7 5 2 11 3 -5 2 -2... (answered by Fombitz)
Could someone please help? I need to a) write each linear equation as a matrix equation... (answered by stanbon)