A linear function is a function with a constant rate of change. This is a polynomial with a degree of 1.
The function notation for lienar functions is f(x)=mx+b where x is the input value, m is the rate of change, and b is the initial value of the dependent variable. Note that this function notation comes from the linear equation form which is y=mx+b.
We can intrepret the slope as the rate of change of the function which is the change in the output values per unit of the input value. So given a function f, we can obtain the rate of change using the formula: m=x2−x1f(x2)−f(x1). This means to obtain the rate of change, we only need two points (x1,f(x1)) and (x2,f(x2)) from the function f.
The function f is an increasing function if m>0, a decreasing function if m<0 and a constant function if m=0. The graph of an increasing function slants upwards from left to right. Vice versa, the graph of a decreasing function slants downwards from left to right. Finally, a constant function means the graph is a horizontal line.
If we have the slope (which can be found using two points) and any point, we can find the equation of a line using the point-slope form: y−y1=m(x−x1). We can rewrite the equation after in slope-intercept form in order to put it in function notation.
If we have the y-intercept or starting value instead, we can just write it in slope-intercept form and then in function notation form.
Example
If f(x) is a linear function, with f(2)=−11 and f(4)=−25, write an equation for the function in slope-intercept form.
For any real world problem, we can model a linear function f if we are given the initial value and rate of change. Once we have determined these two values, we substitute b for the initial value and m for the rate of change in f(x)=mx+b. After this, we often may need to solve for f(c) which we can do by substituting x=c and evaluating using it.
Example
A new plant food was introduced to a young tree to test its effect on the height of the tree. The set of relations: {(0,12.5),(2,13.5),(4,14.5),(8,16.5),(12,18.5)} shows the height of the tree, in feet, x months since the measurements began. Write a linear function H(x), where x is the number of months since the start of the experiment. Also predict the height of the tree in 20 months.
m=x2−x1f(x2)−f(x1)=2−013.5−12.5=21
H(x)=mx+b=0.5x+12.5 where 12.5 is the initial value.
H(20)=0.5(20)+12.5=10+12.5=22.5
H(x)=0.5x+12.5 and in 20 months the tree will be 22.5 feet.
The graph of a linear function is a straight line. So, given at least two points, we can plot them on the grid and then draw a straight line through the points to get the graph of any linear function.
Example
Graph f(x)=−43x+6 by plotting points.
f(0)=−43(0)+6=0+6=6
f(4)=−43(4)+6=−3+6=3
We can plot (0,6) and (4,3) and draw a straight line between them to get the graph of f(x)=−43x+6.
Given the function f(x)=mx+b, b is the y-intercept of the graph which means it indicates the point (0,b) which we can plot onto the grid. We can then use the fact that m=runrise to plot the rest of the graph. We move rise units upwards and then run units to the right to plot our next point. We connect these points using a straight line after.
Example
Graph f(x)=−32x+5 using the y-intercept and slope.
We graph (0,5) and then use rise over run to get the rest of the graph.
We can graph f(x)=x and then vertically stretch or compress the graph by a factor of m. After this, we can shift the graph up or down b units.
Example
Graph f(x)=3x−2 using transformations.
Let the graph f(x)=x be represented by the red dashed line. After vertically stretching by 3, we get the green dashed line. Finally, we shift this graph down by 2 to get our final graph.
Finally, we can work backwards by using a graph to get the equation of the function. We first need to identify the y-intercept of the equation to get the value of b. After this we choose two points and use the slope formula to find the value of m. Finally, we can substitute m and b into the slope-intercept form to find the function of the line.
There are two special cases of straight line graphs: horizontal and vertical lines. A horizontal line is a line defined by an equation in the form f(x)=b and has the slope m=0. No matter the input value, the output value will stay the same. On the other hand, a vertical line is a line defined by an equation in the form x=a and has an undefined slope. A vertical line is not a function as there are an infinite number of outputs for one input.
Two lines are parallel lines if they do not intersect and this happens if the slopes of the lines are the same. In mathematical terms, the functions f(x)=m1x+b1 and g(x)=m2x+b2 are parallel if and only if m1=m2 and b1=b2. If both m1=m2 and b1=b2, then the lines coincide and coincident lines are the same line.
Two lines are perpendicular lines if they intersect to form a right angle. In mathematical terms, the function f(x)=m1x+b1 and g(x)=m2x+b2 are perpendicular if and only if m1m2=−1, so m2=−m11.