BSI-111 Linear Algebra: Dr. Abid Iqbal
BSI-111 Linear Algebra: Dr. Abid Iqbal
Lecture – 1
Topic:
System of Linear Equations
1
Equation
What is an equation?
2
Types of mathematical expressions
Arithmetic expressions
Expressions containing only numbers and operators.
Fractional expressions
Expressions containing numbers as fractions and operators.
Algebraic expressions
Expressions containing numbers and variables and operators.
3
Algebraic expression
4
Linear Equations
What is a linear equation?
A linear equation is one where the index (aka power or exponent)
of all variables (x, y, z etc.) is either 1 or 0.
3
5
Non-linear equations
6
System of linear equations
A set/collection of linear equations is called system of
linear equations.
Example:
System of linear
equations
7
System of linear equations
Question:
Let be the cost of an ice cream (Yummy, Hico etc.), and be the
cost of can of soft drink (Coke, Sprite etc.).
If Behzad buys 2 ice creams, and 2 cans of soft drinks and pays
300 Rupees, can you find out the cost of single ice cream and
cost of single can of soft drink (i.e. find and respectively)?
We can put the above scenario into a mathematical model
(equation) as following:
So, can you find the
values of and ?
8
System of linear equations
The answer is NO. We need more information to figure out the
values for and .
Now let’s say, Asim goes to the same shop and gets 2 ice creams and
1 soft drink for a total of 250 Rupees.
and
9
System of linear equations
In the previous slide, we solved the unknowns ( and )
using a system of equations.
We can plot the system of equations on a graph:
2D graph
10
System of linear equations
3D graph
11
System of linear equations
The study of linear equations is known ‘Linear Algebra’.
Linear Algebra is a systematic study of linear equations
and is related to new kind of arithmetic called ‘Arithmetic
of Matrices’.
Generally, when we talk about system of linear equations
(or simple linear systems) we mean:
A finite number of linear A system with
equations with finite 3 equations
number of unknowns (x, y, and 3
unknowns
z, w …. etc.)
12
System of linear equations
In general, a system of m linear equations with n
unknowns is written as:
𝑎 11 𝑥1 +𝑎 1 2 𝑥 2+ ⋯+𝑎 1 𝑛 𝑥 𝑛 =𝑏1
𝑎 21 𝑥1 +𝑎 22 𝑥 2+ ⋯+ 𝑎2 𝑛 𝑥𝑛 =𝑏 2
⋮⋮ ⋮ ⋮
𝑎 𝑚 1 𝑥 1+𝑎 𝑚 2 𝑥 2 +⋯ +𝑎 𝑚𝑛 𝑥 𝑛 =𝑏𝑛
13
Solution set for linear system
A solution of a system of linear equations is a list of
values for variables (x, y, z, . . . etc.) that make all of the
equations in the system true simultaneously.
14
Solving linear equations
Linear algebra involves using a variety of methods for
finding solutions to linear systems.
15
Method of elimination
16
Solving linear systems using
elimination method
Practice task 1:
Solve the following system of linear equations
(1)
(2)
Solution:
The above equations (1) and (2) are equations in two variables. We
need to simplify the equation, so that we end up with a linear
equation in one variable.
How do we do this? Method of elimination
17
Solving linear systems using
elimination method
- First multiply (1) by 2 and (2) by 9, we get:
(3)
(4)
18
Solving linear systems using
elimination method
Practice task 2:
Solve the following system of linear equations
(1)
(2)
(3)
Answer:
Through the method of elimination; = -1, = -2, and
19
Try solving the above system of linear equations on your own.
Types of solutions
The above system does not have any solution. Why is that so?
20
System with no solution
21
Consistent and Inconsistent systems
2 𝑥 +3 𝑦 =6 Parallel lines do
4 𝑥 +6 𝑦=9 no intersect.
Hence there is
no solution!
22
System with infinitely many
solutions
Consider the following linear system
(1)
(2)
Both equations
4 𝑥 +6 𝑦=12 produce the
2 𝑥 +3 𝑦 =6 exact same line!
23
System with infinite solutions
24
System with infinite solutions
26
Graphs of solutions to linear systems
27
Notation for writing solution
If a linear system has n number of unknowns (i.e. n
variables), then the solution for the system will be a list of
n numbers.
Example: The system given below has 3 unknowns (, , and )
(1)
(2)
(3)
29
That’s all for today’s lecture
30