
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) = e^x(x^2 + x + a)$, where the tangent line at the point $(0, f(0))$ is parallel to the line $2x - y - 3 = 0$, and $a \in \mathbb{R}$.

(1) Find the value of $a$;  
(2) Find the maximum and minimum values of the function $f(x)$ in the interval $[-2, 2]$.

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