
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)=ax^{2}-(a+2)x+\ln x$, where $a\in \mathbb{R}$.  
(I) When $a=1$, find the equation of the tangent line at the point $(1,f(1))$ on the curve $y=f(x)$.  
(II) When $a > 0$, if the minimum value of $f(x)$ in the interval $[1,e]$ is $-2$, find the range of values for $a$.

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