
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
Find all functions \( f: \mathbf{R} \rightarrow \mathbf{R} \) such that for any \( x, y \in \mathbf{R} \), the following equation holds:
$$
f\left(x^{2}+f(y)\right)=f(f(x))+f\left(y^{2}\right)+2 f(x y).
$$

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