Help memorizing piecewise defined formula?