Finding inverse matrices using Guass approach

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
thomas49th
Messages
645
Reaction score
0

Homework Statement


Use the determinate method and also the Gauss elimination method to find the inverse of the following matrix. Check your results by direct multiplication
[tex]A =\left | \begin{array}{ccc} 2&1&0\\ 1&0&0\\ 4&1&2 \end{array}\right | =[/tex]

Let's do Gauss first

Homework Equations


Place A by I and attemp to get A into I. Everything I perform on A must be performed on I and when A is in I, the original I is the inverse?

[tex]A =\left | \begin{array}{ccc} 2&1&0\\ 1&0&0\\ 4&1&2 \end{array}\right |[/tex]
[tex]I=\left | \begin{array}{ccc} 1&0&0\\ 0&1&0\\ 0&0&1 \end{array}\right |[/tex]

The Attempt at a Solution


Interchange rows 1 and R
R1 <-> R2

[tex]A =\left | \begin{array}{ccc} 1&0&0\\ 2&1&0\\ 4&1&2 \end{array}\right | =[/tex]
[tex]I =\left | \begin{array}{ccc} 0&1&0\\ 1&0&0\\ 0&0&1 \end{array}\right |[/tex]

Now R2 - 2R1

[tex]A =\left | \begin{array}{ccc} 1&0&0\\ 0&1&0\\ 4&1&2 \end{array}\right | =[/tex]
[tex]I =\left | \begin{array}{ccc} 0&1&0\\ 1&-2&0\\ 0&0&1 \end{array}\right |[/tex]

R3 - 4R1
[tex]A =\left | \begin{array}{ccc} 1&0&0\\ 0&1&0\\ 0&1&2 \end{array}\right | =[/tex]
[tex]I =\left | \begin{array}{ccc} 0&1&0\\ 1&-2&0\\ 0&-4&1 \end{array}\right |[/tex]
R3 - R2
[tex]A =\left | \begin{array}{ccc} 1&0&0\\ 0&1&0\\ 0&0&2 \end{array}\right | =[/tex]
[tex]I =\left | \begin{array}{ccc} 0&1&0\\ 1&-2&0\\ -1&-4&1 \end{array}\right |[/tex]

R3 / 2
[tex]A =\left | \begin{array}{ccc} 1&0&0\\ 0&1&0\\ 0&0&1 \end{array}\right | =[/tex]
[tex]I =\left | \begin{array}{ccc} 0&1&0\\ 1&-2&0\\ -1/2&-2&1/2 \end{array}\right |[/tex]

but multiplying my A and new I together does not give me I? What have I done wrong?
 
Physics news on Phys.org
ahh got it working by starting again and doing another combination... made a silly mistake in this jumble!

Thanks for the pointers guys. My other route still took just as long as this one. Do any of you any tricks to improve Gauss Elimination efficiency or is it just experience.

Thanks
Tom
 
I don't know how you are doing the calculations, but your work was difficult to check with two separate matrices. The usual practice is to create an augmented matrix, starting with A in the left half and I in the right half. After you get to I in the left half, your inverse of A will be in the right half. Each augmented matrix will look something like this.

[tex]\left[ \begin{array}{ccccccc}<br /> 2&1&0&|&1&0&0\\<br /> 1&0&0&|&0&1&0\\ <br /> 4&1&2&|&0&0&1<br /> \end{array}\right ][/tex]

An "accounting" tip to make it easier to understand what you did is to use a notation that indicates which row changes when you add a multiple of one row to another. One way to do this is fairly verbose R1 <-- R1 - 3R2. You can abbreviate this to R1 - 3R2 if it's understood that it's always the first row listed that is added to. Obviously if you just switch two rows, it doesn't matter which one you list first, and if you replace a row by a multiple of itself, there's only one row involved, so there shouldn't be any confusion about which rows are involved.

Other than that, you row-reduced your matrices the way I would have, so I don't see anything that you could have done that would have economized your efforts.