# How do you graph the function y=x-1?

Jun 24, 2018

y=a*x+b

#### Explanation:

It is a linear function.

Following the normal form of a linear function:

$f \left(x\right) = a x + b$

$y = a x + b$

you have:

$a = 1$ gradient
$b = - 1$ constant $x = 0$

Drawing:

Start with a point at $f \left(0\right) = b$

draw a straight line going one division to the right and a divisions up or down. (one up in your case)

graph{y=1*x-1 [-10, 10, -5, 5]}

Jun 24, 2018

$\text{see explanation}$

#### Explanation:

$\text{one way is to find the intercepts, that is where the graph}$
$\text{crosses the x and y axes}$

• " let x = 0, in the equation for y-intercept"

• " let y = 0, in the equation for x-intercept"

$x = 0 \Rightarrow y = - 1 \leftarrow \textcolor{red}{\text{y-intercept}}$

$y = 0 \Rightarrow x - 1 = 0 \Rightarrow x = 1 \leftarrow \textcolor{red}{\text{x-intercept}}$

$\text{plot the points "(0,-1)" and } \left(1 , 0\right)$

$\text{draw a straight line through them for graph}$
graph{(y-x+1)((x-0)^2+(y+1)^2-0.04)((x-1)^2+(y-0)^2-0.04)=0 [-10, 10, -5, 5]}