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

In summary, the equation has p1, p2, p3 as unknowns. The problem is that I cannot figure out their values. If somebody could help me with the values of p1 p2 p3 that would be a great help :)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]After doing this, you can then try Gaussian elimination.
  • #1
maarrcc1994
4
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 :)
 
Mathematics news on Phys.org
  • #2
Are you wanting to use Gaussian elimination?

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

\(\displaystyle \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?
 
  • #3
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? :)
 
  • #4
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
 
  • #5
|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
 
  • #6
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.
 
  • #7
Its really clear where I went wrong now, thank you so much! :)
 

1. How do I solve for p1, p2, and p3 in matrix algebra?

To solve for p1, p2, and p3 in matrix algebra, you will need to use the inverse of the coefficient matrix. First, write the equations in matrix form, with the coefficients of p1, p2, and p3 on the left side and the constants on the right side. Then, find the inverse of the coefficient matrix and multiply it by the constant matrix. This will give you the values of p1, p2, and p3.

2. Can I use a calculator to solve for p1, p2, and p3 in matrix algebra?

Yes, you can use a calculator to solve for p1, p2, and p3 in matrix algebra. Simply input the equations in matrix form and use the calculator's inverse function to find the inverse of the coefficient matrix. Then, multiply it by the constant matrix to get the values of p1, p2, and p3.

3. What is the purpose of solving for p1, p2, and p3 in matrix algebra?

Solving for p1, p2, and p3 in matrix algebra allows you to find the values of the variables in a system of linear equations. This is useful in many areas of science, including physics, economics, and engineering.

4. Are there any shortcuts or tricks to solve for p1, p2, and p3 in matrix algebra?

There are no shortcuts or tricks to solve for p1, p2, and p3 in matrix algebra. The process involves finding the inverse of the coefficient matrix and multiplying it by the constant matrix. However, with practice and familiarity, you may be able to solve these types of equations more quickly.

5. What are some real-world applications of solving for p1, p2, and p3 in matrix algebra?

Solving for p1, p2, and p3 in matrix algebra has many real-world applications. For example, it can be used to analyze and predict the behavior of complex systems, such as the stock market. It is also used in computer graphics, machine learning, and data analysis.

Similar threads

  • Introductory Physics Homework Help
Replies
6
Views
631
Replies
5
Views
2K
  • General Math
Replies
4
Views
7K
  • General Math
Replies
1
Views
4K
  • Linear and Abstract Algebra
Replies
12
Views
2K
Replies
4
Views
2K
  • Advanced Physics Homework Help
Replies
8
Views
7K
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
4
Views
1K
Back
Top