
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{x}{e^{x}}+x^{2}-x$ (where $e=2.71828\cdots$),

(I) Find the equation of the tangent line to $f(x)$ at the point $(1,f(1))$;

(II) Given the function $g(x)=-a\ln[f(x)-x^{2}+x]-\frac{1}{x}-\ln x+a+1$, if $x\geqslant 1$, then $g(x)\geqslant 0$. Find the range of values for the real number $a$.

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