(1) When x>0,
f(x)⩾21g(x)⇔lnx⩾21(−x2+ax−3)⇔a⩽2lnx+x+x3. Let h(x)=2lnx+x+x3(x>0).
Then a⩽h(x)min .
By h′(x)=x2(x+3)(x−1), we know that the function h(x) is monotonically decreasing on the interval (0,1) and monotonically increasing on the interval (1,+∞).
Therefore, h(x)min=h(1)=4.
Hence, the range of a is (−∞,4].
(2) To prove lnx>ex1−ex2, we only need to prove
f(x)=xlnx>exx−e2.
By f′(x)=lnx+1, we know that f(x) is monotonically decreasing on the interval (0,e1) and monotonically increasing on the interval (e1,+∞).
Thus, when x>0,
f(x)⩾f(e1)=−e1.
Let φ(x)=exx−e2(x>0). Then
φ′(x)=ex1−x.
Therefore, φ(x) is monotonically increasing on the interval (0,1) and monotonically decreasing on the interval (1,+∞).
Thus, φ(x)⩽φ(1)=−e1.
Clearly, the equalities in (1) and (2) cannot hold simultaneously.
Hence, when x>0, f(x)>φ(x), i.e.,
lnx>ex1−ex2.