Find a function f from R to R such that the limit of f(x) as x goes to a from the left…
- User
Find a function f from R to R such that the limit of f(x) as x goes to a from the left exists for all a, but for all a the limit of f(x) as x goes to a from the right does not exist.
- Assistant
To construct such a function ( f: \mathbb{R} \to \mathbb{R} ), we'll leverage the density of rational numbers in the real numbers and the oscillatory nature of the sine function.
First, list all rational numbers as ( { q_n }_{n=1}^\infty ) (since the rationals are countable, we can enumerate them). Now, define the function ( f(x) ) as:
[ f(x) = \sum_{n=1}^\infty \frac{1}{2^{|q_n|}} \sin\left( \frac{1}{(x - q_n)^2} \right) \quad \text{for all } x \in \mathbb{R}. ]
Here's why this ( f(x) ) satisfies the required properties:
-
Left-hand limits exist at all ( a \in \mathbb{R} ):
As ( x \to a^- ), the terms in the sum where ( q_n > x ) disappear because ( x - q_n \leq 0 ) for ( q_n > x ), making ( (x - q_n)^2 \geq 0 ), and we don't get the oscillatory behavior since we're squaring the denominator. The terms where ( q_n \leq x ) are continuous and sum to a finite value because there are only finitely many ( q_n \leq x ) in any interval ( (b, a) ) (since rationals are countable). Therefore, the left-hand limit exists.
-