Given the graph in the attached image;
A student wrote the equation as;
Let us plot the graph of the equation the student wrote.
From the graph above we can observe that it is different from the graph in the question.
The absolute value was meant to take effect at x<0.
So, the correct equation should be;
For the above