Skip to main content
Mathematics LibreTexts

16.3: G1.03- Examples 4-7

  • Page ID
    51674
  • \( \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}}\)

    Example 4. A manager is considering the cost C of printing a book based on the number of pages p. He is told that the formula for predicting the cost is linear based on the number of pages and that the y-intercept is $4.50 and the slope is $0.027. Find the formula to predict the cost from the number of pages.

    [reveal-answer q=”494645″]Show Answer[/reveal-answer]
    [hidden-answer a=”494645″]Since it is linear, C=mp+b, where m=0.027 and b=4.50.

    Thus C=0.027p+4.50 is the formula.

    [/hidden-answer]

    Example 5. Find the formula for the line with slope 1.35 which has the point (5,40) on it.

    [reveal-answer q=”337108″]Show Answer[/reveal-answer]
    [hidden-answer a=”337108″]

    Let m=1.35 and ({{x}_{0}},{{y}_{0}})=(5,40). Then

    \begin{align}&\,\,\,\,\,\,\,\,\,\,\,\,y-{{y}_{0}}=m(x-{{x}_{0}})\\&\,\,\,\,\,\,\,\,\,\,\,\,y-40=1.35(x-5)\\&\,\,\,\,\,\,\,\,\,\,\,\,y-40=1.35x-6.75\\&\,\,y-40+40=1.35x-6.75+40\\&\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,y=1.35x+33.25\end{align}

    Thus the equation of the line is y=1.35x+33.25.

    Check: We can look at the formula and read the slope as 1.35, so that checks. To see whether the given point is on it, evaluate the formula at x=5 and see whether it gives the correct y-value. y=1.35(5)+33.25=6.75+33.25=40. This checks!

    [/hidden-answer]

    We can use this same idea to compute the formula for a line if we have two points on it because we can first use the two points to find the slope. Here’s an outline:

    Find the formula for of a line through two points.

    1. Choose the appropriate variable to be the output variable and call it y. Then call the input variable x.
    2. Write two points as ({{x}_{1}},{{y}_{1}})and ({{x}_{2}},{{y}_{2}}).
    3. Use the two points to compute the slope. Call it m.
    4. Pick one of the points (either is fine) and call it ({{x}_{0}},{{y}_{0}}).
    5. Plug those values into this equation. (y-{{y}_{0}})=m(x-{{x}_{0}})
    6. Solve for y. That gives the equation of the line.
    7. If different letters are needed besides x and y for the input and output variables, replace the x and y in the formula with those different letters.

    Example 6:   Find the formula for the line through (2,6) and (4,11). Identify the slope and y-intercept.

    [reveal-answer q=”946927″]Show Answer[/reveal-answer]
    [hidden-answer a=”946927″]

    Let ({{x}_{1}},{{y}_{1}})= (2,6) and = (4,11).

    m=\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\,\,\,\,\,=\,\,\,\frac{11-6}{4-2}\,\,=\frac{5}{2}\,\,\,\,\,=\,\,\,2.5

    Now, to use the point-slope form, I will use ({{x}_{0}},{{y}_{0}})= (2,6) to get

    \begin{align}&(y-{{y}_{0}})=m(x-{{x}_{0}})\\&(y-6)=2.5(x-2)\\&y-6=2.5x-5\\&y\,\,\,\,\,=2.5x\,\,+\,\,1\\\end{align} So the equation of the line is y=2.5x+1, the slope is 2.5, the y-intercept is 1.

    Check: Use the formula we derived to determine the output value for x=2 and see if the given point is on the line.   y=2.5x+1=2.5(2)+1=5+1=6. This tells us that (2,6) is on the line.

    Use the formula we derived to determine the output value for x=4 and see if the second given point is on the line.   y=2.5x+1=2.5(4)+1=10+1=11. This tells us that (4,11) is on the line. So this checks.

    [/hidden-answer]

    Example 7. We have been told that the amount of oatmeal needed for oatmeal cookies is linearly related to the amount of flour needed. Also, we know that if we use 3 cups of flour, we need 2 cups of oatmeal. And, of course, if we use 0 cups of flour, we will use 0 cups of oatmeal.

    1. Find the formula to predict the oatmeal needed (called M) from the flour needed (F.)
    2. Interpret the slope.
    3. Interpret the y-intercept.

    [reveal-answer q=”922900″]Show Answer[/reveal-answer]
    [hidden-answer a=”922900″]

    a. Here, the output variable (y) is M and the input variable (x) is F.

    So the two points given are (0,0) and (3, 2).

    Using the slope formula, m=\frac{{{y}_{2}}-{{y}_{1}}}{{{x}_{2}}-{{x}_{1}}}\,\,\,\,\,=\,\,\,\frac{2-0}{3-0}\,\,=\frac{2}{3}\,\,\,\,\,=\,\,\,0.667cups of oatmeal per one cup of flour.

    Then, to use the point-slope form of the line, we’ll use and the first point, which is (0,0).

    \begin{align}&(y-{{y}_{0}})=m(x-{{x}_{0}})\\&(y-0)=0.667(x-0)\\&\,\,\,\,\,\,\,\,\,\,\,y=0.667x\\&\,\,\,\,\,\,\,\,\,\,\,y\,=0.667x+0\\\end{align}

    So the formula is M=0.667\cdot{F}, so the slope is 0.667 and the y-intercept is 0.

    1. Interpret the slope: For every 1 additional cup of flour, we should use 0.667 additional cups of oatmeal.
    2. Interpret the intercept: If we use 0 cups of flour, then we will use 0 cups of oatmeal.

    [/hidden-answer]

    This last example illustrates that sometimes the intercept is not a number that would be realistic in the situation that the problem describes. But it does have a meaning in the algebraic formula.

    For a linear formula, the slope is always a number that is meaningful.

    CC licensed content, Shared previously
    • Mathematics for Modeling. Authored by: Mary Parker and Hunter Ellinger. License: CC BY: Attribution

    16.3: G1.03- Examples 4-7 is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?