05/14 5. Linear Functions and Models

A structured guide to identifying, graphing, writing, evaluating, and applying linear functions, including piecewise definitions and real-world linear models.

Understanding the Structure of a Line

A has a graph that is a straight line and changes at a constant rate. Its central equation is

f(x)=mx+bf(x)=mx+b

or, equivalently,

y=mx+b.y=mx+b.

Here, mm is the and bb is the . The determines the direction of the graph:

  • If m>0m>0, the function is increasing.

  • If m<0m<0, the function is decreasing.

  • If m=0m=0, the function is constant.

For example, in f(x)=3x−2f(x)=3x-2, the is 33 and the is (0,−2)(0,-2). Each increase of 11 in xx produces an increase of 33 in the output.

Takeaway: Read mm as the constant change in output and bb as the output when the input is zero.

Calculating and Interpreting

The measures vertical change divided by horizontal change:

m=riserun=ΔyΔx.m=\frac{\text{rise}}{\text{run}}=\frac{\Delta y}{\Delta x}.

For two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), use

m=y2−y1x2−x1,x1≠x2.m=\frac{y_2-y_1}{x_2-x_1},\qquad x_1\ne x_2.

Keep the point order consistent in the numerator and denominator. For (2,5)(2,5) and (8,17)(8,17),

m=17−58−2=126=2.m=\frac{17-5}{8-2}=\frac{12}{6}=2.

Thus, the output increases by 22 for every increase of 11 in the input. In an application, include the units: a distance measured in miles over time measured in hours gives in miles per hour.

Special cases:

  • A horizontal line has 00.

  • A vertical line has undefined because its horizontal change is zero.

  • A vertical line has an equation of the form x=ax=a and is not a function of xx.

Takeaway: is always change in output divided by change in input.

Finding the Intercepts

An intercept is where a graph crosses an axis. The occurs when x=0x=0. In y=mx+by=mx+b, it is the point (0,b)(0,b).

The occurs when y=0y=0. For y=−4x+7y=-4x+7, set the output equal to zero:

0=−4x+70=-4x+7
4x=74x=7
x=74.x=\frac{7}{4}.

Therefore, the is

(74,0).\left(\frac{7}{4},0\right).

The is also the function's zero because it is the input that gives an output of zero. Do not confuse the intercepts: the has x=0x=0, while the has y=0y=0.

Takeaway: Find a by setting x=0x=0, and find an by setting y=0y=0.

Writing Equations of Lines

A line can be represented in several equivalent forms.

  • :

    y=mx+by=mx+b

    Use it when the and are known or when graphing quickly.

  • :

    y−y1=m(x−x1)y-y_1=m(x-x_1)

    Use it when a and one point are known.

  • :

    Ax+By=CAx+By=C

To write an equation from two points, first calculate the , then solve for the intercept. For (1,4)(1,4) and (5,12)(5,12),

m=12−45−1=2.m=\frac{12-4}{5-1}=2.

Substituting (1,4)(1,4) into y=2x+by=2x+b gives

4=2(1)+b,4=2(1)+b,

so b=2b=2, and the equation is

y=2x+2.y=2x+2.

Check the second point: 2(5)+2=122(5)+2=12.

Takeaway: Choose the equation form that matches the information you know, then verify the result with a given point.

Graphing Linear Functions

To graph y=mx+by=mx+b, begin with the and use the as a rise-over-run pattern:

  1. Plot (0,b)(0,b).

  2. Rewrite the as a fraction if needed.

  3. Move vertically by the numerator and horizontally by the denominator.

  4. Plot another point and draw the line through the points.

For

y=−12x+3,y=-\frac{1}{2}x+3,

the is (0,3)(0,3). The −12-\frac{1}{2} means move down 11 and right 22, reaching (2,2)(2,2). Repeating this movement gives (4,1)(4,1).

A positive produces an upward trend from left to right; a negative produces a downward trend.

Takeaway: The intercept supplies the starting point, and the supplies the repeated movement.

Working with Piecewise Rules

A uses a different rule on each specified interval. To evaluate one, first identify the condition containing the input, then use only that rule. Consider

f(x)={2x+1,x<3,10−x,x≥3.f(x)= \begin{cases} 2x+1, & x<3,\\ 10-x, & x\ge 3. \end{cases}

For x=2x=2, the first condition applies:

f(2)=2(2)+1=5.f(2)=2(2)+1=5.

For x=5x=5, the second condition applies:

f(5)=10−5=5.f(5)=10-5=5.

To graph a , graph only the portion allowed by each condition. Use an open circle for an excluded endpoint and a closed circle for an included endpoint. At x=3x=3, the first rule gives an open endpoint at

(3,2(3)+1)=(3,7),(3,2(3)+1)=(3,7),

while the second rule gives a closed endpoint at

(3,10−3)=(3,7).(3,10-3)=(3,7).

Because these endpoints coincide, the graph is continuous at that boundary. Different endpoint heights would create a jump.

Takeaway: Conditions control both evaluation and graphing; always check endpoint inclusion.

Building and Interpreting Linear Models

A describes a context in which one quantity changes at a constant rate. Write it as

y=mx+b,y=mx+b,

where xx is the independent variable, yy is the dependent variable, mm is the rate of change, and bb is the initial value.

Use this procedure:

  1. Define the variables and units.

  2. Identify the constant rate of change.

  3. Identify the initial value.

  4. Write the equation.

  5. Evaluate it for the requested input.

  6. Check the units, , and contextual meaning.

For a taxi charging a $4\$4 starting fee plus $2.50\$2.50 per mile, let mm represent miles and C(m)C(m) represent cost:

C(m)=2.50m+4.C(m)=2.50m+4.

For 66 miles,

C(6)=2.50(6)+4=19.C(6)=2.50(6)+4=19.

The model predicts a cost of $19\$19. Its natural is typically nonnegative mileage, with any additional service restrictions included.

For a tank containing 120120 liters at time t=0t=0 and losing 88 liters per minute,

V(t)=120−8t.V(t)=120-8t.

Setting V(t)=0V(t)=0 gives

0=120−8t,0=120-8t,

so t=15t=15. The meaningful time is 0≤t≤150\le t\le 15, because negative time and times after the tank is empty do not describe the situation.

Takeaway: A useful model explains the , intercept, units, , and range in context—not merely the equation.

Checking Solutions and Connecting Ideas

Use these checks to avoid common mistakes:

  • Compute as change in output divided by change in input, not the reverse.

  • Keep point order consistent in both parts of the formula.

  • Remember that the has x=0x=0, while the has y=0y=0.

  • Include units when interpreting a in an application.

  • Select the correct piece before evaluating a .

  • Do not extend a model beyond its realistic .

  • Do not treat a vertical line as a function of xx; it fails the vertical-line test.

A complete solution should connect algebraic results to graphical and contextual meaning. The describes the rate of change, intercepts identify important starting or zero-output values, and restrictions determine which results are meaningful.

Final takeaway: Linear functions, piecewise functions, and linear models all become easier to interpret when you consistently connect equations, graphs, units, and conditions.