Stat Trek Teach yourself statistics      Contact Us   |   Tell a Friend   |   Newsletter
 
   
   

Simultaneous Linear Equations

This lesson explains how to use matrix methods to represent simultaneous linear equations compactly and to solve equations efficiently.

How to Represent Simultaneous Linear Equations In Matrix Form

Suppose you have n linear equations with n unknowns. Using ordinary algebra, those equations might be expressed as:

A11x1 + A12x2 + A13x3 + . . . + A1nxn = y1
A21x1 + A22x2 + A23x3 + . . . + A2nxn = y2
A31x1 + A32x2 + A33x3 + . . . + A3nxn = y3
. . .
An1x1 + An2x2 + An3x3 + . . . + Annxn = yn

where

xj is an unknown value
Aij is the known coefficient of xj in equation i
yj is a known quantity in equation j

This set of equations can be expressed compactly in matrix form as follows:

Ax = y

where

x is an n x 1 column vector of unknown values x1, x2, . . . , xn
A is an n x n matrix of the known coefficients Aij
y is an n x 1 column vector of known values y1, y2, . . . , yn

How to Solve Simultaneous Linear Equations Using Matrix Methods

Here is how to solve a system of n linear equations in n unknowns, using matrix methods.

  • Express the set of n linear equations compactly in matrix form.

    Ax = y

  • Premultiply both sides of the equation by A-1, the inverse of A.

    A-1Ax = A-1y

  • Since A-1Ax = Ix = x, we know the following.

    x = A-1y

Thus, as long as the inverse A-1 exists, we can solve for x, the vector of unknown values. If the inverse does not exist, the set of equations does not have a unique solution.

Solving Simultaneous Linear Equations: An Example

To illustrate how to solve simultaneous linear equations using matrix methods, consider the following set of equations.

  x1 + 2x2 + 2x3 = 1
2x1 + 2x2 + 2x3 = 2
  2x1 + 2x2 + x3 = 3

We want to solve for the unknown quantities: x1, x2, and x3.

  • Our first step is to express these equations in matrix form as Ax = y.
1 2 2
2 2 2
2 2 1
 
x1
x2
x3
   =   
1
2
3
A x y
  • Next, we premultiply both sides of the equation by A-1, the inverse of matrix A. Previously, we showed how to find the inverse of matrix A.
-1 1 0
1 -1.5 1
0 1 -1
 
1 2 2
2 2 2
2 2 1
 
x1
x2
x3
   =   
-1 1 0
1 -1.5 1
0 1 -1
 
1
2
3
A-1 A x A-1 y
  • And finally, since A-1Ax = Ix = x, we know the following.
x1
x2
x3
   =   
-1 1 0
1 -1.5 1
0 1 -1
 
1
2
3
   =   
1
1
-1
x A-1 y

Thus, we have solved for the unknown quantities: x1 = 1, x2 = 1, and x3 = -1.

Test Your Understanding of This Lesson

Problem 1

Consider the following set of simultaneous linear equations.

  3x1 + x2 = 3
9x1 + 4x2 = 6

Using matrix methods, solve for the unknown quantities: x1and x2.

Solution

Our solution involves a three-step process.

  • The first step is to express these equations in matrix form as Ax = y.
3 1
9 4
 
x1
x2
   =   
3
6
A x y
  • Next, we premultiply both sides of the equation by A-1, the inverse of matrix A. We showed how to find the inverse of matrix A in a previous lesson.
4/3 -1/3
-3 1
 
3 1
9 4
 
x1
x2
   =   
4/3 -1/3
-3 1
 
3
6
A-1 A x A-1 y
  • And finally, since A-1Ax = Ix = x, we know the following.
x1
x2
   =   
4/3 -1/3
-3 1
 
3
6
   =   
2
-3
x A-1 y

Thus, we have solved for the unknown quantities: x1 = 2 and x2 = -3.


    

Statistical Analysis with Excel For Dummies
Joseph Schmuller
List Price: $24.99
Buy Used: $3.02
Buy New: $11.99

Forgotten Statistics: A Refresher Course with Applications to Economics and Business
Douglas Downing Ph.D., Jeff Clark Ph.D.
List Price: $16.99
Buy Used: $3.27
Buy New: $5.50

Texas Instruments Voyage 200 Calculator
List Price: $279.00
Buy Used: $124.94
Buy New: $182.99




Barron's AP Statistics with CD-ROM (Barron's AP Statistics (W/CD))
Martin Sternstein Ph.D.
List Price: $29.99
Buy Used: $14.00
Buy New: $61.21

Survey Sampling (Wiley Classics Library)
Leslie Kish
List Price: $128.00
Buy Used: $75.98
Buy New: $85.16

Advanced Excel for Scientific Data Analysis
Robert De Levie
List Price: $59.50
Buy Used: $52.00
Buy New: $59.50


Site Information

About Us       Site Map       Privacy Policy       Terms of Use       Resources       Advertising   
The contents of this webpage are copyright © 2012 StatTrek.com. All Rights Reserved.