
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f(x)=(x^2+mx)e^x$, where $e$ is the base of natural logarithms.  
(1) When $m=-2$, find the intervals of $x$ where $f(x)$ is monotonically increasing;  
(2) If the function $f(x)$ is monotonically decreasing on the interval $[1,3]$, find the range of $m$.

Present the answer in LaTex format: \boxed{Your answer}
user