Find the range of the function \[f(x) = \left\{ \begin{aligned} x^2 & \quad \text{ if } x \le 0 \\ x^3 - 5 & \quad \text{ if } x > 0. \end{aligned} \right.\]
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Find the range of the function \[f(x) = \left\{ \begin{aligned} x^2 & \quad \text{ if } x \le 0 \\ x^3 - 5 & \quad \text{ if } x > 0. \end{aligned} \right.\]
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
(-5, \infty)
Find the range of the function \[f(x) = \left\{ \begin{aligned} x^2 & \quad \text{ if } x \le 0 \\ x^3 - 5 & \quad \text{ if } x > 0. \end{aligned} \right.\]
train