# 2.2 Graphs of linear functions

 Page 1 / 15
In this section, you will:
• Graph linear functions.
• Write the equation for a linear function from the graph of a line.
• Given the equations of two lines, determine whether their graphs are parallel or perpendicular.
• Write the equation of a line parallel or perpendicular to a given line.
• Solve a system of linear equations.

Two competing telephone companies offer different payment plans. The two plans charge the same rate per long distance minute, but charge a different monthly flat fee. A consumer wants to determine whether the two plans will ever cost the same amount for a given number of long distance minutes used. The total cost of each payment plan can be represented by a linear function. To solve the problem, we will need to compare the functions. In this section, we will consider methods of comparing functions using graphs.

## Graphing linear functions

In Linear Functions , we saw that that the graph of a linear function is a straight line. We were also able to see the points of the function as well as the initial value from a graph. By graphing two functions, then, we can more easily compare their characteristics.

There are three basic methods of graphing linear functions. The first is by plotting points and then drawing a line through the points. The second is by using the y- intercept and slope. And the third is by using transformations of the identity function $f\left(x\right)=x.$

## Graphing a function by plotting points

To find points of a function, we can choose input values, evaluate the function at these input values, and calculate output values. The input values and corresponding output values form coordinate pairs. We then plot the coordinate pairs on a grid. In general, we should evaluate the function at a minimum of two inputs in order to find at least two points on the graph. For example, given the function, $f\left(x\right)=2x,$ we might use the input values 1 and 2. Evaluating the function for an input value of 1 yields an output value of 2, which is represented by the point $\left(1,2\right).$ Evaluating the function for an input value of 2 yields an output value of 4, which is represented by the point $\left(2,4\right).$ Choosing three points is often advisable because if all three points do not fall on the same line, we know we made an error.

Given a linear function, graph by plotting points.

1. Choose a minimum of two input values.
2. Evaluate the function at each input value.
3. Use the resulting output values to identify coordinate pairs.
4. Plot the coordinate pairs on a grid.
5. Draw a line through the points.

## Graphing by plotting points

Graph $f\left(x\right)=-\frac{2}{3}x+5$ by plotting points.

Begin by choosing input values. This function includes a fraction with a denominator of 3, so let’s choose multiples of 3 as input values. We will choose 0, 3, and 6.

Evaluate the function at each input value, and use the output value to identify coordinate pairs.

$\begin{array}{ccc}x=0& & f\left(0\right)=-\frac{2}{3}\left(0\right)+5=5⇒\left(0,5\right)\\ x=3& & f\left(3\right)=-\frac{2}{3}\left(3\right)+5=3⇒\left(3,3\right)\\ x=6& & f\left(6\right)=-\frac{2}{3}\left(6\right)+5=1⇒\left(6,1\right)\end{array}$

Plot the coordinate pairs and draw a line through the points. [link] represents the graph of the function $f\left(x\right)=-\frac{2}{3}x+5.$

How can you tell what type of parent function a graph is ?
generally by how the graph looks and understanding what the base parent functions look like and perform on a graph
William
if you have a graphed line, you can have an idea by how the directions of the line turns, i.e. negative, positive, zero
William
y=x will obviously be a straight line with a zero slope
William
y=x^2 will have a parabolic line opening to positive infinity on both sides of the y axis vice versa with y=-x^2 you'll have both ends of the parabolic line pointing downward heading to negative infinity on both sides of the y axis
William
y=x will be a straight line, but it will have a slope of one. Remember, if y=1 then x=1, so for every unit you rise you move over positively one unit. To get a straight line with a slope of 0, set y=1 or any integer.
Aaron
yes, correction on my end, I meant slope of 1 instead of slope of 0
William
what is f(x)=
I don't understand
Joe
Typically a function 'f' will take 'x' as input, and produce 'y' as output. As 'f(x)=y'. According to Google, "The range of a function is the complete set of all possible resulting values of the dependent variable (y, usually), after we have substituted the domain."
Thomas
Sorry, I don't know where the "Â"s came from. They shouldn't be there. Just ignore them. :-)
Thomas
Darius
Thanks.
Thomas
Â
Thomas
It is the Â that should not be there. It doesn't seem to show if encloses in quotation marks. "Â" or 'Â' ... Â
Thomas
Now it shows, go figure?
Thomas
what is this?
i do not understand anything
unknown
lol...it gets better
Darius
I've been struggling so much through all of this. my final is in four weeks 😭
Tiffany
this book is an excellent resource! have you guys ever looked at the online tutoring? there's one that is called "That Tutor Guy" and he goes over a lot of the concepts
Darius
thank you I have heard of him. I should check him out.
Tiffany
is there any question in particular?
Joe
I have always struggled with math. I get lost really easy, if you have any advice for that, it would help tremendously.
Tiffany
Sure, are you in high school or college?
Darius
Hi, apologies for the delayed response. I'm in college.
Tiffany
how to solve polynomial using a calculator
So a horizontal compression by factor of 1/2 is the same as a horizontal stretch by a factor of 2, right?
The center is at (3,4) a focus is at (3,-1), and the lenght of the major axis is 26
The center is at (3,4) a focus is at (3,-1) and the lenght of the major axis is 26 what will be the answer?
Rima
I done know
Joe
What kind of answer is that😑?
Rima
I had just woken up when i got this message
Joe
Rima
i have a question.
Abdul
how do you find the real and complex roots of a polynomial?
Abdul
@abdul with delta maybe which is b(square)-4ac=result then the 1st root -b-radical delta over 2a and the 2nd root -b+radical delta over 2a. I am not sure if this was your question but check it up
Nare
This is the actual question: Find all roots(real and complex) of the polynomial f(x)=6x^3 + x^2 - 4x + 1
Abdul
@Nare please let me know if you can solve it.
Abdul
I have a question
juweeriya
hello guys I'm new here? will you happy with me
mustapha
The average annual population increase of a pack of wolves is 25.
how do you find the period of a sine graph
Period =2π if there is a coefficient (b), just divide the coefficient by 2π to get the new period
Am
if not then how would I find it from a graph
Imani
by looking at the graph, find the distance between two consecutive maximum points (the highest points of the wave). so if the top of one wave is at point A (1,2) and the next top of the wave is at point B (6,2), then the period is 5, the difference of the x-coordinates.
Am
you could also do it with two consecutive minimum points or x-intercepts
Am
I will try that thank u
Imani
Case of Equilateral Hyperbola
ok
Zander
ok
Shella
f(x)=4x+2, find f(3)
Benetta
f(3)=4(3)+2 f(3)=14
lamoussa
14
Vedant
pre calc teacher: "Plug in Plug in...smell's good" f(x)=14
Devante
8x=40
Chris
Explain why log a x is not defined for a < 0
the sum of any two linear polynomial is what
Momo
how can are find the domain and range of a relations
the range is twice of the natural number which is the domain
Morolake
A cell phone company offers two plans for minutes. Plan A: $15 per month and$2 for every 300 texts. Plan B: $25 per month and$0.50 for every 100 texts. How many texts would you need to send per month for plan B to save you money?
6000
Robert
more than 6000
Robert
For Plan A to reach $27/month to surpass Plan B's$26.50 monthly payment, you'll need 3,000 texts which will cost an additional \$10.00. So, for the amount of texts you need to send would need to range between 1-100 texts for the 100th increment, times that by 3 for the additional amount of texts...
Gilbert
...for one text payment for 300 for Plan A. So, that means Plan A; in my opinion is for people with text messaging abilities that their fingers burn the monitor for the cell phone. While Plan B would be for loners that doesn't need their fingers to due the talking; but those texts mean more then...
Gilbert
can I see the picture