OneStopGate.Com
OnestopGate   OnestopGate
   Tuesday, November 19, 2024 Login  
OnestopGate
Home | Overview | Syllabus | Tutorials | FAQs | Downloads | Recommended Websites | Advertise | Payments | Contact Us | Forum
OneStopGate

GATE Resources
Gate Articles
Gate Books
Gate Colleges 
Gate Downloads 
Gate Faqs
Gate Jobs
Gate News 
Gate Sample Papers
Training Institutes

GATE Overview
Overview
GATE Eligibility
Structure Of GATE
GATE Coaching Centers
Colleges Providing M.Tech/M.E.
GATE Score
GATE Results
PG with Scholarships
Article On GATE
Admission Process For M.Tech/ MCP-PhD
GATE Topper 2012-13
GATE Forum




GATE 2025 Exclusive
Organizing Institute
Important Dates
How to Apply
Discipline Codes
GATE 2025 Exam Structure

GATE 2025 Syllabus
Aerospace Engg..
Agricultural Engg..
Architecture and Planning
Chemical Engg..
Chemistry
Civil Engg..
Computer Science / IT
Electronics & Communication Engg..
Electrical Engg..
Engineering Sciences
Geology and Geophysics
Instrumentation Engineering
Life Sciences
Mathematics
Mechanical Engg..
Metallurgical Engg..
Mining Engg..
Physics
Production & Industrial Engg..
Pharmaceutical Sciences
Textile Engineering and Fibre Science

GATE Study Material
Aerospace Engg..
Agricultural Engg..
Chemical Engg..
Chemistry
Civil Engg..
Computer Science / IT
Electronics & Communication Engg..
Electrical Engg..
Engineering Sciences
Instrumentation Engg..
Life Sciences
Mathematics
Mechanical Engg..
Physics
Pharmaceutical Sciences
Textile Engineering  and Fibre Science

GATE Preparation
GATE Pattern
GATE Tips N Tricks
Compare Evaluation
Sample Papers 
Gate Downloads 
Experts View

CEED 2013
CEED Exams
Eligibility
Application Forms
Important Dates
Contact Address
Examination Centres
CEED Sample Papers

Discuss GATE
GATE Forum
Exam Cities
Contact Details
Bank Details

Miscellaneous
Advertisment
Contact Us


Home » GATE Study Material » Mathematics » Linear Algebra » Systems of Linear Equations: Gaussian Elimination

Systems of Linear Equations: Gaussian Elimination

Looking for GATE Preparation Material? Join & Get here now!

** Gate 2013 Question Papers.. ** CEED 2013 Results.. ** Gate 2013 Question Papers With Solutions.. ** GATE 2013 CUT-OFFs.. ** GATE 2013 Results.. **

Systems of Linear Equations: Gaussian Elimination

Systems of Linear Equations: Gaussian Elimination

It is quite hard to solve non-linear systems of equations, while linear systems are quite easy to study. There are numerical techniques which help to approximate nonlinear systems with linear ones in the hope that the solutions of the linear systems are close enough to the solutions of the nonlinear systems. We will not discuss this here. Instead, we will focus our attention on linear systems.

For the sake of simplicity, we will restrict ourselves to three, at most four, unknowns. The reader interested in the case of more unknowns may easily extend the following ideas.

Definition. The equation

a x + b y + c z + d w = h

where a, b, c, d, and h are known numbers, while x, y, z, and w are unknown numbers, is called a linear equation. If h =0, the linear equation is said to be homogeneous. A linear system is a set of linear equations and a homogeneous linear system is a set of homogeneous linear equations.

For example,

\begin{displaymath}\left\{ \begin{array}{lll}
2x - 3y &=& 1\\
x+3y &=& -2\\
\end{array} \right.\end{displaymath}

and

\begin{displaymath}\left\{ \begin{array}{lll}
x+y-z &=& 1\\
x+3y + 3 z&=& -2\\
\end{array} \right.\end{displaymath}

are linear systems, while

\begin{displaymath}\left\{ \begin{array}{lll}
2x - 3y^2 &=& -1\\
x+y + z &=& 1\\
\end{array} \right.\end{displaymath}

is a nonlinear system (because of y2). The system

\begin{displaymath}\left\{ \begin{array}{lllllllll}
2x& - &3y& -&3 z &+ &w &=&0\\
x&+&3y&&&& &=& 0\\
x &-& y& +&&& w &=&0\\
\end{array} \right.\end{displaymath}

is an homogeneous linear system.

Matrix Representation of a Linear System

Matrices are helpful in rewriting a linear system in a very simple form. The algebraic properties of matrices may then be used to solve systems. First, consider the linear system

\begin{displaymath}\left\{ \begin{array}{lllllll}
ax + by + cz + dw &=& e\\
fx ...
... + nw &=& p\\
qx + ry + sz + tw &=& u\\
\end{array} \right. .\end{displaymath}

Set the matrices

\begin{displaymath}A = \left( \begin{array}{lllllll}
a& b& c& d\\
f& g& h&i\\
...
...\begin{array}{lllllll}
x\\
y\\
z\\
w\\
\end{array} \right).\end{displaymath}

Using matrix multiplications, we can rewrite the linear system above as the matrix equation

\begin{displaymath}A\cdot X=C.\end{displaymath}

As you can see this is far nicer than the equations. But sometimes it is worth to solve the system directly without going through the matrix form. The matrix A is called the matrix coefficient of the linear system. The matrix C is called the nonhomogeneous term. When $C = {\cal O}$, the linear system is homogeneous. The matrix X is the unknown matrix. Its entries are the unknowns of the linear system. The augmented matrix associated with the system is the matrix [A|C], where

\begin{displaymath}[A\vert C]= = \left( \begin{array}{llll \vert l}
a& b& c& d&e...
...& g& h&i&f\\
k& l& m&n&p\\
q&r&s& t&u\\
\end{array} \right).\end{displaymath}

In general if the linear system has n equations with m unknowns, then the matrix coefficient will be a nxm matrix and the augmented matrix an nx(m+1) matrix. Now we turn our attention to the solutions of a system.

Definition. Two linear systems with n unknowns are said to be equivalent if and only if they have the same set of solutions.

This definition is important since the idea behind solving a system is to find an equivalent system which is easy to solve. You may wonder how we will come up with such system? Easy, we do that through elementary operations. Indeed, it is clear that if we interchange two equations, the new system is still equivalent to the old one. If we multiply an equation with a nonzero number, we obtain a new system still equivalent to old one. And finally replacing one equation with the sum of two equations, we again obtain an equivalent system. These operations are called elementary operations on systems. Let us see how it works in a particular case.

Example. Consider the linear system

\begin{displaymath}\left\{ \begin{array}{lll}
x+y+z&=& 0\\
x-2y + 2z&=& 4\\
x+2y -z&=& 2\\
\end{array} \right.\end{displaymath}

The idea is to keep the first equation and work on the last two. In doing that, we will try to kill one of the unknowns and solve for the other two. For example, if we keep the first and second equation, and subtract the first one from the last one, we get the equivalent system

\begin{displaymath}\left\{ \begin{array}{ccccccc}
x+&y+z&=& 0\\
x-&2y + 2z&=& 4\\
&y -2z&=& 2\\
\end{array} \right.\end{displaymath}

Next we keep the first and the last equation, and we subtract the first from the second. We get the equivalent system

\begin{displaymath}\left\{ \begin{array}{ccccccc}
x+&y+z&=& 0\\
-&3y + z&=& 4\\
&y -2z&=& 2\\
\end{array} \right.\end{displaymath}

Now we focus on the second and the third equation. We repeat the same procedure. Try to kill one of the two unknowns (y or z). Indeed, we keep the first and second equation, and we add the second to the third after multiplying it by 3. We get

\begin{displaymath}\left\{ \begin{array}{ccccccc}
x+&y+&z&=& 0\\
-&3y + &z&=& 4\\
&-&5z&=& 10\\
\end{array} \right.\end{displaymath}

This obviously implies z = -2. From the second equation, we get y = -2, and finally from the first equation we get x = 4. Therefore the linear system has one solution

\begin{displaymath}x=4,\; y = -2,\; z = -2.\end{displaymath}

Going from the last equation to the first while solving for the unknowns is called backsolving.

Keep in mind that linear systems for which the matrix coefficient is upper-triangular are easy to solve. This is particularly true, if the matrix is in echelon form. So the trick is to perform elementary operations to transform the initial linear system into another one for which the coefficient matrix is in echelon form.
Using our knowledge about matrices, is there anyway we can rewrite what we did above in matrix form which will make our notation (or representation) easier? Indeed, consider the augmented matrix

\begin{displaymath}\left( \begin{array}{rrr\vert r}
1&1&1& 0\\
1&-2&2& 4\\
1&2&-1& 2\\
\end{array} \right).\end{displaymath}

Let us perform some elementary row operations on this matrix. Indeed, if we keep the first and second row, and subtract the first one from the last one we get

\begin{displaymath}\left( \begin{array}{rrr\vert r}
1&1&1& 0\\
1&-2&2& 4\\
0&1&-2& 2\\
\end{array} \right).\end{displaymath}

Next we keep the first and the last rows, and we subtract the first from the second. We get

\begin{displaymath}\left( \begin{array}{rrr\vert r}
1&1&1& 0\\
0&-3&1& 4\\
0&1&-2& 2\\
\end{array} \right).\end{displaymath}

Then we keep the first and second row, and we add the second to the third after multiplying it by 3 to get

\begin{displaymath}\left( \begin{array}{rrr\vert r}
1&1&1& 0\\
0&-3&1& 4\\
0&0&-5& 10\\
\end{array} \right).\end{displaymath}

This is a triangular matrix which is not in echelon form. The linear system for which this matrix is an augmented one is

\begin{displaymath}\left\{ \begin{array}{ccccccc}
x+&y+&z&=& 0\\
-&3y + &z&=& 4\\
&-&5z&=& 10\\
\end{array} \right.\end{displaymath}

As you can see we obtained the same system as before. In fact, we followed the same elementary operations performed above. In every step the new matrix was exactly the augmented matrix associated to the new system. This shows that instead of writing the systems over and over again, it is easy to play around with the elementary row operations and once we obtain a triangular matrix, write the associated linear system and then solve it. This is known as Gaussian Elimination. Let us summarize the procedure:

Gaussian Elimination. Consider a linear system.

1.
Construct the augmented matrix for the system;
2.
Use elementary row operations to transform the augmented matrix into a triangular one;
3.
Write down the new linear system for which the triangular matrix is the associated augmented matrix;
4.
Solve the new system. You may need to assign some parametric values to some unknowns, and then apply the method of back substitution to solve the new system.

Example. Solve the following system via Gaussian elimination

\begin{displaymath}\left\{ \begin{array}{ccccccc}
2x-&3 y-z + &2w& + 3 v&=&4\\
...
...+ &2w& - v &=&9\\
&2y + z &&+ 4 v &=&-5\\
\end{array} \right.\end{displaymath}

The augmented matrix is

\begin{displaymath}\left( \begin{array}{rrrrr\vert r}
2&-3&-1& 2&3&4\\
4&-4&-1&...
...1&4\\
2&-5&-2& 2&-1&9\\
0&2&1& 0&4&-5\\
\end{array} \right).\end{displaymath}

We use elementary row operations to transform this matrix into a triangular one. We keep the first row and use it to produce all zeros elsewhere in the first column. We have

\begin{displaymath}\left( \begin{array}{rrrrr\vert r}
2&-3&-1& 2&3&4\\
0&2&1& 0&5&-4\\
0&-2&-1& 0&-4&5\\
0&2&1& 0&4&-5\\
\end{array} \right).\end{displaymath}

Next we keep the first and second row and try to have zeros in the second column. We get

\begin{displaymath}\left( \begin{array}{rrrrr\vert r}
2&-3&-1& 2&3&4\\
0&2&1& 0&5&-4\\
0&0&0& 0&1&1\\
0&0&0& 0&-1&-1\\
\end{array} \right).\end{displaymath}

Next we keep the first three rows. We add the last one to the third to get

\begin{displaymath}\left( \begin{array}{rrrrr\vert r}
2&-3&-1& 2&3&4\\
0&2&1& 0&5&-4\\
0&0&0& 0&1&1\\
0&0&0& 0&0&0\\
\end{array} \right).\end{displaymath}

This is a triangular matrix. Its associated system is

\begin{displaymath}\left\{ \begin{array}{cccccccccc}
2x-&3 y&-&z &+ &2w& + &3 v&=&4\\
&2y&+&z &&&+&5 v&=&-4\\
&&&&&&&v&=&1
\end{array} \right.\end{displaymath}

Clearly we have v = 1. Set z=s and w=t, then we have

\begin{displaymath}y = -2 -\frac{1}{2} z - \frac{5}{2} v = -\frac{9}{2} - \frac{1}{2} s.\end{displaymath}

The first equation implies

x = 2 + $\displaystyle {\frac{{3}}{{2}}}$y + $\displaystyle {\frac{{1}}{{2}}}$z - w - $\displaystyle {\frac{{3}}{{2}}}$v.

Using algebraic manipulations, we get

x = - $\displaystyle {\frac{{25}}{{4}}}$ - $\displaystyle {\frac{{1}}{{4}}}$s - t.


Putting all the stuff together, we have

\begin{displaymath}\left( \begin{array}{rrrrrrr}
\phantom{\frac{1}{1}}x\phantom{...
...{2} - \frac{1}{2} s\\
\\
s\\
t\\
1\\
\end{array} \right) .\end{displaymath}

Example. Use Gaussian elimination to solve the linear system

\begin{displaymath}\left\{ \begin{array}{cccccc}
x - y &=&4\\
2x - 2y&=&-4\\
\end{array} \right.\end{displaymath}

The associated augmented matrix is

\begin{displaymath}\left( \begin{array}{rr\vert r}
1&-1&4\\
2&-2&-4\\
\end{array} \right).\end{displaymath}

We keep the first row and subtract the first row multiplied by 2 from the second row. We get

\begin{displaymath}\left( \begin{array}{rr\vert r}
1&-1&4\\
0&0&-12\\
\end{array} \right).\end{displaymath}

This is a triangular matrix. The associated system is

\begin{displaymath}\left\{ \begin{array}{cccccc}
x &- &y &=&4\\
&&0&=&-12\\
\end{array} \right.\end{displaymath}

Clearly the second equation implies that this system has no solution. Therefore this linear system has no solution.

Definition. A linear system is called inconsistent or overdetermined if it does not have a solution. In other words, the set of solutions is empty. Otherwise the linear system is called consistent.

Following the example above, we see that if we perform elementary row operations on the augmented matrix of the system and get a matrix with one of its rows equal to $(0,0,\cdots,0,c)$, where $c \neq 0$, then the system is inconsistent.



Discussion Center

Discuss/
Query

Papers/
Syllabus

Feedback/
Suggestion

Yahoo
Groups

Sirfdosti
Groups

Contact
Us

MEMBERS LOGIN
  
Email ID:
Password:

  Forgot Password?
 New User? Register!

INTERVIEW EBOOK
Get 9,000+ Interview Questions & Answers in an eBook. Interview Question & Answer Guide
  • 9,000+ Interview Questions
  • All Questions Answered
  • 5 FREE Bonuses
  • Free Upgrades
GATE RESOURCES
 
  • Gate Books
  • Training Institutes
  • Gate FAQs
  • GATE BOOKS
     
  • Mechanical Engineeering Books
  • Robotics Automations Engineering Books
  • Civil Engineering Books
  • Chemical Engineering Books
  • Environmental Engineering Books
  • Electrical Engineering Books
  • Electronics Engineering Books
  • Information Technology Books
  • Software Engineering Books
  • GATE Preparation Books
  • Exciting Offers



    GATE Exam, Gate 2009, Gate Papers, Gate Preparation & Related Pages


    GATE Overview | GATE Eligibility | Structure Of GATE | GATE Training Institutes | Colleges Providing M.Tech/M.E. | GATE Score | GATE Results | PG with Scholarships | Article On GATE | GATE Forum | GATE 2009 Exclusive | GATE 2009 Syllabus | GATE Organizing Institute | Important Dates for GATE Exam | How to Apply for GATE | Discipline / Branch Codes | GATE Syllabus for Aerospace Engineering | GATE Syllabus for Agricultural Engineering | GATE Syllabus for Architecture and Planning | GATE Syllabus for Chemical Engineering | GATE Syllabus for Chemistry | GATE Syllabus for Civil Engineering | GATE Syllabus for Computer Science / IT | GATE Syllabus for Electronics and Communication Engineering | GATE Syllabus for Engineering Sciences | GATE Syllabus for Geology and Geophysics | GATE Syllabus for Instrumentation Engineering | GATE Syllabus for Life Sciences | GATE Syllabus for Mathematics | GATE Syllabus for Mechanical Engineering | GATE Syllabus for Metallurgical Engineering | GATE Syllabus for Mining Engineering | GATE Syllabus for Physics | GATE Syllabus for Production and Industrial Engineering | GATE Syllabus for Pharmaceutical Sciences | GATE Syllabus for Textile Engineering and Fibre Science | GATE Preparation | GATE Pattern | GATE Tips & Tricks | GATE Compare Evaluation | GATE Sample Papers | GATE Downloads | Experts View on GATE | CEED 2009 | CEED 2009 Exam | Eligibility for CEED Exam | Application forms of CEED Exam | Important Dates of CEED Exam | Contact Address for CEED Exam | CEED Examination Centres | CEED Sample Papers | Discuss GATE | GATE Forum of OneStopGATE.com | GATE Exam Cities | Contact Details for GATE | Bank Details for GATE | GATE Miscellaneous Info | GATE FAQs | Advertisement on GATE | Contact Us on OneStopGATE |
    Copyright © 2024. One Stop Gate.com. All rights reserved Testimonials |Link To Us |Sitemap |Privacy Policy | Terms and Conditions|About Us
    Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Interview Questions | India Job Forum | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Free Classifieds | Jobs Assist | Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Web Hosting | Quick Site Kit | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Software Testing Interview Questions | Free Online Exams | The Galz | Top Masala | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World
    C Interview Questions | C++ Interview Questions | Send Free SMS | Placement Papers | SMS Jokes | Cool Forwards | Romantic Shayari