There are two basic ways to solve n equations with n unknowns: substitution and elimination. Each of them can have variations. For example, matrix methods are extensions of the elimination method. In this section, we will explore substitution.
Let the variables be x, y, and z. The equations are eq.1, eq.2, and eq.3. The substitution method has these basic steps:
Now I will apply these steps to an example, and I will label them so you can understand what I'm doing at each step.
Step 1: Solve eq.1 for z.
Step 2: Substitute z in eq.2
Step 3: Solve the equation you wrote in step 2 for y.
Step 4: Substitute z, then substitute y in eq.3.
Step 5: Solve the equation you wrote in step 4 to get the value of x.
Step 6: Use this value of x in the equation you wrote in step 3 to solve for y.
Step 7: Use these values of x and y in the equation you wrote in step 1 to solve for z.
Now you should check your answers in the original equations.
You should be able to see how this generalizes to n equations in n unknowns. You would solve the first equation for the first unknown, then substitute this in the second equation, and solve for the second unknown. Then substitute both variables in the third equation, and solve for the third unknown. Then substitute all three variables in the fourth equation, and solve for the fourth unknown, etc. When you get to the last equation, and solve it for the last unknown, you should be down to a numeric answer. Then work backwards through the odd-numbered steps, getting numeric answers for each variable in turn.
The webmaster and author of this Math Help site is Graeme McRae.