Civil Engineering (CE) Exam  >  Civil Engineering (CE) Notes  >  Engineering Mathematics  >  System of Linear Equations

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE) PDF Download

Linear Equation

A Linear Equation is an equation for a line.

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

  • A linear equation is not always in the form y = 3.5 − 0.5x,
  • It can also be like y = 0.5(7 − x)
  • Or like y + 0.5x = 3.5
  • Or like y + 0.5x − 3.5 = 0 and more.

(Note: those are all the same linear equation!)

A System of Linear Equations is when we have two or more linear equations working together.
Example 1: 

It's a race!, You can run 0.2 km every minute. The Horse can run 0.5 km every minute. But it takes 6 minutes to saddle the horse.
How far can you get before the horse catches you?

We can make two equations (d=distance in km, t=time in minutes)
You run at 0.2km every minute, so d = 0.2t
The horse runs at 0.5 km per minute, but we take 6 off its time: d = 0.5(t−6)
So we have a system of equations (that are linear):
d = 0.2t
d = 0.5(t−6)
We can solve it on a graph:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)Do you see how the horse starts at 6 minutes, but then runs faster?

It seems you get caught after 10 minutes ... you only got 2 km away.

Example 2: Solve these two equations

  • x + y = 6
    −3x + y = 2

The two equations are shown on this graph
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)Our task is to find where the two lines cross. Well, we can see where they cross, so it is already solved graphically.
But now let's solve it using Algebra!

In this case both equations have "y" so let's try subtracting the whole second equation from the first:
x + y − (−3x + y) = 6 − 2
Now let us simplify it:
x + y + 3x − y = 6 − 2
4x = 4
x = 1
So now we know the lines cross at x=1.
And we can find the matching value of y using either of the two original equations (because we know they have the same value at x=1). Let's use the first one (you can try the second one yourself):

x + y = 6
1 + y = 6
y = 5
And the solution is:
x = 1 and y = 5
And the graph shows us we are right!

Linear Equations

Only simple variables are allowed in linear equations. No x2, y3, √x, etc:

Dimensions
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Common Variables
For the equations to "work together" they share one or more variables:

A System of Equations has two or more equations in one or more variables

Many Variables
So a System of Equations could have many equations and many variables.

Example
2x + y  2z = 3
x    y − z   = 0
x + y + 3z = 12

There can be any combination:

  • 2 equations in 3 variables,
  • 6 equations in 4 variables,
  • 9,000 equations in 567 variables, etc.

When the number of equations is the same as the number of variables there is likely to be a solution. Not guaranteed, but likely.
In fact there are only three possible cases:

  • No solution
  • One solution
  • Infinitely many solutions

When there is no solution the equations are called "inconsistent".

One or infinitely many solutions are called "consistent"

Here is a diagram for 2 equations in 2 variables:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Independent
"Independent" means that each equation gives new information.

Otherwise they are "Dependent".
Also called "Linear Independence" and "Linear Dependence"

  • x + y = 3
  • 2x + 2y = 6

Those equations are "Dependent", because they are really the same equation, just multiplied by 2.
So the second equation gave no new information.

Where the Equations are True

The trick is to find where all equations are true at the same time.
True? What does that mean?

Example: You versus Horse
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

The "you" line is true all along its length (but nowhere else).

Anywhere on that line d is equal to 0.2t

  • at t=5 and d=1, the equation is true (Is d = 0.2t? Yes, as 1 = 0.2x5 is true)
  • at t=5 and d=3, the equation is not true (Is d = 0.2t? No, as 3 = 0.2x5 is not true)

Likewise the "horse" line is also true all along its length (but nowhere else).

But only at the point where they cross (at t=10, d=2) are they both true.

Solve Using Algebra

It is common to use Algebra to solve them.
Here is the "Horse" example solved using Algebra:

Example: You versus Horse

The system of equations is:

  • d = 0.2t
  • d = 0.5(t−6)

In this case it seems easiest to set them equal to each other:

d = 0.2t = 0.5(t−6)

Start with:    0.2t = 0.5(t − 6)

Expand 0.5(t−6):    0.2t = 0.5t − 3

Subtract 0.5t from both sides:    −0.3t = −3

Divide both sides by −0.3:    t = −3/−0.3 = 10 minutes

Now we know when you get caught!

Knowing t we can calculate d:    d = 0.2t = 0.2×10 = 2 km

 And our solution is:

t = 10 minutes and d = 2 km

Algebra vs Graphs

Why use Algebra when graphs are so easy? Because:
More than 2 variables can't be solved by a simple graph.

So Algebra comes to the rescue with two popular methods:

  • Solving By Substitution
  • Solving By Elimination

We will see each one, with examples in 2 variables, and in 3 variables. Here goes ...

1. Solving By Substitution
These are the steps:

  • Write one of the equations so it is in the style "variable = ..."
  • Replace (i.e. substitute) that variable in the other equation(s).
  • Solve the other equation(s)
  • (Repeat as necessary)

Example:

  • 3x + 2y = 19
  • x + y = 8

We can start with any equation and any variable.
Let's use the second equation and the variable "y" (it looks the simplest equation).
Write one of the equations so it is in the style "variable = ...":
We can subtract x from both sides of x + y = 8 to get y = 8 − x. Now our equations look like this:

3x + 2y = 19

y = 8 − x
Now replace "y" with "8 − x" in the other equation:
3x + 2(8 − x) = 19
y = 8 − x
Solve using the usual algebra methods:
Expand 2(8−x):
3x + 16 − 2x = 19
y = 8 − x
Then 3x−2x = x:
x + 16 = 19
y = 8 − x
And lastly 19−16=3
x = 3
y = 8 − x
Now we know what x is, we can put it in the y = 8 − x equation:
x = 3
y = 8 − 3 = 5
And the answer is:
x = 3
y = 5
Note: because there is a solution the equations are "consistent"

Solving By Substitution: 3 equations in 3 variables

Example:

  • x + z = 6
  • z − 3y = 7
  • 2x + y + 3z = 15

We should line up the variables neatly, or we may lose track of what we are doing:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

We can start with any equation and any variable. Let's use the first equation and the variable "x".

Write one of the equations so it is in the style "variable = ...":
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Now replace "x" with "6 − z" in the other equations:
(Luckily there is only one other equation with x in it)

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Solve using the usual algebra methods:
2(6−z) + y + 3z = 15 simplifies to y + z = 3:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)
Good. We have made some progress, but not there yet.
Now repeat the process, but just for the last 2 equations.
Write one of the equations so it is in the style "variable = ...":
Let's choose the last equation and the variable z:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)
Now replace "z" with "3 − y" in the other equation:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Solve using the usual algebra methods:

−3y + (3−y) = 7 simplifies to −4y = 4, or in other words y = −1
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Almost Done!
Knowing that y = −1 we can calculate that z = 3−y = 4:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)
And knowing that z = 4 we can calculate that x = 6−z = 2:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)
And the answer is:
x = 2
y = −1
z = 4

2. Solving By Elimination
Elimination can be faster ... but needs to be kept neat.
"Eliminate" means to remove: this method works by removing variables until there is just one left.

The idea is that we can safely:

  • multiply an equation by a constant (except zero),
  • add (or subtract) an equation on to another equation

Like in these examples:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

We can also swap equations around, so the 1st could become the 2nd, etc, if that helps.

OK, time for a full example. Let's use the 2 equations in 2 variables example from before:

Example 1:

  • 3x + 2y = 19
  • x + y = 8

Very important to keep things neat:
3x  +  2y  =  19
x  +  y    =    8
Now ... our aim is to eliminate a variable from an equation.
First we see there is a "2y" and a "y", so let's work on that.
Multiply the second equation by 2:
3x    +    2y    =    19               
2x    +    2y    =    16
Subtract the second equation from the first equation:
x   =    3               

2x  +  2y    =    16
Yay! Now we know what x is!
Next we see the 2nd equation has "2x", so let's halve it, and then subtract "x":
Multiply the second equation by ½ (i.e. divide by 2):
x  =  3               

x  +  y   =  8
Subtract the first equation from the second equation:
x   =    3
y    =    5               
Done!
And the answer is:
x = 3 and y = 5

And here is the graph:

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

The blue line is where 3x + 2y = 19 is true
The red line is where x + y = 8 is true
At x=3, y=5 (where the lines cross) they are both true. That is the answer.

Example 2:

  • 2x − y = 4
  • 6x − 3y = 3

Lay it out neatly:
2x     y  =  4               
6x    3y  =  3               
Multiply the first equation by 3:
6x    3y  = 12               

6x  -  3y = 3               
Subtract the second equation from the first equation:

0  0 = 9               

6x  3y = 3               
0 − 0 = 9 ???

Quite simply, there is no solution.
They are actually parallel lines: 
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Example 3:

  • 2x − y = 4
  • 6x − 3y = 12

Neatly:
2x    y  =  4               
6x    3y  =  12               
Multiply the first equation by 3:

6x    3y  =  12               

6x  -  3y  =  12
Subtract the second equation from the first equation:

0    0  =  0 
6x    3y  =  3
0 − 0 = 0
Well, that is actually TRUE! Zero does equal zero ...
... that is because they are really the same equation ...
... so there are an Infinite Number of Solutions

They are the same line:    
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

And so now we have seen an example of each of the three possible cases:

  • No solution
  • One solution
  • Infinitely many solutions

Solving By Elimination: 3 equations in 3 variables
Before we start on the next example, let's look at an improved way to do things.
First of all, eliminate the variables in order:

  • Eliminate xs first (from equation 2 and 3, in order)
  • then eliminate y (from equation 3)

So this is how we eliminate them:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

We then have this "triangle shape":
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

Now start at the bottom and work back up (called "Back-Substitution")

(put in z to find y, then z and y to find x):
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

And we are solved:
System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

The document System of Linear Equations | Engineering Mathematics - Civil Engineering (CE) is a part of the Civil Engineering (CE) Course Engineering Mathematics.
All you need of Civil Engineering (CE) at this link: Civil Engineering (CE)
65 videos|120 docs|94 tests

Top Courses for Civil Engineering (CE)

FAQs on System of Linear Equations - Engineering Mathematics - Civil Engineering (CE)

1. What is a linear equation?
A linear equation is an equation that represents a straight line when graphed on a coordinate plane. It is an algebraic equation in which the variables are raised to the power of 1 and do not have any exponents or radicals.
2. How do you solve a system of linear equations?
To solve a system of linear equations, you can use methods like substitution, elimination, or matrix algebra. Substitution involves solving one equation for one variable and substituting it into the other equation. Elimination involves adding or subtracting the equations to eliminate one variable. Matrix algebra uses matrices to represent the equations and solve for the variables.
3. Can a system of linear equations have more than one solution?
Yes, a system of linear equations can have more than one solution. This occurs when the equations represent parallel lines or coincide with each other. In such cases, the system is called dependent, and all points on the lines are solutions to the system.
4. What does it mean if a system of linear equations has no solution?
If a system of linear equations has no solution, it means that the equations represent parallel lines that never intersect. This occurs when the slopes of the lines are equal but the y-intercepts are different. In such cases, the system is called inconsistent.
5. How are systems of linear equations used in real-life applications?
Systems of linear equations are used in various real-life applications, such as determining the cost and revenue of a business, optimizing production levels, analyzing population growth, and solving problems related to physics and engineering. They provide a mathematical approach to model and solve real-world scenarios involving multiple variables and constraints.
65 videos|120 docs|94 tests
Download as PDF
Explore Courses for Civil Engineering (CE) exam

Top Courses for Civil Engineering (CE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Objective type Questions

,

practice quizzes

,

mock tests for examination

,

Previous Year Questions with Solutions

,

Sample Paper

,

Free

,

Viva Questions

,

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

,

study material

,

Exam

,

video lectures

,

Semester Notes

,

MCQs

,

Summary

,

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

,

pdf

,

Extra Questions

,

System of Linear Equations | Engineering Mathematics - Civil Engineering (CE)

,

past year papers

,

Important questions

,

shortcuts and tricks

,

ppt

;