Suppose, for contradiction, that no real number Cβ₯0 bounds β£gβ£ on [a,b]. Then for every natural number n there is tnββ[a,b] with β£g(tnβ)β£>n. The sequence (tnβ)nβNβ is a bounded sequence of real numbers, since aβ€tnββ€b for every n. By the Bolzano-Weierstrass theorem there are a subsequence (tnkββ)kβNβ and a real number tβ such that tnkβββtβ in the sense of convergence of real sequences.
First, tββ[a,b]. Indeed, if tβ>b, then taking Ξ΅=tββb>0 in the definition of convergence yields some k with β£tnkβββtββ£<Ξ΅, hence tnkββ>tββΞ΅=b, contradicting tnkβββ€b; the case tβ<a is excluded symmetrically.
Since g is continuous at tβ relative to [a,b], there is Ξ΄>0 such that β£g(t)βg(tβ)β£<1 for every tβ[a,b] with β£tβtββ£<Ξ΄. By convergence of the subsequence, choose k so large that both β£tnkβββtββ£<Ξ΄ and nkβ>β£g(tβ)β£+1 (the indices nkβ are strictly increasing, so nkββ₯k and such k exists). Then
β£g(tnkββ)β£β€β£g(tβ)β£+β£g(tnkββ)βg(tβ)β£<β£g(tβ)β£+1<nkβ<β£g(tnkββ)β£,
a contradiction. Hence some Cβ₯0 satisfies β£g(t)β£β€C for all tβ[a,b].