Soving system of equations using the Gauss-Jordan method

charlesjoy

New member
Joined
Mar 26, 2009
Messages
38
good morning. I have tired working the below problem but am not getting the correct answer. Can you show me how to work it?

X + 2y + 5z = 16
4y + 4z = 8
z = 5

Here is what I have done so far:

Z = 5, y = 8 -4(5) = -12, x = 16 + 2(-12) - 5(5) = 15
 
charlesjoy said:
X + 2y + 5z = 16...

x = 16 + 2(-12) - 5(5) = 15
Assuming "X" is meant to be "x", you should have "x = 16 - 2y - 5z". :wink:
 
Set up your matrix from the coefficients of the system.

\(\displaystyle \begin{bmatrix}1&2&5&16\\0&4&4&8\\0&0&1&5\end{bmatrix}\)

The idea is to perform row operations until you get it into the form:

\(\displaystyle \begin{bmatrix}1&0&0&a\\0&1&0&b\\0&0&1&c\end{bmatrix}\)

where a,b,c are your solutions, x=a, y=b, z=c.

On thing nice about this one is that it is already finished to a point.

Multiply the second row by 1/4:

\(\displaystyle \begin{bmatrix}1&2&5&16\\0&1&1&2\\0&0&1&5\end{bmatrix}\)

Multiply the third row by -1 and add to the second row:

\(\displaystyle \begin{bmatrix}1&2&5&16\\0&1&0&-3\\0&0&1&5\end{bmatrix}\)

Multiply the second row by -2 and add to the first row:

\(\displaystyle \begin{bmatrix}1&0&5&22\\0&1&0&-3\\0&0&1&5\end{bmatrix}\)

Multiply the third row by -5 and add to the first row:

\(\displaystyle \begin{bmatrix}1&0&0&-3\\0&1&0&-3\\0&0&1&5\end{bmatrix}\)

There ya' go. x=-3, y=-3, z=5

There was a nice stepped through example. Now can you proceed with others?. These take practice. I know they're laborious and tedious.
A lot of calculators do them. I would use that to check anyway.
 
charlesjoy said:
good morning. I have tired working the below problem but am not getting the correct answer. Can you show me how to work it?

X + 2y + 5z = 16
4y + 4z = 8 ? 4y + 4*5 = 8 ? 4 y = 8 - 20 = -12 ? y = (-12)/4 = -3 .. now continue
z = 5

Here is what I have done so far:

Z = 5, y = 8 -4(5) = -12, x = 16 + 2(-12) - 5(5) = 15 ? This is very sloppy work - that is why you have mistakes.
 
Top