If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Graphs of linear equations and functions | Lesson

A guide to graphs of linear equations and functions on the digital SAT

What are graphs of linear equations and functions questions?

Graphs of linear equations and functions questions deal with linear equations and functions and their graphs in the xy-plane. For example, the graph of y=2x1 is shown below.
The linear equation y=2x-1 is graphed in the xy-plane. The line trends upward from left to right and passes through the points (0, -1) and (1, 1).
An equation in function notation, f(x)=2x1, can also represent this line.
In this lesson, we'll learn to:
  1. Identify features of linear graphs from their equations
  2. Write linear equations based on graphical features
  3. Determine the equations of parallel and perpendicular lines
You can learn anything. Let's do this!

What are the features of lines in the xy-plane?

Intro to slope

Khan Academy video wrapper
Intro to slopeSee video transcript

Features of lines in the xy-plane

The slope

The slope of a line describes its direction and steepness.
  • A line that trends upward from left to right has a positive slope.
  • A line that trends downward from left to right has a negative slope.
  • The steeper the line is, the larger the
    of its slope is.
The slope is equal to the ratio of a line's change in y-value to its change in x-value. We can calculate the slope using any two points on the line, (x1,y1) and (x2,y2):
slope=change in ychange in x=y2y1x2x1

Example: Line contains the points (1,2) and (4,12). What is the slope of line ?

A horizontal line has a slope of 0 since all points on the line have the same y-coordinate (so the change in y is 0).
A vertical line has an undefined slope since all points on the line have the same x-coordinate (so the change in x is 0).

The y-intercept

The y-intercept of the line is the point where the line crosses the y-axis. This point always has an x-coordinate of 0. All non-vertical lines have exactly one y-intercept.

The x-intercept

The x-intercept of the line is the point where the line crosses the x-axis. This point always has a y-coordinate of 0. All non-horizontal lines have exactly one x-intercept.

Try it!

Try: identify the features of a graph
A line is graphed in the xy-plane. The line trends downward from left to right and passes through the points (0, 3) and (2, 0).
The graph of line m is shown above.
The y-intercept of the line is located at (0,
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi
).
The x-intercept of the line is located at (
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi
,0).
We can use the intercepts to calculate the slope of the line. The slope of the line is
  • Your answer should be
  • an integer, like 6
  • a proper fraction, like 1/2 or 6/10
  • an improper fraction, like 10/7 or 14/8
  • an exact decimal, like 0.75
.


How do I tell the features of lines from linear equations?

Converting to slope-intercept form

Khan Academy video wrapper
Converting to slope-intercept formSee video transcript

How do I interpret an equation in slope-intercept form?

Lines in the xy-plane are visual representations of linear equations. The slope-intercept form of a linear equation, y=mx+b, tells us both the slope and the y-intercept of the line:
  • The slope is equal to m.
  • The y-intercept is equal to b.
For example, the graph of y=3x7 has a slope of 3 and a y-intercept of 7.
Because the slope-intercept form shows us the features of the line outright, it's useful to rewrite any linear equation representing a line in slope-intercept form.

Example: What is the slope of the graph of 3x+4y=12 ?

Try it!

Try: identify slope and intercept from a linear equation
2x+y=3
To rewrite the above equation in slope-intercept form, we can isolate y by
both sides of the equation.
When 2x+y=3 is graphed in the xy-plane:
  • The slope of the line is
    • Your answer should be
    • an integer, like 6
    • a simplified proper fraction, like 3/5
    • a simplified improper fraction, like 7/4
    • a mixed number, like 1 3/4
    • an exact decimal, like 0.75
    • a multiple of pi, like 12 pi or 2/3 pi
    .
  • The y-intercept of the line is
    • Your answer should be
    • an integer, like 6
    • a simplified proper fraction, like 3/5
    • a simplified improper fraction, like 7/4
    • a mixed number, like 1 3/4
    • an exact decimal, like 0.75
    • a multiple of pi, like 12 pi or 2/3 pi
    .


How do I write linear equations based on slopes and points?

Slope-intercept equation from two points

Khan Academy video wrapper
Slope-intercept equation from two pointsSee video transcript

What information do I need to write a linear equation?

We can write the equation of a line as long as we know either of the following:
  • The slope of the line and a point on the line
  • Two points on the line
In both cases, we'll be using the information provided to find the missing values in y=mx+b.

The slope and a point

When we're given the slope and a point, we have values for x, y, and m in the equation y=mx+b, and we just need to plug in the values and solve for the y-intercept b.

Example: If line a has a slope of 2 and passes through the point (1,3), what is the equation of line a ?

Note: if the given point is the y-intercept, then we just need to plug in the slope for m and the y-intercept for b. No calculation needed!

Two points

When we're given two points, we must first calculate the slope using the two points, then plug in the values of x, y, and m into y=mx+b to find b.

Example: Line b passes through the points (2,4) and (1,5). What is the equation of line b ?

Try it!

TRY: WRITE the equation of a line
A line in the xy-plane trends upward from left to right and passes through the points (0, -4) and (2, 2).
The line shown above passes through the points (0,
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi
) and (2,2).
The slope of the line is
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi
.
The equation of the line in slope-intercept form is:
y=


How do I write equations of parallel and perpendicular lines?

Parallel & perpendicular lines from graph

Khan Academy video wrapper
Parallel & perpendicular lines from graphSee video transcript

What are the features of parallel and perpendicular lines?

In the xy-plane, lines with different slopes will intersect exactly once.
Parallel lines in the xy-plane have the same slope. Parallel lines do not intersect unless they also completely overlap (i.e., are the same line).
Perpendicular lines in the xy-plane have slopes that are
of each other. Perpendicular lines form 90 angles.
The graph below shows lines , m, and n.
  • Line has a slope of 2.
  • Line m also has a slope of 2. It is parallel to line .
  • Line n has a slope of 12. It is perpendicular to both lines and m.
Lines l, m, and n are graphed in the xy-plane. Line l has a slope of 2 and a y-intercept of -1. Line m has a slope of 2 and a y-intercept of -4. Line n has a slope of -1/2 and a y-intercept of 1. Lines l and m are parallel. Line n is perpendicular to lines l and m.
This means we can write the equation of a parallel or perpendicular line based on a slope relationship and a point on the line.

Let's look at some examples!

Lines p and q are graphed in the xy-plane. Line p is represented by the equation y=2x5. If line q is parallel to line p and passes through the point (0,4), what is the equation of line q ?

Line is represented by the equation y=3x+2. What is the equation of a line that is perpendicular to line and intersects line at (3,11) ?

Try it!

TRY: identify the features of parallel and perpendicular lines
A line in the xy-plane trends downward from left to right and contains the points (0, 3) and (3, 1).
The line shown in the graph above has a slope of
  • Your answer should be
  • an integer, like 6
  • a proper fraction, like 1/2 or 6/10
  • an improper fraction, like 10/7 or 14/8
and a y-intercept of
  • Your answer should be
  • an integer, like 6
  • a proper fraction, like 1/2 or 6/10
  • an improper fraction, like 10/7 or 14/8
.
The slope of a line parallel to the line above must have a slope of
  • Your answer should be
  • an integer, like 6
  • a proper fraction, like 1/2 or 6/10
  • an improper fraction, like 10/7 or 14/8
.
The slope of a line perpendicular to the line above must have a slope of
  • Your answer should be
  • an integer, like 6
  • a proper fraction, like 1/2 or 6/10
  • an improper fraction, like 10/7 or 14/8
  • an exact decimal, like 0.75
.
The slope-intercept form equation of a perpendicular line that intersects the line shown above at (0,3) is:
y=


Your turn!

Practice: match an equation and its graph
Which of the following is the graph of the equation y=12x+3 in the xy-plane?
Choose 1 answer:


Practice: write an equation based two points
Line in the xy-plane passes through the points (1,2) and (2,7). Which of the following equations describes line ?
Choose 1 answer:


Practice: find a point on a perpendicular line
In the xy-plane, line has a y-intercept of 7 and is perpendicular to the line with equation y=14x. If the point (5,c) is on line , what is the value of c ?
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi


Things to remember

slope=change in ychange in x=y2y1x2x1
The slope-intercept form of a linear equation, y=mx+b, tells us both the slope and the y-intercept of the line:
  • The slope is equal to m.
  • The y-intercept is equal to b.
We can write the equation of a line as long as we know either of the following:
  • The slope of the line and a point on the line
  • Two points on the line
Parallel lines in the xy-plane have the same slope.
Perpendicular lines in the xy-plane have slopes that are negative reciprocals of each other.

Want to join the conversation?