What Are Linear Functions?

Video Crash Courses

Want to watch animated videos and solve interactive exercises about linear functions?

Click here to try Video Crash Courses called “Linear Functions”!

Linear functions express straight lines. The straight lines can be gradual or steep, and they may go up (positive), go down (negative), or be horizontal. They are horizontal when the slope a = 0.

Formula

The Formula for Linear Functions

f(x) = ax + b,

where a is the slope of the line and b is called the constant term, and is the y-coordinate where the graph intersects the y-axis. The slope a tells you how much the graph increases or decreases when the x-value increases by 1.

The graph of a linear function with positive slope and negative constant term

The graph of a linear function with positive slope and negative constant term

Example 1

The function

f(x) = 0.5x + 2

tells you that the graph intersects the y-axis in the point (0, 2) and that the slope a = 0.5. That means that when x increases by 1, y decreases by 0.5. The graph is therefore sloping downwards from left to right. It looks like this:

Example of graph of linear function

Example of graph of linear function

Rule

Important Properties of the Linear Function

  • The slope a tells you how much the graph increases/decreases when x increases by 1.

  • If a > 0, then the graph slopes upwards from left to right, and if a < 0, it slopes downwards.

  • The graph intersects the y-axis at the point b.

  • The graph is a straight line with coordinates (x,y) = (x,f(x)).

Example 2

Chelsea Clinton had a babysitter when she was a kid. Her father, Bill, was a bit stingy and decided to pay the babysitter $7.50 per hour plus $5 for travel to their home. Find a function that shows how much Bill had to pay the babysitter for x hours.

You know that Bill has to pay $5 every time the babysitter comes to take care of Chelsea. You also know that he pays $7.50 per worked hour. The babysitter thus gets $7.50 for one hour, 7.50 $2 = $15 for two hours, and so on. Bill pays thus 7.50x dollars when the babysitter works x hours. The expression for how much Bill pays the babysitter looks like this:

y = 7.5x + 5

How much does Bill have to pay for the afternoon when he and Hillary have to go to a meeting at the White House and need a babysitter for 3 hours?

Here x = 3, so you get the following calculation:

y = 7.5 (3) + 5 = $27.50

The babysitter gets $27.50 for 3 hours of work.

The babysitter planned to go to a U2 concert a few hours after she had to babysit. Tickets for the concert cost $35. She forgot her wallet at home, and hoped that she would earn enough money during the afternoon to cover the ticket. How late do Bill and Hillary have to be in order for the babysitter to have enough money for the concert?

Here you know that the babysitter must earn at least $35 to be able to afford the ticket, meaning y = 35. What you need to find is how long she must babysit— that is, a value for x. You put in the value for y and solve the equation for x:

35 = 7.5x + 5 35 5 = 7.5x 30 = 7.5x | ÷ 7.5 x = 4

To be able to afford the concert, she had to babysit for four hours. So she hoped that Bill and Hillary were 4 3 = 1 hour late. If they were not, she would have to borrow money from a friend, or ask Bill for a pay rise.

You need two points to find the function of a line. If you know two points that are on the graph, you can use the two formulas below to find the slope a and the constant term b. The symbol Δ (delta) is a Greek letter. In mathematics you use it to describe change or difference. This means that you read the formula below as “a is equal to the change in y divided by the change in x”.

Formula

How to Find a Function From Two Points

The line through the points (x1,y1) and (x2,y2) has the slope

a = Δy Δx = y2 y1 x2 x1,

where y1 = f(x1) and y2 = f(x2).

Note! Study the figure closely!

Linear function from two points

Linear function from two points

To find the constant term b, you need to use the following formula:

b = y1 ax1.

Example 3

Find the slope of the line that goes through the points (5, 2) and (3, 6), and its intersection with the y-axis

You let (x1,y1) = (3, 6) and (x2,y2) = (5, 2). You would get the same result if you swap (x1,y1) and (x2,y2). By inserting those values into the formula, you get

a = y2 y1 x2 x1 = 2 6 5 3 = 4 2 = 2.

You now know that your line decreases by 2 when you move one place to the right. Let’s see what the intersection with the y-axis is:

b = y1 ax1 = 6 (2) 3 = 6 + 6 = 12

b = y1 ax1 = 6 (2) 3 = 6 + 6 = 12

The intersection with the y-axis is then (0, 12).

Want to know more?Sign UpIt's free!