Question 1092613
You can use a piecewise function.
Break up the function into three regions.
.
.
.
*[illustration dx10.JPG].
.
.
.
{{{x<0}}}, {{{m=-2}}}
{{{0<=x,=2}}},{{{m=0}}}
{{{x>2}}},{{{m=2}}}
So,
{{{x<0}}},
{{{y-2=-2(x-0)}}}
{{{y-2=-2x}}}
{{{y=-2x+2}}}
.
.
{{{0<=x<=2}}},
{{{y=2}}}
.
.
{{{x>2}}},
{{{y-2=2(x-2)}}}
{{{y-2=2x-4}}}
{{{y=2x-2}}}

.
.
.
*[illustration dx11.JPG].
.
.
.