Find a formula for , where .
Hint: may not be differentiable at or .

if
                if
                if

You can earn partial credit on this problem.