X
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time.
This article has been viewed 94,253 times.
Learn more...
A system of an equation is a set of two or more equations, which have a shared set of unknowns and therefore a common solution. For linear equations, which graph as straight lines, the common solution to a system is the point where the lines intersect. Matrices can be helpful for rewriting and solving linear systems.
Steps
Part 1
Part 1 of 2:
Understanding the Fundamentals
-
1Know your terminology. Linear equations have distinct components. The variable is the symbol (usually a letter like x or y) for a number you do not yet know. The constant is a number that remains consistent. The coefficient is a number before a variable, which is used to multiply it.[1]
- For example, in the linear equation 2x + 4y = 8, x and y are variables. The constant is 8. The numbers 2 and 4 are coefficients.
-
2Recognize the form for a system of equations. A system of equations with two variables can be written as follows:
ax + by = p
cx + dy = q
Any of the constants (p, q) can be zero, with the exception that each equation must have at least one variable (x, y) in it.[2]Advertisement -
3Understand matrix equations. When you have a linear system, you can use a matrix to rewrite it, then use the algebraic properties of that matrix to solve it. To rewrite a linear system, you use A to represent the coefficients matrix, C to represent the constants matrix, and X to represent the unknown matrix.[3]
- The linear system above, for example, can be rewritten as a matrix equation as follows: A x X = C.
-
4Understand augmented matrices. An augmented matrix is a matrix obtained by appending columns of two matrices. If you have two matrices, A and C, which looks like this:
You can create an augmented matrix by putting them together. The augmented matrix would look like this:[4]- For example, consider the following linear system:
2x + 4y = 8
x + y = 2
Your augmented matrix would be a 2x3 matrix that looks like this:
- For example, consider the following linear system:
Advertisement
Part 2
Part 2 of 2:
Transforming the Augmented Matrix to Solve the System
-
1Understand elementary operations. You can perform certain operations on a matrix to transform it while keeping it equivalent to the original. These are called elementary operations. To solve a 2x3 matrix, for example, you use elementary row operations to transform the matrix into a triangular one. Elementary operations include:[5]
- swapping two rows.
- multiplying a row by a number different from zero.
- multiplying one row and then adding to another row.
-
2Multiply the second row by a non-zero number. You want to produce zero in your second row, so multiply in a way that lets you do that.[6]
- For example, say you have a matrix that looks like this:
You can keep the first row and use it to produce zero in the second row. To do that, first multiply the second row by two, as follows:
- For example, say you have a matrix that looks like this:
-
3Multiply again. In order to get to zero for the first row, you may need to multiply again, using the same principle.[7]
- In the example above, multiply the second row by -1, as follows:
When you complete the multiplication, your new matrix looks like this:
- In the example above, multiply the second row by -1, as follows:
-
4Add the first row to the second row. Next, add the first and second rows to produce zero in the first column of the second row.
- In the example above, add the two rows together as follows:
-
5Write down the new linear system for the triangular matrix. At this point, you have a triangular matrix. You can use that matrix to get a new linear system. The first column corresponds to the unknown x, and the second column corresponds to the unknown y. The third column corresponds to the free member of an equation.[8]
- For the example above, your new system would therefore look like this:
-
6Solve for one of the variables. Using your new system, determine which variable can be determined easily, and solve for it.
- In the example above, you’ll want to “backsolve” – moving from the last equation to the first when solving for your unknowns. The second equation gives you an easy solution for y; since the x has been removed, you can see that y = 2.
-
7Substitute to solve for the second variable. Once you’ve determined one of the variables, you can substitute its value into the other equation to solve for the other variable.[9]
- In the example above, replace the y with a 2 in the first equation to solve for x as follows:
Advertisement
Community Q&A
-
QuestionHow do I calculate the determinant of a 2x3 matrix?OrangejewsCommunity AnswerDeterminants are defined for square matrices, and that definition doesn't apply to non-squares like 2x3. You can compute the rank of any matrix to see if its rows are linearly independent.
Advertisement
References
- ↑ https://www.mathsisfun.com/algebra/systems-linear-equations-matrices.html
- ↑ https://www.mathsisfun.com/algebra/systems-linear-equations-matrices.html
- ↑ https://www.mathsisfun.com/algebra/matrix-multiplying.html
- ↑ http://tutorial.math.lamar.edu/Classes/Alg/AugmentedMatrix.aspx
- ↑ https://www.khanacademy.org/math/algebra-home/alg-matrices/alg-elementary-matrix-row-operations/a/matrix-row-operations
- ↑ https://www.youtube.com/watch?v=l--THwUU73g
- ↑ https://www.youtube.com/watch?v=l--THwUU73g
- ↑ https://www.youtube.com/watch?v=l--THwUU73g
- ↑ https://openstax.org/books/intermediate-algebra-2e/pages/4-5-solve-systems-of-equations-using-matrices
About This Article
Advertisement