
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 point $P(4,1)$, a line $l$ passes through it and intersects the positive semi-axes of the $x$ and $y$ axes at points $A$ and $B$ respectively.

(1) Find the equation of line $l$ when the area of $\triangle AOB$ is minimized.

(2) Find the equation of line $l$ when the sum $OA+OB$ is minimized.

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