Let f:R→(0;+∞) be a continuous function such that x→−∞limf(x)=x→+∞limf(x)=0.
a) Prove that f(x) has the maximum value on R.
b) Prove that there exist two sequeneces (xn),(yn) with xn<yn,∀n=1,2,3,... such that they have the same limit when n tends to infinity and f(xn)=f(yn) for all n.