Question 149952
Remember the definition of absolute value function,
{{{abs(x)=x}}} if {{{x>0}}}
{{{abs(x)=-x}}} if {{{x<0}}}
.
.
.
{{{f(x)=2-abs(x)}}}
{{{f(x)=-x+2}}} if {{{x>0}}}
{{{f(x)=2-(-x)}}} if {{{x<0}}}
{{{f(x)=x+2}}} if {{{x<0}}}
Both are in slope intercept form and have a y-intercept of 2.
When x>0, slope is negative 1.
When x>0, slope is positive 1.
{{{drawing( 300, 300, -5, 5, -5, 5,grid( 1 ), green(circle(0,2,.2)),graph( 300, 300, -5, 5, -5, 5, 2-abs(x))) }}}