Help with homework please Use a coefficient of +1 or -1 answer in the form of an equation

Given the graph of an absolute function:
As shown the vertex is the point (1,0)
and the function passes through the point (4,3)
the slope of the line will be as follows:
[tex]slope=\frac{rise}{run}=\frac{y_2-y_1}{x_2-x_1}=\frac{3-0}{4-1}=\frac{3}{3}=+1[/tex]so, the equation of the function will be:
[tex]y=|x-1|[/tex]