Matrix Algebra Help: Solve for p1, p2, and p3

Click For Summary
SUMMARY

The discussion focuses on solving a system of equations using matrix algebra, specifically Gaussian elimination and the inversion method. The equations provided are p1 + 4p2 + 8p3 = 26, 5p1 + 7p2 = 38, and 8p1 + 12p2 + 2p3 = 66. The determinant was calculated incorrectly as 22, but the correct value is 6. The participants clarified the steps for finding cofactors and inverting the matrix, leading to the correct formulation for solving for p1, p2, and p3.

PREREQUISITES
  • Matrix algebra fundamentals
  • Understanding of Gaussian elimination
  • Familiarity with matrix inversion techniques
  • Knowledge of determinants and cofactors
NEXT STEPS
  • Study the Gaussian elimination method in detail
  • Learn about matrix inversion and its applications
  • Explore determinant calculation techniques
  • Practice solving systems of equations using matrix methods
USEFUL FOR

Students and professionals in mathematics, engineering, or computer science who are looking to enhance their skills in matrix algebra and solve systems of equations effectively.

maarrcc1994
Messages
4
Reaction score
0
Hopefully someone can help me solve this, I'm usually quite good at matrix algebra but for some reason I cannot solve this equation.

p1+4p2+8p3=26
5p1+7p2=38
8P1+12p2+2p3=66

If somebody could help me with the values of p1 p2 p3 that would be a great help :)
 
Physics news on Phys.org
Are you wanting to use Gaussian elimination?

If so, your first step is to set up the augmented matrix:

$$\left[\begin{array}{ccc|c} 1&4&8&26\\ 5&7&0&38\\ 4&6&1&33 \end{array} \right]$$

Note: I divided the last equation by 2 for the sake of simplcity.

Do you know what the next step is?
 
I've only been taught the inversion method so that's what I usually use, I tried with cramers rule but still couldn't seem to get it right, could you show me using inversion? :)
 
Show what you did with the inversion method so we can see where you are stuck and then we can go from there. :D

edit: I've got to run now, but there are many here much better at matrix algebra than me, and so perhaps someone will help in the meantime. To be honest, it is Gaussian elimination that I find to be the most straightforward method, and which is the only one I recall how to do without looking things up. :D
 
|1 4 8 | |p1| 26
|5 7 0 | |p2| = 38
|8 12 2 | |p3| 66

The determinant=
1*[7*2] - [12*0]=14
-4*[5*2] - [8*0]=-40
8*[5*12] - [7*8]= 32

14--40-32=22

I found the determinant to be 22 so I'm hoping that part was right.Then i moved on to finding each cofactor-

| 7 0| |5 0| |5 7|
+ |12 2| - |8 12| + |8 12|

- |4 8| + |1 8| - | 1 4 |
|12 2| |8 2| | 8 12|

+ | 4 8| - |1 8 | + | 1 4|
| 7 0| | 5 0 | | 5 7|| 14 -60 4 |
| 88 -62 20 |
| -56 40 -13 |Then I inverted the results

|14 88 -56 |
1/22 |-60 -62 40 |
| 4 20 -13 |

From here the answers were way off so I've obviously miscalculated disastrously

apologies for the formatting, it seems I'm as bad as this as I am at maths
 
Hi maarrcc1994! Welcome to MHB! :)

maarrcc1994 said:
|1 4 8 | |p1| 26
|5 7 0 | |p2| = 38
|8 12 2 | |p3| 66

The determinant=
1*([7*2] - [12*0])=14
-4*([5*2] - [8*0])=-40
8*([5*12] - [7*8])= 32

Up till here it is all correct! ;)
(Except for a couple of parentheses that I've added in the quote.)
Note that with the -4 in the second line, you have properly picked up on the sign.
14--40-32=22

I found the determinant to be 22 so I'm hoping that part was right.

You already had all the signs in place, so I'm afraid you shouldn't introduce more minus signs.
The determinant should be just the sum: $D=14-40+32=6$.
Then i moved on to finding each cofactor-

Code:
      | 7 0|    |5  0|    |5  7|   
 +    |12 2|  - |8 12|  + |8 12|

The approach is good, but your second submatrix should have a 2 instead of a 12, yielding -10 instead of -60.
Code:
  -     |4  8|  + |1  8|    - | 1  4 |
        |12 2|    |8  2|      | 8  12|

  +     | 4  8|  - |1  8 |  + | 1  4|
        | 7  0|    |5  0 |    | 5  7|| 14  -60  4  |      
| 88  -62  20 |
| -56  40 -13 |

The rest is correct, but with the correction I mentioned, it should be:
\begin{bmatrix}
14 & -10 & 4 \\
88 & -62 & 20 \\
-56 & 40 & -13 \\
\end{bmatrix}
Then I inverted the results

Code:
             |14   88  -56 |
1/22         |-60 -62  40  |
             | 4   20  -13 |

From here the answers were way off so I've obviously miscalculated disastrously

So this should be (transposing and multiplying with the inverse of the determinant):
$$\frac 1 6
\begin{bmatrix}
14 & 88 & -56 \\
-10 & -62 & 40 \\
4 & 20 & -13 \\
\end{bmatrix}$$
apologies for the formatting, it seems I'm as bad as this as I am at maths

For reference, when you click Reply with Quote, you can see how I formatted what I did.
 
Its really clear where I went wrong now, thank you so much! :)
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
6K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
3K
Replies
6
Views
6K