Write the Equation of a Linear Function Part II
Learning Outcomes
- Write the equation of a linear function from a graph
- Write the equation for a linear function from slope given two points
Now that we have written equations for linear functions using both slope-intercept form and point-slope form, we can choose which method to use based on the information we are given. That information may be provided in the form of a graph, a point and a slope, two points, and so on. Look at the graph of the function f below.
We are not given the slope of the line, but we can choose any two points on the line to find the slope. Choose (0,7) and (4,4). We can use these points to calculate the slope.
m=x2−x1y2−y1=4−04−7=−43
Now we can substitute the slope and the coordinates of one of the points into point-slope form.
y−y1=m(x−x1)y−4=−43(x−4)
If we want to rewrite the equation in slope-intercept form, we would do the following:
y−4=−43(x−4)y−4=−43x+3 y=−43x+7
If we wanted to find the equation of the line in slope-intercept form without first using point-slope form, we could have recognized that the line crosses the y-axis when the output value is 7. Therefore, b = 7. We now have the initial value b and the slope m so we can substitute m and b into slope-intercept form of a line.
The function is f(x)=−43x+7, and the linear equation would be y=−43x+7.
How To: Given the graph of a linear function, write an equation to represent the function
- Identify two points on the line.
- Use the two points to calculate the slope.
- Determine where the line crosses the y-axis to identify the y-intercept by visual inspection.
- Substitute the slope and y-intercept into slope-intercept form of a linear equation.
Example
Write an equation for a linear function
f given its graph shown below.
Answer:
Identify two points on the line such as (0,2) and (–2,–4). Use the points to calculate the slope.
m=x2−x1y2−y1=−2−0−4−2=−2−6=3
Substitute the slope and the coordinates of one of the points into point-slope form.
y−y1=m(x−x1)y−(−4)=3(x−(−2))y+4=3(x+2)
We can use algebra to rewrite the equation in slope-intercept form.
y+4=3(x+2)y+4=3x+6y=3x+2
This makes sense because we can see from the graph above that the line crosses the
y-axis at the point
(0,2), which is the
y-intercept, so
b=2
In the following video, we show an example of how to write the equation of a line given its graph.
https://youtu.be/mmWf_oLTNSQ
Licenses & Attributions
CC licensed content, Original
CC licensed content, Shared previously
- Ex 1: Find the Equation of a Line in Slope Intercept Form Given the Graph of a Line. Authored by: James Sousa (Mathispower4u.com). License: CC BY: Attribution.
- College Algebra. Provided by: OpenStax Located at: https://cnx.org/contents/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1/Preface. License: CC BY: Attribution. License terms: Download free at : http://cnx.org/contents/9b08c294-057f-4201-9f48-5d6ad992740d@3.278:1/Preface.
- Ex: Find the Linear Function Given Two Function Values in Function Notation. Authored by: for Lumen Learning. License: CC BY: Attribution.
Example
If f is a linear function, with f(3)=−2 , and f(8)=1, find an equation for the function in slope-intercept form.Answer:
We can write the given points using coordinates.
We can then use the points to calculate the slope.
Substitute the slope and the coordinates of one of the points into point-slope form.
We can use algebra to rewrite the equation in slope-intercept form.
Summary