Calculate limit of piecewise function

In summary, the limit of ##\frac{f(x)}{g(x)}## is 0 and l'Hospital's rule cannot be applied because ##f(x)## is not a differentiable function. To prove this limit, an ##\epsilon##-##\delta## argument can be used by considering the values of ##f(x)## on rational and irrational numbers or by using l'Hospital's rule on the function ##\frac{x^2}{\sin x}## and applying the result to the restricted domain of ##\mathbb{Q}##.
  • #1
lep11
380
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
  • #2
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.
 
  • #3
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:
  • #4
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.
 
  • #5
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:
  • #6
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).
 
  • #7
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##.
 
  • #8
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:
  • #9
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}##.
 

1. What is a piecewise function?

A piecewise function is a mathematical function that is defined by different equations or rules over different intervals. It is often used to model real-life situations that involve different conditions or scenarios.

2. How do I determine the limit of a piecewise function?

To calculate the limit of a piecewise function, you first need to determine the limiting behavior of each individual piece or interval. Then, you can use the same methods for finding limits of regular functions, such as direct substitution or algebraic manipulation, to find the overall limit.

3. Can a piecewise function have a limit at a point where its pieces are discontinuous?

Yes, a piecewise function can have a limit at a point where its pieces are discontinuous. This is because the limit only depends on the behavior of the function near that point and not necessarily on the function's value at that point.

4. What is the difference between a left-sided limit and a right-sided limit?

A left-sided limit is the limit of a function as the input approaches a specific value from the left side, while a right-sided limit is the limit as the input approaches from the right side. In other words, a left-sided limit only considers values that are smaller than the input, while a right-sided limit only considers values that are larger than the input.

5. Are there any special cases to consider when calculating the limit of a piecewise function?

Yes, there are a few special cases to consider when calculating the limit of a piecewise function. These include cases where the function is continuous at the point in question, cases where the function is discontinuous but the limit still exists, and cases where the function is discontinuous and the limit does not exist.

Similar threads

  • Calculus and Beyond Homework Help
Replies
10
Views
826
  • Calculus and Beyond Homework Help
Replies
9
Views
815
  • Calculus and Beyond Homework Help
Replies
3
Views
729
  • Calculus and Beyond Homework Help
Replies
12
Views
781
  • Calculus and Beyond Homework Help
Replies
34
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
750
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
914
  • Calculus and Beyond Homework Help
Replies
8
Views
661
  • Calculus and Beyond Homework Help
Replies
17
Views
1K
Back
Top