How would one separate a function like the following into piecewise?
$$f(x)={\left|4-x\right|\over{\left|x-4\right|}}$$
I've been taught that with a rational function with an absolute value in the numerator only, one does the following:
$$g(x)={{\left|4-x\right|\over{x-4}} = \begin{cases}{4-x\over{x-4}} & x<4 \\ {-(4-x)\over{x-4}} & x>4 \end{cases}}$$
Eventually, of course, the pieces would be simplified, but I'll leave it like that for simplicity's sake.
Meanwhile, with an absolute value over an absolute value, I can't find the correct piecewise. When I take the limit of the function, I should get the answer $1$, but I can't do so without graphing the problem. Is there any way to create a correct piecewise version of this function?