4.7.4: Write a Function in Slope-Intercept Form
- Page ID
- 4331
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Write a Function in Slope-Intercept Form
What if the linear function W(g) represented a family's monthly water bill, with g as the number of gallons of water used. If you know what the function was, could you find W(25)? How about if you know the slope of the function and the value of W(25)? Could you determine what the function is? Suppose you know the values of W(25) and W(50). Could you determine the function in this case?
Writing a Function in Slope-Intercept Form
Remember that a linear function has the form f(x)=mx+b. Here f(x) represents the y values of the equation or the graph. So y=f(x) and they are often used interchangeably. Using the functional notation in an equation often provides you with more information.
For instance, the expression f(x)=mx+b shows clearly that x is the independent variable because you substitute values of x into the function and perform a series of operations on the value of x in order to calculate the values of the dependent variable, y.
In this case when you substitute x into the function, the function tells you to multiply it by m and then add b to the result. This process generates all the values of y you need.
Let's consider the function f(x)=3x−4 and find f(2), f(0), and f(−1):
Each number in parentheses is a value of x that you need to substitute into the equation of the function.
f(2)=2; f(0)=−4; and f(−1)=−7
Function notation tells you much more than the value of the independent variable. It also indicates a point on the graph. For example, in the above example, f(−1)=−7. This means the ordered pair (–1, –7) is a solution to f(x)=3x−4 and appears on the graphed line. You can use this information to write an equation for a function.
Let's write an equation in slope-intercept form for each of the following lines:
- A line with m=3.5 and f(−2)=1
You know the slope, and you know a point on the graph, (–2, 1). Using the methods presented in this Concept, write the equation for the line.
Begin with slope-intercept form;
y=mx+b
y=3.5x+b Substitute the value for the slope.
1=3.5(−2)+b Use the ordered pair to solve for b.
b=8
y=3.5x+8 Rewrite the equation.
f(x)=3.5x+8 or
- A line with f(−1)=2 and f(5)=20
You know two points on the graph. Find the slope, and write the equation for the line.
First, you must find the slope:
m=(y2−y1)/(x2−x1)=(20−2)/(5−(−1)=18/6=3.
Now use the slope-intercept form:
y=mx+b
y=3x+b Substitute the value for the slope.
2=3(−1)+b Use the ordered pair to solve for b.
b=5
y=3x+5 Rewrite the equation.
f(x)=3x+5 or
Examples
Example 4.7.4.1
Earlier, you were told that the linear function W(g) represented a family's monthly water bill, with g as the number of gallons of water used. If you know what the function is, could you find W(25)? If you know the slope of the function and the value of W(25), could you determine what the function is? If you know the values of W(25) and W(50), could you determine what the function is?
Solution
If you were given the function, to find W(25), you would just plug in 25 for g, the independent value and then simplify. If you knew the slope and the value of W(25), you could find the function by treating 25 and the value of W(25) as a point. If you knew the values of W(25) and W(50), you know two points on the line and could find the function.
Example 4.7.4.2
Write an equation for a line with f(0)=2 and f(3)=−4 and use it to find f(−5), f(2), f(0), and f(z).
Solution
Notice that the first point given as an input value is 0, and the output is 2, which means the point is (0,2). This is the y-intercept. So, all we have to do is find the slope and then plug both values into the slope-intercept form:
m=(y2−y1)/(x2−x1)=(−4−2)/(3−0)=−6/3=−2.
Now use the slope-intercept form.
y=mx+b
y=−2x+b Substitute the value for the slope.
y=−2x+2 Substitute the value for the y-intercept
f(x)=−2x+2 or
Now we find the values of f(−5), f(2), f(0), and f(z) for f(x)=−2x+2.
f(−5)=−2(−5)+2=10+2=12
f(2)=−2(2)+2=−2
f(0)=−2(0)+2=0
f(z)=−2z+2
Review
- Consider the function f(x)=−2x−3. Find f(−3), f(0), and f(5).
- Consider the function f(x)=2/3x+10. Find f(−9), f(0), and f(9).
In 3–10, find the equation of the linear function in slope–intercept form.
- m=5,f(0)=−3
- m=−2, f(0)=5
- m=−7,f(2)=−1
- m=1/3,f(−1)=2/3
- m=4.2,f(−3)=7.1
- f(1/4)=3/4,f(0)=5/4
- f(1.5)=−3,f(−1)=2
- f(−1)=1, f(1)=−1
Review (Answers)
To see the Review answers, open this PDF file and look for section 5.3.
Vocabulary
Term | Definition |
---|---|
undefined slope | An undefined slope cannot be computed. Vertical lines have undefined slopes. |
Additional Resources
Video: Writing Slope-Intercept Form Given Parts - Overview
Activity: Write a Function in Slope-Intercept Form Discussion Questions
Study Aid: Determining the Equation of a Line Study Guide
Practice: Write a Function in Slope-Intercept Form