In order to solve a linear system using graphs, you must first of all be comfortable with graphing straight lines.
Review of linear graphs
Straight lines are very easy to graph. You just need to know the slope of the line and its -intercept. Alternatively, you can also graph a straight line if you know both the
and
intercepts (actually, any two points will do, but using the intercepts makes it more convenient).
ExaMple 1
Sketch the graph of the line .
Let’s use the intercept method to sketch this graph. To find the -intercept, set
and obtain
; to find the
-intercept, set
and solve for
:
Next, we join the -intercept and the
-intercept with a straight line to obtain the graph of
(red line below):
example 2
Sketch the graph of .
Again, let’s use the intercept method to sketch this graph.
-intercept is obtained by putting
and solving for
:
-intercept is obtained by putting
and solving for
:
We now join the and
intercepts to obtain the graph below (blue line):
Example 3
Sketch the graph of .
Let’s use the slope and the -intercept this time around. To do so, we first isolate the variable
as follows:
The equation is now in the form
, so its slope is
and its
-intercept is
.
- Mark the point where
on the
-axis;
- From that point (where
), move three units up (which means that you’ll now be at
, since
);
- Now move two units to the right (because the slope is
, we have to rise
units and run two units to the right. Remember that rise over run thing?)
- If you did this correctly, the starting coordinate was
and you should end up at the point
. Connect these two points together to obtain the graph shown below (green line):
Linear systems via graphs
With the hope that the above examples on linear graphs suffice, we now move on to solving linear system problems using graphs.
example 4
Use graphs to solve the linear system
(1)
(2)
We first graph the two lines and notice where they intersect:
Example 5
Use graphical method to solve the linear system
(3)
(4)
Again, we graph the two lines and notice where they intersect:
The example above reveals one major limitation of the graphical method, which has to do with determining the point of intersection when such a point does not have integer coordinates. Our example was chosen so that we can easily read the coordinates of the point of intersection. How about when such coordinates are unfamiliar fractions? Like ? Because of this, we do not recommend using the graphical method when the intersection point cannot be easily read from the graph, unless a question specifies so.
Example 6
Determine the point of intersection of the lines
(5)
(6)
by sketching their graphs.
It appears that an inconsistent system is better understood when visualized by graphs. This is one power of the graphical method.
Example 7
(7)
(8)
As always, we first graph the two lines:
Oops . Only one line is visible — despite the fact that our program graphed two lines (beginning with the one with the red legend and then the one with the green legend). It happened in this case that equations (7) and (8) represent the same line; as such, they are said to be coincident. The number of solutions in this case is infinite.
Example 8
A barnyard has pigs and chickens. Altogether there are legs and
eyes. Determine the number of each animal.
Let’s follow the strategy for solving word problems involving linear systems to address this question. Our first step is to introduce variables. So, suppose that the number of pigs is and that the number of chickens is
.
- A pig has four legs, while a chicken has two legs.
- A pig has two eyes, just as a chicken has two eyes.
- Since there are
pigs and each has four legs, the number of legs from the pigs is
.
- Since there are
chickens and each has two legs, the number of legs contributed by the chickens is
.
- Since the total number of legs is
, it means that
.
- Since the total number of eyes is
, it means that
.
The above analysis is probably unnecessary. The whole point is that the question (and the variables we chose) lead to the linear system:
(9)
(10)
Because of the relatively big numbers involved, graphing is not recommended for this question. Nevertheless, we’ll go ahead and use graphs being that we’re discussing graphical method.
From the graph, the point of intersection is , which corresponds to
pigs and
chickens.
Example 9
A store sells four ballpoint pens and five pencils for , while five ballpoint pens and four pencils are sold for
. Find how much a ballpoint pen costs and how much a pencil costs.
We’ve ignored the currency unit. Let the cost of a ballpoint pen be . Let the cost of a pencil be
. We have the linear system:
(11)
(12)
And then the graphs:
From the graph, the point of intersection is . So, a ballpoint pen costs
, while a pencil costs
.
Example 10
Find two numbers whose sum is and whose difference is
.
Let the two numbers be and
. Without loss of generality, suppose that
is the smaller number. Then:
(13)
(14)
The graphs are shown below:
From the graph, we see that and
. So the numbers are
and
.
One thought on “Graphical solution of linear systems”
Comments are closed.