Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Lecture 10a system of linear equations
1. Two Equations Containing Two Variables
a x a y b
a x a y b
11 12 1
21 22 2
The first two cases are called consistent since there are
solutions. The last case is called inconsistent.
The solution will be one of three cases:
1. Exactly one solution, an ordered pair (x, y)
2. A dependent system with infinitely many solutions
3. No solution
2.
With two equations and two variables,
the graphs are lines and the solution (if
there is one) is where the lines
intersect. Let’s look at different
possibilities.
a x a y b
a x a y b
11 12 1
21 22 2
independent
Case 1: The lines
intersect at a point
(x, y),
the solution.
Case 2: The lines
coincide and there
are infinitely many
solutions (all points
on the line).
Case 3: The lines
are parallel so there
is no solution.
dependent
consistent consistent
inconsistent
3. If we have two equations and variables and we want to
solve them, graphing would not be very accurate so we will
solve algebraically for exact solutions. We'll look at two
methods. The first is solving by substitution.
The idea is to solve for one of the variables in one of the equations
and substitute it in for that variable in the other equation.
Let's solve for y in the second equation. You
can pick either variable and either equation, but
go for the easiest one (getting the y alone in the
second equation will not involve fractions).
x y
x y
2 3
1
4
3
4 5
y 4x 3 Substitute this for y in the first equation.
4 3
7 7
Easiest here since we already solved for y.
2x34x3 1 Now we only have the x variable and we
solve for it.
14x 8
4
7
x Substitute this for x in one of the equations to find y.
y
4. x y
x y
2 3
1
4
3
So our solution is
4 5
,
7 7
This means that the two lines intersect at
this point. Let's look at the graph.
x
y
4 5
,
7 7
We can check this by
subbing in these values
for x and y. They should
make each equation true.
4 5
2 3 1
7 7
4 5
4 3
7 7
8 15
1
7 7
16 5
3
7 7
Yes! Both equations are
satisfied.
5. Now let's look at the second method, called the method of
elimination.
The idea is to multiply one or both equations by a constant (or
constants) so that when you add the two equations together, one of
the variables is eliminated.
Let's multiply the bottom equation by 3. This
way we can eliminate y's. (we could instead
have multiplied the top equation by -2 and
eliminated the x's)
x y
x y
2 3
1
4
3
3 3
12x 3y 9 Add first equation to this.
The y's are eliminated.
2x 3y 1
14x 8
4
y
4 3
7
Substitute this for x in one of the equations to find y.
4
7
x
5
7
y
6. So we arrived at the same answer with either method, but
which method should you use?
It depends on the problem. If substitution would involve
messy fractions, it is generally easier to use the
elimination method. However, if one variable is already or
easily solved for, substitution is generally quicker.
With either method, we may end up with a surprise. Let's see
what this means.
x y
x y
3 6
15
2 5
Let's multiply the second equation by 3 and
3 3 add to the first equation to eliminate the x's.
x y
x y
3 6
15
3 6
15
0 0
Everything ended up eliminated. This tells us
the equations are dependent. This is Case 2
where the lines coincide and all points on the
line are solutions.
7. Let's solve the second equation for x. (Solving for x
in either equation will give the same result)
Now to get a solution, you chose any real
number for y and x depends on that choice.
x y
x y
3 6
15
2 5
x 2y 5
If y is 0, x is -5 so the
point (-5, 0) is a solution
to both equations.
If y is 2, x is -1 so the
point (-1, 2) is a solution
to both equations.
So we list the solution as:
Any point on
x
this line is a
solution
y
x 2y 5 where x is any real number
8. x y
x y
Let's try another one: 2 5
1
4 10 5
Let's multiply the
first equation by 2
and add to the
second to eliminate
the x's.
2 2
4x 10y 2
07
This time the y's were eliminated
too but the constants were not.
We get a false statement. This
tells us the system of equations
is inconsistent and there is not
an x and y that make both
equations true. This is Case 3,
no solution.
x
y
There are
no points of
intersection
9. Three Equations Containing Three Variables
a x a y a z
b
11 12 13 1
a x a y a z
b
21 22 23 2
a x a y a z
b
31 32 33 3
As before, the first two cases are called consistent since there are
solutions. The last case is called inconsistent.
The solution will be one of three cases:
1. Exactly one solution, an ordered triple (x, y, z)
2. A dependent system with infinitely many solutions
3. No solution
10. With two equations and two variables, the graphs were
lines and the solution (if there was one) was where the
lines intersected. Graphs of three variable equations are
planes. Let’s look at different possibilities. Remember the
solution would be where all three planes all intersect.
Planes intersect at a point: consistent with
one solution
11. Planes intersect in a line: consistent
system called dependent with an infinite
number of solutions
14. We will be doing elimination to solve these systems. It’s like
elimination that you learned with two equations and variables but it’s
now the problem is bigger.
x y z
2
4
x y z
3 2 2 10
x y z
2 3 7
coefficient is a 1 here so it will be easy to work with
Your first strategy would be to choose one equation to keep that has
all 3 variables, but then use that equation to “eliminate” a variable out
of the other two. I’m going to choose the last equation to “keep”
because it has just x.
15. z y x 732z y x
2
4
x y z
3 2 2 10
x y z
2 3 7
5y 5z 10
keep over here for later use
Now use the third equation multiplied through by whatever
it takes to eliminate the x term from the first equation and
add these two equations together.
In this case when added to eliminate the x’s you’d need a -2.
2x 2y 3z 7
2x 4y 6z 14
2x y z 4
5y 5z 10
put this equation up with the
other one we kept
16. z y x 732z y x
2
4
x y z
3 2 2 10
x y z
2 3 7
5y 5z 10
Now use the third equation multiplied through by whatever
it takes to eliminate the x term from the second equation
and add these two equations together.
In this case when added to eliminate the x’s you’d need a 3.
3x 2y 3z 7 3x 6y 9z 21
3x 2y 2z 10
4y 7z 11
We won’t “keep” this equation, but we’ll use it
together with the one we “kept” with y and z
in it to eliminate the y’s.
17. z y x 732z y x
2
4
x y z
3 2 2 10
x y z
2 3 7
keep over here for later use
1 z
So we’ll now eliminate y’s from the 2 equations in y and z
that we’ve obtained by multiplying the first by 4 and the
second by 5
5y 5z 10 20y 20z 40
4y 7z 11
5y 5z 10
20y 35z 55
We can add this to the one’s we’ve
kept up in the corner
15z 15
z 1
18. z y x 732z y x
2
4
x y z
3 2 2 10
x y z
2 3 7
keep ove5r hyere5 fozr later1 u0se
Now we are ready to take the equations in the corner and
“back substitute” using the equation at the bottom and
substituting it into the equation above to find y.
Now we know both y and z we can sub
them in the first equation and find x
5y 51 10
1 z
5y 5 y 1
x 21 31 7
x 5 7 x 2
These planes intersect at a point,
namely the point (2, -1, 1).
The equations then have this unique
solution. This is the ONLY x, y and z
that make all 3 equations true.
19. I’m going to “keep” this one since it
will be easy to use to eliminate x’s
from others.
Let’s do another one:
x y z
2
3 0 x y z
5 2
x y z
3
4 1 x 2y z 5
x y z
If we multiply the equation we kept
by 3 and add it to the last equation
we can eliminate x’s.
2 4 2 10
x y z
2 3
0
y z 10
y z 10
we’ll keep
this one
2 first equation
x y z
3 6 3 15
x y z
3 4
1
2y 2z 16
Now we’ll use the 2 equations we have with y and z to eliminate the y’s.
20. x y z x 2y z 5
2 3
0
x y z
2 5
x y z
3 4
1
y z 10
y z 10
2y 2z 16
This means the equations are
inconsistent and have no solution.
The planes don’t have a common
intersection and there is not any
(x, y, z) that make all 3 equations true.
we’ll multiply the first
equation by -2 and add these
together
2y 2z 20
2y 2z 16
0 4
Oops---we eliminated the y’s alright but the z’s ended
up being eliminated too and we got a false equation.
21. Let’s do another one:
x y z
2 1
x y z
2
2
x y z
4 5
4
x y 2z 1
3y 3z 0
let's “keep” this one since it will be
easy to use to eliminate x’s from
others.
x y z
If we multiply the equation we kept
by -2 and add it to the second
equation we can eliminate x’s.
If we multiply the equation we kept
by -4 and add it to the last equation
we can eliminate x’s.
2 2 4 2
x y z
2
2
we’ll keep 3y 3z 0
this one
x y z
4 4 8 4
x y z
4 5
4
3y 3z 0
Now we’ll use the 2 equations we have with y and z to eliminate the y’s.
22. x y 2z 1
x y 2 z
1
x y z
2
2
x y z
4 5
4
3y 3z 0
3y 3z 0
This means the equations are
consistent and have infinitely many
solutions. The planes intersect in a
line. To find points on the line we can
solve the 2 equations we saved for x
and y in terms of z.
multiply the first equation by -1
and add the equations to
eliminate y.
3y 3z 0
3y 3z 0
3y 3z 0
0 0
Oops---we eliminated the y’s alright but the z’s ended up
being eliminated too but this time we got a true equation.
23. x y 2 z
1
x y 2z 1
x y z
2
2
x y z
4 5
4
3y 3z 0
z z
First we just put z = z since it can be any real number.
Now solve for y in terms of z.
Now sub it -z for y in first equation and solve for x in
terms of z.
The solution is (1 - z, - z, z) where z is any real number.
For example: Let z be 1. Then (0, -1, 1) would be a solution.
Notice is works in all 3 equations.
3y 3z 0
y z
x z 2z 1
x 1 z
But so would the point you
get when z = 2 or 3 or any
other real number so there
are infinitely many
solutions.
24. x y z
x y z
x y z
5 2
2 4 2
2 4 2 8
25. x z w
y z
x y z
x y z w
x y z w
x y z w
x y z w
x y z w
2 6
Homework
2 3
1.)
2 2
2 3 2 0
0
2 2 0
2.)
2 2 3 4 1
2 3 4 5 2
26. Solve the system.
1. x+3y-z=-11
2x+y+z=1
z’s are easy to cancel!
3x+4y=-10
2. 2x+y+z=1
5x-2y+3z=21
Must cancel z’s again!
-6x-3y-3z=-3
5x-2y+3z=21
-x-5y=18
2(2)+(-4)+z=1
4-4+z=1
x+3y-z=-11
2x+y+z=1
5x-2y+3z=21
3. 3x+4y=-10
-x-5y=18
Solve for x & y.
3x+4y=-10
-3x-15y+54
-11y=44
y=- 4
3x+4(-4)=-10
x=2
(2, - 4, 1)
z=1
27. 2. 2x+2y+z=5
4x+4y+2z=6
Cancel z’s again.
-4x-4y-2z=-10
4x+4y+2z=6
0=- 4
Doesn’t make sense!
No solution
Solve the system.
1. -x+2y+z=3
2x+2y+z=5
z’s are easy to cancel!
-x+2y+z=3
-2x-2y-z=-5
-3x=-2
x=2/3
-x+2y+z=3
2x+2y+z=5
4x+4y+2z=6
28. 3. x+y=3
2x+2y=6
Cancel the x’s.
-2x-2y=-6
2x+2y=6
0=0
This is true.
¸ many solutions
Solve the system.
1. -2x+4y+z=1
3x-3y-z=2
z’s are easy to cancel!
x+y=3
2. 3x-3y-z=2
5x-y-z=8
Cancel z’s again.
-3x+3y+z=-2
5x-y-z=8
2x+2y=6
-2x+4y+z=1
3x-3y-z=2
5x-y-z=8