Linear Functions
Linear Functions
Linear functions are algebraic equations whose graphs are straight lines with unique
values for their slope and y-intercepts.
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
A linear function is an algebraic equation in which each term is either a constant or the
product of a constant and (the first power of) a single variable.
A function is a relation with the property that each input is related to exactly one output.
A relation is a set of ordered pairs.
The graph of a linear function is a straight line, but a vertical line is not the graph of a
function.
All linear functions are written as equations and are characterized by their slope and yy-
intercept.
Key Terms
A linear function is an algebraic equation in which each term is either a constant or the
product of a constant and (the first power of) a single variable. For example, a common
equation, y=mx+by=mx+b, (namely the slope-intercept form, which we will learn more
about later) is a linear function because it meets both criteria with xx and yy as
variables and mm and bb as constants. It is linear: the exponent of the xx term is a one
(first power), and it follows the definition of a function: for each input (xx) there is exactly
one output (yy). Also, its graph is a straight line.
The origin of the name “linear” comes from the fact that the set of solutions of such an
equation forms a straight line in the plane. In the linear function graphs below, the
constant, mm, determines the slope or gradient of that line, and the constant term, bb,
determines the point at which the line crosses the yy-axis, otherwise known as the yy-
intercept.
Graphs of linear functions: The blue line, y=12x−3y=12x−3 and the red line, y=−x+5y=−x+5 are both linear
functions. The blue line has a positive slope of 1212 and a yy-intercept of −3−3; the red line has a negative
slope of −1−1 and a yy-intercept of 55.
Horizontal lines have a slope of zero and is represented by the form, y=by=b,
where bb is the yy-intercept. A graph of the equation y=6y=6 includes the same output
value of 6 for all input values on the line, such
as (−2,6),(0,6),(2,6),(6,6)(−2,6),(0,6),(2,6),(6,6), etcetera. Horizontal lines ARE
functions because the relation (set of points) has the characteristic that each input is
related to exactly one output.
Slope
Slope describes the direction and steepness of a line, and can be calculated given two
points on the line.
LEARNING OBJECTIVES
Calculate the slope of a line using “rise over run” and identify the role of slope in a linear
equation
KEY TAKEAWAYS
Key Points
The slope of a line is a number that describes both the direction and the steepness of the
line; its sign indicates the direction, while its magnitude indicates the steepness.
The ratio of the rise to the run is the slope of a line, m=riserunm=riserun.
The slope of a line can be calculated with the formula m=y2−y1x2−x1m=y2−y1x2−x1,
where (x1,y1)(x1,y1) and (x2,y2)(x2,y2) are points on the line.
Key Terms
Slope
In mathematics, the slope of a line is a number that describes both the direction and
the steepness of the line. Slope is often denoted by the letter mm. Recall the slop-
intercept form of a line, y=mx+by=mx+b. Putting the equation of a line into this form
gives you the slope (mm) of a line, and its yy-intercept (bb). We will now discuss the
interpretation of mm, and how to calculate mm for a given line.
Slopes of Lines: The slope of a line can be positive, negative, zero, or undefined.
The steepness, or incline, of a line is measured by the absolute value of the slope. A slope with a greater
absolute value indicates a steeper line. In other words, a line with a slope of −9−9 is steeper than a line with a
slope of 77.
Calculating Slope
Slope is calculated by finding the ratio of the “vertical change” to the “horizontal change”
between any two distinct points on a line. This ratio is represented by a quotient (“rise
over run”), and gives the same number for any two distinct points on the same line. It is
represented by m=riserunm=riserun.
m=y2−y1x2−x1m=y2−y1x2−x1
Two points on the line are required to find mm. Given two
points (x1,y1)(x1,y1) and (x2,y2)(x2,y2), take a look at the graph below and note how
the “rise” of slope is given by the difference in the yy-values of the two points, and the
“run” is given by the difference in the xx-values.
Slope Represented Graphically: The slope m=y2–y1x2–x1m=y2–y1x2–x1 is calculated from the two
points (x1,y1)(x1,y1) and (x2,y2)(x2,y2).
Now we’ll look at some graphs on a coordinate grid to find their slopes. In many cases, we can find slope by
simply counting out the rise and the run. We start by locating two points on the line. If possible, we try to
choose points with coordinates that are integers to make our calculations easier.
Example
Find the slope of the line shown on the coordinate plane below.
Find the slope of the line: Notice the line is increasing so make sure to look for a slope that is positive.
Locate two points on the graph, choosing points whose coordinates are integers. We will
use (0,−3)(0,−3) and (5,1)(5,1). Starting with the point on the left, (0,−3)(0,−3), sketch a right triangle, going
from the first point to the second point, (5,1)(5,1).
Identify points on the line: Draw a triangle to help identify the rise and run.
Use the slope formula to take the ratio of rise over run:
m=riserun=45m=riserun=45
The slope of the line is 4545. Notice that the slope is positive since the line slants
upward from left to right.
Example
Find the slope of the line shown on the coordinate plane below.
Find the slope of the line: We can see the slope is decreasing, so be sure to look for a negative slope.
Locate two points on the graph. Look for points with coordinates that are integers. We can choose any points,
but we will use (0,5)(0,5) and (3,3)(3,3).
Identify two points on the line: The points (0,5)(0,5) and (3,3)(3,3) are on the line.
m=y2−y1x2−x1m=y2−y1x2−x1
Let (x1,y1)(x1,y1) be the point (0,5)(0,5), and (x2,y2)(x2,y2) be the point (3,3)(3,3).
m=3−53−0=−23m=3−53−0=−23
The slope of the line is −23−23. Notice that the slope is negative since the line slants
downward from left to right.
Direct and Inverse Variation
Two variables in direct variation have a linear relationship, while variables in inverse
variation do not.
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
Two variables that change proportionally to one another are said to be in direct variation.
The relationship between two directly proportionate variable can be represented by a
linear equation in slope -intercept form, and is easily modeled using a linear graph.
Inverse variation is the opposite of direct variation; two variables are said to be inversely
proportional when a change is performed on one variable and the opposite happens to
the
other.
The relationship between two inversely proportionate variables cannot be represented by
a linear equation, and its graphical representation is not a line, but a hyperbola.
Key Terms
hyperbola: A conic section formed by the intersection of a cone with a plane that
intersects the base of the cone and is not tangent to the cone.
proportional: At a constant ratio. Two magnitudes (numbers) are said to be proportional
if the second varies in a direct relation arithmetically to the first.
Direct Variation
Simply put, two variables are in direct variation when the same thing that happens to
one variable happens to the other. If xx and yy are in direct variation, and xx is doubled,
then yy would also be doubled. The two variables may be considered directly
proportional.
yx=kyx=k
Where kk is a constant.
y=kxy=kx
Notice that this is a linear equation in slope-intercept form, where the yy-intercept bb is
equal to 00.
Thus, any line passing through the origin represents a direct variation
between xx and yy:
Directly Proportional Variables: The graph of y=kxy=kxdemonstrates an example of direct variation between
two variables.
Revisiting the example with toothbrushes and dollars, we can define the xx-axis as number of toothbrushes
and the yy-axis as number of dollars. Doing so, the variables would abide by the relationship:
yx=2yx=2
Any augmentation of one variable would lead to an equal augmentation of the other. For
example, doubling yy would result in the doubling of xx.
Inverse Variation
Inverse variation is the opposite of direct variation. In the case of inverse variation, the
increase of one variable leads to the decrease of another. In fact, two variables are said
to be inversely proportional when an operation of change is performed on one variable
and the opposite happens to the other. For example, if xx and yy are inversely
proportional, if xx is doubled, then yy is halved.
As an example, the time taken for a journey is inversely proportional to the speed of
travel. If your car travels at a greater speed, the journey to your destination will be
shorter.
Knowing that the relationship between the two variables is constant, we can show that
their relationship is:
yx=kyx=k
Notice that this is not a linear equation. It is impossible to put it in slope-intercept form.
Thus, an inverse relationship cannot be represented by a line with constant slope.
Inverse variation can be illustrated with a graph in the shape of a hyperbola, pictured
below.
Inversely Proportional Function: An inversely proportional relationship between two variables is represented
graphically by a hyperbola.
A zero, or xx-intercept, is the point at which a linear function’s value will equal zero.
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
A zero is a point at which a function ‘s value will be equal to zero. Its coordinates
are (x,0)(x,0), where xx is equal to the zero of the graph.
Zeros can be observed graphically or solved for algebraically.
A linear function can have none, one, or infinitely many zeros. If the function is a
horizontal line ( slope = 00), it will have no zeros unless its equation is y=0y=0, in which
case it will have infinitely many. If the line is non-horizontal, it will have one zero.
Key Terms
zero: Also known as a root; an xx value at which the function of xx is equal to 00.
linear function: An algebraic equation in which each term is either a constant or the
product of a constant and (the first power of) a single variable.
y-intercept: A point at which a line crosses the yy-axis of a Cartesian grid.
The graph of a linear function is a straight line. Graphically, where the line crosses
the xx-axis, is called a zero, or root. Algebraically, a zero is an xx value at which the
function of xx is equal to 00. Linear functions can have none, one, or infinitely many
zeros. If there is a horizontal line through any point on the yy-axis, other than at zero,
there are no zeros, since the line will never cross the xx-axis. If the horizontal line
overlaps the xx-axis, (goes through the yy-axis at zero) then there are infinitely many
zeros, since the line intersects the xx-axis multiple times. Finally, if the line is vertical or
has a slope, then there will be only one zero.
All lines, with a value for the slope, will have one zero. To find the zero of a linear
function, simply find the point where the line crosses the xx-axis.
Zeros of linear functions: The blue line, y=12x+2y=12x+2, has a zero at (−4,0)(−4,0); the red
line, y=−x+5y=−x+5, has a zero at (5,0)(5,0). Since each line has a value for the slope, each line has exactly
one zero.
To find the zero of a linear function algebraically, set y=0y=0 and solve for xx.
The zero from solving the linear function above graphically must match solving the
same function algebraically.
0=12x+20=12x+2
Next, solve for xx. Subtract 22 and then multiply by 22, to obtain:
12x=−2x=−412x=−2x=−4
The zero is (−4,0)(−4,0). This is the same zero that was found using the graphing
method.
Slope-Intercept Equations
LEARNING OBJECTIVES
KEY TAKEAWAYS
Key Points
The slope -intercept form of a line is given by y=mx+by=mx+b where mm is the slope
of the line and bb is the yy-intercept.
The constant bb is known as the yy-intercept. From slope- intercept form,
when x=0x=0, y=by=b, and the point (0,b)(0,b) is the unique point on the line also on
the yy-axis.
To graph a line in slope-intercept form, first plot the yy-intercept, then use the value of the
slope to locate a second point on the line. If the value of the slope is an integer, use
a 11 for the denominator.
Use algebra to solve for yy if the equation is not written in slope-intercept form. Only then
can the value of the slope and yy-intercept be located from the equation accurately.
Key Terms
slope: The ratio of the vertical and horizontal distances between two points on a line; zero
if the line is horizontal, undefined if it is vertical.
y-intercept: A point at which a line crosses the yy-axis of a Cartesian grid.
Slope-Intercept Form
One of the most common representations for a line is with the slope-intercept form.
Such an equation is given by y=mx+by=mx+b, where xxand yy are variables
and mm and bb are constants. When written in this form, the constant mm is the value
of the slope and bb is the yy-intercept. Note that if mm is 00, then y=by=b represents a
horizontal line. Note that this equation does not allow for vertical lines, since that would
require that mm be infinite (undefined). However, a vertical line is defined by the
equation x=cx=c for some constant cc.
Writing an equation in slope-intercept form is valuable since from the form it is easy to
identify the slope and yy-intercept. This assists in finding solutions to various problems,
such as graphing, comparing two lines to determine if they are parallel or perpendicular
and solving a system of equations.
Example
Let’s write an equation in slope-intercept form with m=−23m=−23, and b=3b=3. Simply
substitute the values into the slope-intercept form to obtain:
y=−23x+3y=−23x+3
If an equation is not in slope-intercept form, solve for yy and rewrite the equation.
Example
Let’s write the equation 3x+2y=−43x+2y=−4 in slope-intercept form and identify the
slope and yy-intercept. To solve the equation for yy, first subtract 3x3x from both sides
of the equation to get:
2y=−3x−42y=−3x−4
y=12(−3x−4)y=12(−3x−4)
Example
We construct the graph the line y=−32x−2y=−32x−2 using the slope-intercept method.
We begin by plotting the yy-intercept b=−2b=−2, whose coordinates
are (0,−2)(0,−2). The value of the slope dictates where to place the next point.
Since the value of the slope is −32−32, the rise is −3−3 and the run is 22. This means
that from the yy-intercept, (0,−2)(0,−2), move 33 units down, and move 22 units
right. Thus we arrive at the point (2,−5)(2,−5) on the line. If the negative sign is placed
with the denominator instead the slope would be written as 3−23−2, we can instead
move up 33 units and left 22 units from the yy-intercept to arrive at the
point (−2,1)(−2,1), also on the line.
Example
−6y−6=−12x−6y−6=−12x
−6y=−12x+6−6y=−12x+6
y=2x−1y=2x−1
The slope is 22, and the yy-intercept is −1−1. Using this information, graphing is
easy. Start by plotting the yy-intercept (0,−1)(0,−1), then use the value of the
slope, 2121, to move up 22 units and right 11 unit.
Slope-intercept graph: Graph of the line y=2x−1y=2x−1.
Point-Slope Equations
The point-slope equation is another way to represent a line; only the slope and a single
point are needed.
LEARNING OBJECTIVES
Use point-slope form to find the equation of a line passing through two points and verify that it is
equivalent to the slope-intercept form of the equation
KEY TAKEAWAYS
Key Points
Point-Slope Equation
The point-slope equation is a way of describing the equation of a line. The point-slope
form is ideal if you are given the slope and only one point, or if you are given two points
and do not know what the yy-intercept is. Given a slope, mm, and a
point (x1,y1)(x1,y1), the point-slope equation is:
y−y1=m(x−x1)y−y1=m(x−x1)
To show that these two equations are equivalent, choose a generic point (x1,y1)(x1,y1).
Plug in the generic point into the equation y=mx+by=mx+b. The equation is
now, y1=mx1+by1=mx1+b, giving us the ordered pair,(x1,mx1+b)(x1,mx1+b). Then
plug this point into the point-slope equation and solve for yy to get:
y−(mx1+b)=m(x−x1)y−(mx1+b)=m(x−x1)
y−mx1−b=mx−mx1y−mx1−b=mx−mx1
y−mx1+mx1−b=mx−mx1+mx1y−mx1+mx1−b=mx−mx1+mx1
y−b=mxy−b=mx
y−b+b=mx+by−b+b=mx+b
y=mx+by=mx+b
Therefore, the two equations are equivalent and either one can express an equation of
a line depending on what information is given in the problem or what type of equation is
requested in the problem.
To switch this equation into slope-intercept form, solve the equation for yy:
y−1=−4(x−2)y−1=−4(x−2)
Distribute −4−4:
y−1=−4x+8y−1=−4x+8
y=−4x+9y=−4x+9
The equation has the same meaning whichever form it is in, and produces the same
graph.
Line graph: Graph of the line y−1=−4(x−2)y−1=−4(x−2), through the point (2,1)(2,1) with slope of −4−4, as
well as the slope-intercept form, y=−4x+9y=−4x+9.
Example: Write the equation of a line in point-slope form, given point (−3,6)(−3,6) and point (1,2)(1,2), and
convert to slope-intercept form
Since we have two points, but no slope, we must first find the slope:
m=y2−y1x2−x1m=y2−y1x2−x1
Now choose either of the two points, such as (−3,6)(−3,6). Plug this point and the
calculated slope into the point-slope equation to get:
y−6=−2[x−(−3)]y−6=−2[x−(−3)]
Be careful if one of the coordinates is a negative. Distributing the negative sign through
the parentheses, the final equation is:
y−6=−2(x+3)y−6=−2(x+3)
If you chose the other point, the equation would be: y+2=−2(x−1)y+2=−2(x−1) and
either answer is correct.
y−6=−2x−6y−6=−2x−6
y=−2xy=−2x
Again, the two forms of the equations are equivalent to each other and produce the
same line. The only difference is the form that they are written in.
A linear equation written in standard form makes it easy to calculate the zero, or xx-
intercept, of the equation.
LEARNING OBJECTIVES
Explain the process and usefulness of converting linear equations to standard form
KEY TAKEAWAYS
Key Points
Key Terms
zero: Also known as a root, a zero is an xx-value at which the function of xx is equal to 0.
slope-intercept form: A linear equation written in the form y=mx+by=mx+b.
y-intercept: A point at which a line crosses the y-axis of a Cartesian grid.
Standard Form
Standard form is another way of arranging a linear equation. In the standard form, a
linear equation is written as:
Ax+By=CAx+By=C
where AA and BB are both not equal to zero. The equation is usually written so
that A≥0A≥0, by convention. The graph of the equation is a straight line, and every
straight line can be represented by an equation in the standard form.
y+12x=5y+12x=5
Recall that a zero is a point at which a function ‘s value will be equal to zero ( y=0y=0),
and is the xx-intercept of the function. We know that the y-intercept of a linear equation
can easily be found by putting the equation in slope-intercept form. However, the zero of
the equation is not immediately obvious when the linear equation is in this form.
However, the zero, or xx-intercept of a linear equation can easily be found by putting it
into standard form.
For a linear equation in standard form, if AA is nonzero, then the xx-intercept occurs
at x=CAx=CA.
In this equation, the value of AA is 1, and the value of CC is 5. Therefore, the zero of
the equation occurs at x=51=5x=51=5. The zero is the point (5,0)(5,0).
Note that the yy-intercept and slope can also be calculated using the coefficients and
constant of the standard form equation. If BB is non-zero, then the y-intercept, that is
the y-coordinate of the point where the graph crosses the y-axis (where xx is zero),
is CBCB, and the slope of the line is −AB−AB.
We must write the equation in standard form, Ax+By=CAx+By=C, which means getting
the xx and yy terms on the left side, and the constants on the right side of the equation.
3y−6=14x+33y−6=14x+3
3y=14x+93y=14x+9
3y−14x=93y−14x=9
The equation is in standard form, and we can substitute the values for AA and CC into
the formula for the zero:
x=CA=93=3x=CA=93=3