Skip to content

Linear function

A linear function is a straight line. Enter the slope and the y-intercept — or two points — and see the line, the table and the intercepts.

Your numbers

What do you know?
Axes from − to +

Answer

The equation

y = 2x − 1

x-intercept

(0.5 ; 0)

y-intercept

(0 ; -1)

xy-10-10-5-5551010

How to work it out

  1. 1y = 2x − 1
  2. 2x-intercept: 0 = 2x + -1 ⇒ x = 0.5
  3. 3y-intercept: (0 ; -1)

The formula

y = a · x + b

a is the slope: how much y rises when x increases by 1. b is where the line crosses the y-axis.

a = (y₂ − y₁) / (x₂ − x₁)

The slope from two points on the line.

Table

x-3-2-10123
y-7-5-3-1135

More: Equations and functions

4