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

2 Answers
Jun 24, 2018

y=a*x+b

Explanation:

It is a linear function.

Following the normal form of a linear function:

#f(x)=ax+b#

#y=ax+b#

you have:

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

Drawing:

Start with a point at #f(0) = 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

#"see explanation"#

Explanation:

#"one way is to find the intercepts, that is where the graph"#
#"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=0rArry=-1larrcolor(red)"y-intercept"#

#y=0rArrx-1=0rArrx=1larrcolor(red)"x-intercept"#

#"plot the points "(0,-1)" and "(1,0)#

#"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]}