
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 that the function $f(x) = \frac{3e^{|x|}-x\cos x}{e^{|x|}}$ has a maximum value of $p$ and a minimum value of $q$ on the interval $x \in [-\frac{\pi}{2}, \frac{\pi}{2}]$, determine the value of $p + q$.

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