Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.


f,g are continuous functions. $\forall q\in\mathbb{Q}$ $f\left(q\right)\leq g\left(q\right)$

I need to prove that $\forall x\in\mathbb{R}$ $f\left(x\right)\leq g\left(x\right)$

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Pick $x\in\mathbb{R}\setminus\mathbb{Q}$.

Suppose $f(x)>g(x)$. Let $\varepsilon>0$ be less than the difference between $f(x)$ and $g(x)$. Then there exists $\delta>0$ such that if $w$ differs from $x$ by less than $\delta$, then $f(w)-g(w)$ differs from $f(x)-g(x)$ by less than $\varepsilon$. But some rational numbers are in the interval $(x-\delta,x+\delta)$, so we have a contradiction.

share|improve this answer
thank you, very nice explanation –  sony jimbo Jan 18 '12 at 20:28
add comment

Hint: Note that if $(x_n)_{n\in\mathbb{N}}$ is a convergent sequence of real numbers and $f,g$ are continuous functions, $\lim\limits_{n\to\infty} f(x_n)=f(\lim\limits_{n\to\infty}x_n)$ and $\lim\limits_{n\to\infty} g(x_n)=g(\lim\limits_{n\to\infty}x_n)$, and that for any real number $x$ we have some sequence $(x_n)_{n\in\mathbb{N}}$ of rational numbers that converges to it. How can we manipulate limits to show that $f(x)=f(\lim\limits_{n\to\infty}x_n)\leq g(\lim\limits_{n\to\infty}x_n)=g(x)$?

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.