How do you solve a system of linear equations by graphing

Given:

#"First equation":##x+y=4#

#"Second equation:"##x-y=-6#

Find the x- and y-intercepts for each equation. Graph the points for each line separately, and draw a straight line through the points of both lines. The point at which they intersect is the solution to the system.

The x-intercept is the value of #x# when #y=0#.

The y-intercept is the value of #y# when #x=0#.

First equation

x-intercept:

Substitute #0# for #y#.

#x+0=4#

#x=4#

The x-intercept is #(4,0)#.

y-intercept:

Substitute #0# for #x#.

#0+y=4#

#y=4#

The y-intercept is #(0,4)#.

Plot the points and draw a straight line through them.

graph{x+y=4 [-10, 10, -5, 5]}

Second equation

x-intercept:

Substitute #0# for #y#.

x-0=-6#

#x=-6#

The x-intercept is #(-6,0)#.

y-intercept:

Substitute #0# for #x#.

#0-y=-6#

#-y=-6#

Multiply both sides by #-1#. This will reverse the signs.

#y=6#

The y-intercept is #(0,6)#.

Plot the points on the same graph and draw a straight line through them.

The point of intersection is #(4,5)#. This is the solution to the given system of equations.

graph{(x+y-4)(x-y+6)=0 [-10, 10, -5, 5]}

How do you solve a system of linear equations by graphing

In addition to solving systems of equations algebraically, you can also solve them graphically. A graphic solution can be done by hand (on graph paper), or with the use of a graphing calculator.

How do you solve a system of linear equations by graphing
Graphical Method - on graph paper

Graphing a system of linear equations is as simple as graphing two straight lines. When the lines are graphed, the solution will be the (x,y) ordered pair where the two lines intersect (cross).

How do you solve a system of linear equations by graphing

* Before you begin, rearrange the equations so they will read "y =". This process will make it easier to read the slope and y-intercept, for the slope-intercept method of graphing.

How do you solve a system of linear equations by graphing

Solve this system of equations graphically and check your solution:
(easy one)

  y = 2x + 1   and    y = -x + 7

1. The equations in this example are already set equal to "y". Identify the slope and y-intercept in each equation. Remember: y = mx + b, where m = slope and b = y-intercept.

y = 2x + 1
slope = 2
y-intercept = 1

y = -x + 7
slope = -1
y-intercept = 7

2. Graph the lines.

This example used the slope-intercept method of graphing straight lines.
The b-value tells you where the line crosses the y-axis.
The slope, m, tells you the rise over the run.
If you need help graphing lines, see Graphing Linear Equations.

Find the intersection point (where the lines cross).
These lines cross at the point (2,5).
This means the solution to this system is:
Solution: x = 2 and y = 5.

How do you solve a system of linear equations by graphing

3.CHECK: Substitute x = 2 and y = 5 into BOTH of the original equations. If your solutions are correct, both equations will be true!

y = 2x + 1
5 = 2(2) + 1
5 = 5
(check)

y = -x + 7
5 = -(2) + 7
5 = 5
(check)

How do you solve a system of linear equations by graphing
Two special cases!

1. Parallel Lines:
If the two linear equations have the same slope (and different y-intercepts), the lines will be parallel. Since parallel lines never intersect, a system composed of two parallel lines will have NO solution (no intersection of the lines.)

Solve system: y = 2x + 4 and y = 2x - 2

How do you solve a system of linear equations by graphing

Solution: No solution

2. Same Line:
If the two linear equations have the same slope (and the SAME y-intercept), the equations represent the same line. Since a line intersects with itself everywhere, there will be an
infinite number of solutions (intersecting everywhere.)

Solve system: y = -2x + 1 and 2x + y = 1

How do you solve a system of linear equations by graphing

Solution: Infinite number of solutions


How do you solve a system of linear equations by graphing

How do you solve a system of linear equations by graphing

Solve this system of equations graphically and check your solution:
(harder one)

  x = y + 1   and    2x + y = -7

1. Set the equations equal to y to make graphing easier.

y = x - 1
y = -2x - 7

2. Identify the slope and y-intercept in each equation.

y = x - 1
slope = 1
y-intercept = -1

y = -2x - 7
slope = -2
y-intercept = -7

3. Graph the lines.

Find the intersection point (where the lines cross).
These lines cross at the point (-2,-3).
This means the solution to this system is:
x = -2 and y = -3.

How do you solve a system of linear equations by graphing

4.CHECK: Substitute x = -2 and y = -3 into BOTH of the original equations. If your solutions are correct, both equations will be true!

x = y + 1
-2 = -3 + 1
-2 = -2
(check)

2x + y = -7
2(-2) + (-3) = -7
-4 + (-3) = -7
-7 = -7
(check)


The graphing method on graph paper can be useful when the intersection point happens to have integer coordinates (as seen in the example above). It becomes less helpful, however, when the coordinates are not integers. If it appears that the intersection point does not lie on the intersection of the grids of the graph paper, try an algebraic solution method or grab your graphing calculator.

How do you solve a system of linear equations by graphing
Graphical Method - graphing calculator


How do you solve a system of linear equations by graphing

When using the graphing calculator, you will still need to set the equations equal to y before you begin.
Follow the link at the right to see how to use your graphing calculator.

How do you solve a system of linear equations by graphing

For calculator help with systems of equations
click here.

How do you solve a system of linear equations by graphing


NOTE: The re-posting of materials (in part or whole) from this site to the Internet is copyright violation
and is not considered "fair use" for educators. Please read the "Terms of Use".

How do you solve a linear system by graphing?

To solve a system of linear equations graphically we graph both equations in the same coordinate system. The solution to the system will be in the point where the two lines intersect. The two lines intersect in (-3, -4) which is the solution to this system of equations.

How do you solve system of linear equations?

How do I solve systems of linear equations by substitution?.
Isolate one of the two variables in one of the equations..
Substitute the expression that is equal to the isolated variable from Step 1 into the other equation. ... .
Solve the linear equation for the remaining variable..

How do you do graphing linear equations?

To graph an equation using the slope and y-intercept, 1) Write the equation in the form y = mx + b to find the slope m and the y-intercept (0, b). 2) Next, plot the y-intercept. 3) From the y-intercept, move up or down and left or right, depending on whether the slope is positive or negative.