8. The minimum value of the function $y=|x-3|-|x+1|$ is

保留了源文本的换行和格式。
8. -4 . Convert the original function into a piecewise function.



The above text has been translated into English, retaining the original text's line breaks and format.