
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)=\frac{m}{3}x^3 + mx^2 - 3mx + m - 1$, where $x \in \mathbb{R}$ and $m \in \mathbb{R}$.

(1) Find the equation of the tangent line to $f(x)$ at the point $(3,9)$ when $m=1$.

(2) Discuss and find the monotonic intervals of function $f(x)$ when $m \neq 0$.

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