Finding an Equation of the Line Given the Slope and <em>y</em>-intercept

Finding the Equation of a Line

How do online retailers know that ‘you may also like’ a particular item based on something you just ordered? How can economists know how a rise in the minimum wage will affect the unemployment rate? How do medical researchers create drugs to target cancer cells? How can traffic engineers predict the effect on your commuting time of an increase or decrease in gas prices? It’s all mathematics.

You are at an exciting point in your mathematical journey as the mathematics you are studying has interesting applications in the real world.

The physical sciences, social sciences, and the business world are full of situations that can be modeled with linear equations relating two variables. Data is collected and graphed. If the data points appear to form a straight line, an equation of that line can be used to predict the value of one variable based on the value of the other variable.

To create a mathematical model of a linear relation between two variables, we must be able to find the equation of the line. In this lesson and the next few, we will look at several ways to write the equation of a line. The specific method we use will be determined by what information we are given.

Finding an Equation of the Line Given the Slope and y-Intercept

We can easily determine the slope and intercept of a line if the equation was written in slope–intercept form, \(y=mx+b.\) Now, we will do the reverse—we will start with the slope and y-intercept and use them to find the equation of the line.

Example

Find an equation of a line with slope \(-7\) and y-intercept \(\left(0,-1\right)\).

Solution

Since we are given the slope and y-intercept of the line, we can substitute the needed values into the slope–intercept form, \(y=mx+b\).

Name the slope. .
Name the y-intercept. .
Substitute the values into \(y=mx+b.\) .
.
.

Sometimes, the slope and intercept need to be determined from the graph.

Example

Find the equation of the line shown.

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. A line intercepts the y-axis at (0, negative 4), passes through the plotted point (3, negative 2), and intercepts the x-axis at (4, 0).

Solution

We need to find the slope and y-intercept of the line from the graph so we can substitute the needed values into the slope–intercept form, \(y=mx+b\).

To find the slope, we choose two points on the graph.

The y-intercept is \(\left(0,-4\right)\) and the graph passes through \(\left(3,-2\right)\).

Find the slope by counting the rise and run. .
.
Find the y-intercept. .
Substitute the values into \(y=mx+b.\) .
.

This lesson is part of:

Graphs and Equations

View Full Tutorial

Track Your Learning Progress

Sign in to unlock unlimited practice exams, tutorial practice quizzes, personalized weak area practice, AI study assistance with Lexi, and detailed performance analytics.