Calculate limit of piecewise function

Click For Summary

Homework Help Overview

The discussion revolves around calculating the limit of a piecewise function defined as \( f(x) \) and \( g(x) = \sin x \) as \( x \) approaches 0. The function \( f(x) \) takes the value \( x^2 \) for rational \( x \) and 0 for irrational \( x \).

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the limit of \( \frac{f(x)}{g(x)} \) as \( x \) approaches 0, questioning the applicability of l'Hospital's rule due to the nature of \( f(x) \). Some suggest proving the limit using an \( \epsilon \)-\( \delta \) argument.

Discussion Status

The discussion is ongoing with various participants providing insights into the limit's behavior for rational and irrational inputs. Some have pointed out the need for a rigorous proof, while others have raised concerns about the validity of certain approaches, such as the use of l'Hospital's rule.

Contextual Notes

There is a focus on the continuity and differentiability of \( f(x) \), with participants noting that \( f(x) \) is continuous and differentiable only at \( x=0 \), which complicates the application of l'Hospital's rule. Additionally, there are discussions about the limitations of using \( \epsilon \)-\( \delta \) arguments in this context.

lep11
Messages
380
Reaction score
7

Homework Statement


a.) Let ##f,g:ℝ→ℝ## such that ##g(x)=sin x## and ##f(x)= \left\{
\begin{array}{ll}
x^2, x∈ℚ \\
0 , x∈ℝ\setminusℚ \\
\end{array}
\right. ##. Calculate ##\lim_{x \rightarrow 0} \frac{f(x)}{g(x)}##.

b.) Why l'Hospital rule cannot be applied here?

The Attempt at a Solution


##\lim_{x \rightarrow 0} sinx=0##[/B]

##\lim_{x \rightarrow 0} f(x)
=\left\{\begin{array}{ll}
0, x∈ℚ \\
0 , x∈ℝ\setminusℚ \\
\end{array}
\right. ##


How to begin? I suppose I cannot apply l'Hospital.
 
Last edited:
Physics news on Phys.org
If you think about the values of ##f(x)## just on rational values of ##x##, it should become apparent what the limit must be, if there is a limit. Call that number ##l##. Then prove that ##l## actually is the limit by an explicit ##\epsilon##-##\delta## argument.
 
andrewkirk said:
If you think about the values of ##f(x)## just on rational values of ##x##, it should become apparent what the limit must be, if there is a limit. Call that number ##l##. Then prove that ##l## actually is the limit by an explicit ##\epsilon##-##\delta## argument.
The limit of ##\frac{f(x)}{g(x)}## is 0, right?
 
Last edited:
lep11 said:

Homework Statement


a.) Let ##f,g:ℝ→ℝ## such that ##g(x)=sin x## and ##f(x)= \left\{
\begin{array}{ll}
x^2, x∈ℚ \\
0 , x∈ℝ\setminusℚ \\
\end{array}
\right. ##. Calculate ##\lim_{x \rightarrow 0} \frac{f(x)}{g(x)}##.

b.) Why l'Hospital rule cannot be applied here?

The Attempt at a Solution


##\lim_{x \rightarrow 0} sinx=0##[/B]

##\lim_{x \rightarrow 0} f(x)
=\left\{\begin{array}{ll}
0, x∈ℚ \\
0 , x∈ℝ\setminusℚ \\
\end{array}
\right. ##


How to begin? I suppose I cannot apply l'Hospital.

l'Hospital's rule does not apply because ##f(x)## is not a differentiable function.
 
Ray Vickson said:
l'Hospital's rule does not apply because ##f(x)## is not a differentiable function.
Yes, ##f## is continuous and differentiable only at x=0 which is not sufficient.
 
Last edited:
lep11 said:
##f## is continuous and differentiable only at x=0.
lep11 said:
Yes, ##f## is continuous and differentiable only at x=0 which is not sufficient.

Right, because l'Hospital's rule talks about ##\lim_{x \to 0} f'(x)##, not just ##f'(0)## (at least as it is usually presented).
 
lep11 said:
The limit of ##\frac{f(x)}{g(x)}## is 0, right?
You are correct. So now you need to prove it, using an ##\epsilon##-##\delta## argument. That is, prove that, for any ##\epsilon>0## you can find a ##\delta>0## such that ##|x|<\delta\Rightarrow\frac{f(x)}{g(x)}<\epsilon##.
 
If ##x∈ℝ\setminusℚ##, then ##\lim_{x \rightarrow 0}\frac{f(x)}{g(x)}=\lim_{x \rightarrow 0}\frac{0}{sinx}=\lim_{x \rightarrow 0}0=0## That's trivially true.

If ##x∈ℚ##, then ##\lim_{x \rightarrow 0}\frac{f(x)}{g(x)}=\lim_{x \rightarrow 0}\frac{x^2}{sinx}=0## (an educated guess)

Proof: Let ##ε>0## arbitrarily. Let ##δ=+\sqrt(ε|sinx|)##

##|\frac{x^2}{sinx}|=\frac{x^2}{|sinx|}<ε##, when ##|x|<δ=\sqrt(ε|sinx|)##.

My proof doesn't look very elegant, does it?
 
Last edited:
lep11 said:
Proof: Let ##ε>0## arbitrarily. Let ##δ=+\sqrt(ε|sinx|)##
##\delta## cannot be a function of ##x##, as ##x## is not defined in that context. You either need a more careful ##\epsilon##-##\delta## argument, or you can use l'Hopital on ##\frac{x^2}{\sin x}##, use that to infer an ##\epsilon##-##\delta## relationship and apply that to the restricted domain of ##\mathbb{Q}##.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
2K