
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 eccentricity of the ellipse $C:\frac{x^{2}}{a^{2}}+\frac{y^{2}}{b^{2}}=1(a > b > 0)$ is $\frac{\sqrt{2}}{2}$, and it passes through the point $P(\sqrt{2},1)$. The line $y=\frac{\sqrt{2}}{2}x+m$ intersects the ellipse at two points $A$ and $B$.
(1) Find the equation of the ellipse $C$;   (2) Find the maximum area of $\triangle PAB$.

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