Are there continuous functions who are the same in an interval but differ in at least one other point?












10












$begingroup$


You are given a function $f: mathbb{R}rightarrow mathbb{R}$. Every derivative $frac{d^n}{dx^n}(f(x)), ,n >0$ of the function is continuous.



Is there a function $g: mathbb{R}rightarrow mathbb{R}$, for which every derivative $frac{d^n}{dx^n}(g(x)), ,n >0$ is also continuous, such that:
$$forall xin[a,b]: , g(x) = f(x)land , exists x notin [a,b]: f(x) neq g(x),, a neq b$$



Thanks!










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    FYI, this can't happen with complex-differentiable $f: mathbb{C} to mathbb{C}$. Such functions are immediately infinitely often differentiable, so it indeed matches your setting. If two complex-differentiable functions agree on an open set, they already agree everywhere on their domain.
    $endgroup$
    – ComFreek
    yesterday












  • $begingroup$
    How to proof that?
    $endgroup$
    – TVSuchty
    yesterday
















10












$begingroup$


You are given a function $f: mathbb{R}rightarrow mathbb{R}$. Every derivative $frac{d^n}{dx^n}(f(x)), ,n >0$ of the function is continuous.



Is there a function $g: mathbb{R}rightarrow mathbb{R}$, for which every derivative $frac{d^n}{dx^n}(g(x)), ,n >0$ is also continuous, such that:
$$forall xin[a,b]: , g(x) = f(x)land , exists x notin [a,b]: f(x) neq g(x),, a neq b$$



Thanks!










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    FYI, this can't happen with complex-differentiable $f: mathbb{C} to mathbb{C}$. Such functions are immediately infinitely often differentiable, so it indeed matches your setting. If two complex-differentiable functions agree on an open set, they already agree everywhere on their domain.
    $endgroup$
    – ComFreek
    yesterday












  • $begingroup$
    How to proof that?
    $endgroup$
    – TVSuchty
    yesterday














10












10








10


1



$begingroup$


You are given a function $f: mathbb{R}rightarrow mathbb{R}$. Every derivative $frac{d^n}{dx^n}(f(x)), ,n >0$ of the function is continuous.



Is there a function $g: mathbb{R}rightarrow mathbb{R}$, for which every derivative $frac{d^n}{dx^n}(g(x)), ,n >0$ is also continuous, such that:
$$forall xin[a,b]: , g(x) = f(x)land , exists x notin [a,b]: f(x) neq g(x),, a neq b$$



Thanks!










share|cite|improve this question











$endgroup$




You are given a function $f: mathbb{R}rightarrow mathbb{R}$. Every derivative $frac{d^n}{dx^n}(f(x)), ,n >0$ of the function is continuous.



Is there a function $g: mathbb{R}rightarrow mathbb{R}$, for which every derivative $frac{d^n}{dx^n}(g(x)), ,n >0$ is also continuous, such that:
$$forall xin[a,b]: , g(x) = f(x)land , exists x notin [a,b]: f(x) neq g(x),, a neq b$$



Thanks!







real-analysis calculus






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 2 days ago









ZeroXLR

1,657620




1,657620










asked 2 days ago









TVSuchtyTVSuchty

856




856








  • 2




    $begingroup$
    FYI, this can't happen with complex-differentiable $f: mathbb{C} to mathbb{C}$. Such functions are immediately infinitely often differentiable, so it indeed matches your setting. If two complex-differentiable functions agree on an open set, they already agree everywhere on their domain.
    $endgroup$
    – ComFreek
    yesterday












  • $begingroup$
    How to proof that?
    $endgroup$
    – TVSuchty
    yesterday














  • 2




    $begingroup$
    FYI, this can't happen with complex-differentiable $f: mathbb{C} to mathbb{C}$. Such functions are immediately infinitely often differentiable, so it indeed matches your setting. If two complex-differentiable functions agree on an open set, they already agree everywhere on their domain.
    $endgroup$
    – ComFreek
    yesterday












  • $begingroup$
    How to proof that?
    $endgroup$
    – TVSuchty
    yesterday








2




2




$begingroup$
FYI, this can't happen with complex-differentiable $f: mathbb{C} to mathbb{C}$. Such functions are immediately infinitely often differentiable, so it indeed matches your setting. If two complex-differentiable functions agree on an open set, they already agree everywhere on their domain.
$endgroup$
– ComFreek
yesterday






$begingroup$
FYI, this can't happen with complex-differentiable $f: mathbb{C} to mathbb{C}$. Such functions are immediately infinitely often differentiable, so it indeed matches your setting. If two complex-differentiable functions agree on an open set, they already agree everywhere on their domain.
$endgroup$
– ComFreek
yesterday














$begingroup$
How to proof that?
$endgroup$
– TVSuchty
yesterday




$begingroup$
How to proof that?
$endgroup$
– TVSuchty
yesterday










2 Answers
2






active

oldest

votes


















16












$begingroup$

Define the real functions $f$ and $g$ thus:
$$
f(x) = begin{cases} expBig(-frac{1}{(x - 1)^2}Big) &text{if } x > 1 \
0 &text{if } x in [-1, 1] \
expBig(-frac{1}{(x + 1)^2}Big) &text{if } x < -1
end{cases}
$$
and
$g(x) = 0$. $f$ and $g$ are both $0$ on $[-1, 1]$ but they differ in value everywhere else.



Obviously $g$ is continuously differentiable infinitely many times as it is a constant function. You can also check that $f$ is continuously differentiable infinitely many times at $x = -1$ and $x = 1$ by applying L'Hôpital's rule inductively (Edit: A more elementary demonstration is given below based on the exponential series). Checking this is a fine exercise in Real Analysis; you should try it. Here is a first taste of it:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= limlimits_{x to 1^+}frac{2expbig(- frac{1}{(x - 1)^2}big)}{(x - 1)^3} \
&= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{this limit is of the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 2 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-3}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 2 lim_{x to 1^+}frac{-3(x - 1)^{-4}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= 3lim_{x to 1^+}frac{(x - 1)^{-1}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{again, this has the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 3 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-1}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 3 lim_{x to 1^+}frac{-(x - 1)^{-2}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= frac{3}{2} lim_{x to 1^+}frac{x - 1}{expbig(frac{1}{(x - 1)^2}big)} \
&= frac{3}{2} lim_{x to 1^+} Big[(x - 1)expBig(-frac{1}{(x - 1)^2}Big)Big] \
&= frac{3}{2} Big[lim_{x to 1^+} (x - 1)Big] Big[lim_{x to 1^+} expBig(-frac{1}{(x - 1)^2}Big)Big] = frac{3}{2} times 0 times 0 = 0
end{align*}
That was a long calculation but take my word: it can be repeated inductively to show that $limlimits_{x to 1+}frac{d^nf}{dx^n} = 0$ for all $n in mathbb{Z}_+!$ At all other points i.e. on $(-infty, -1) cup (-1, 1) cup (1, infty)$, $f$ is infinitely differentiable because exponentials and constant functions are infinitely differentiable.



Bonus Fact:



Both $frac{d^n f(x)}{dx^n}$ and $frac{d^n g(x)}{dx^n}$ also have the same value $0$ on $[-1, 1]$ for all positive integers $n$!



Edit:



A more elementary way of seeing $lim_{x to 1^+}frac{df(x)}{dx} = 0$ is as follows:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} \
&= 2lim_{y to +infty}frac{y^3}{expbig(y^2big)} quadtext{ changing variables to }y = frac{1}{x - 1} \
&= 2lim_{y to +infty}frac{y^3}{sumlimits_{n = 0}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{y^3}{1 + y^2 + frac{y^4}{2} + sumlimits_{n = 3}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{1}{frac{1}{y^3} + frac{1}{y} + frac{y}{2} + sumlimits_{n = 3}^infty frac{y^{2n - 3}}{n!}} quadtext{ dividing top and bottom by }y^3 \
&= 2 times 0 = 0
end{align*}
Essentially, the top term $1$, which remains constant, is a sitting duck. Meanwhile the bottom term blows up to infinity because in the bottom, only two terms ($frac{1}{y^3}$ and $frac{1}{y}$) go to zero as $y$ becomes large. The rest of the terms ($frac{y}{2}$ and $frac{y^{2n - 3}}{n!}$ for $n in mathbb{Z_+} geq 3$) have at least a $y$ in the numerator and since no cancellation happens (all terms are positive), their sum becomes arbitrarily large and the overall ratio becomes arbitrarily small.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
    $endgroup$
    – TVSuchty
    2 days ago








  • 2




    $begingroup$
    It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
    $endgroup$
    – ZeroXLR
    2 days ago








  • 1




    $begingroup$
    I am stunned. Do you know of more complex solutions?
    $endgroup$
    – TVSuchty
    2 days ago






  • 1




    $begingroup$
    @TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
    $endgroup$
    – uhhhhidk
    2 days ago






  • 1




    $begingroup$
    We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
    $endgroup$
    – DanielWainfleet
    yesterday





















4












$begingroup$

Sure. In fact, there is a whole class of functions which not only exist, but are specifically made to do something that effectively implies exactly what you are looking for: they are called bump functions, and are defined as smooth (differentiable everywhere, arbitrarily many times) functions that have compact support, meaning (almost) that they are zero everywhere except on a compact set, which for the real numbers as domain basically means a closed, bounded (i.e. contained within an interval) subset thereof, such as a closed interval. This compact set where they are nonzero is called the "support". The trick is to exploit the "everywhere else zero"-ness, as that gives you what you're after.



Namely, any two different (i.e. not equal) bump functions with the same supporting interval $[a, b]$, will be smooth, zero on any interval outside this interval, and yet different, because they differ on such interval. More generally, given any two different bump functions, period, you just have to find an interval outside both of their support sets, which is always possible because they are both bounded.



A simple example of such a bump function is



$$mathrm{bump}: mathbb{R} rightarrow mathbb{R}, mathrm{bump}(x) := begin{cases} e^{-frac{1}{1 - x^2}}, mbox{when $x$ is in $(-1, 1)$}\ 0, mbox{otherwise} end{cases}$$



Then consider just $mathrm{bump}(x)$ and a nonzero multiple thereof, say, $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$. We now have $mathrm{bump}(x) = mathrm{bump2}(x)$ when, say, $x in [10, 11]$, since they are both zero there. Yet, they are ostensibly not equal when $x$ is in $(-1, 1)$.



ADD: It appears to have been asked as to how one can do this without explicitly constructing the bump function. The above is just to show (not completely thoroughly) that bump functions exist. Indeed, we can do so as well. Let now $mathrm{bump}(x)$ be a general bump function. Let its support set be $mathrm{supp}[mathrm{bump}]$. That is,



$$mathrm{supp}[mathrm{bump}] := mathrm{cl}left({ x in mathbb{R} : mathrm{bump}(x) ne 0 }right)$$



(n.b. "cl" means to take the closure; basically this includes all "endpoints" of regions in which it is nonzero, even if it is zero at those endpoints - e.g. the support of the just-given-explicitly bump function is $[-1, 1]$, not $(-1, 1)$. This is a bit of technicality that was wrapped earlier when I said "almost" in "meaning (almost)" above.)



Since the support set is bounded and closed, it has a maximum and minimum (largest and smallest element): assign $M := mathrm{max} mathrm{supp}[mathrm{bump}]$. Now consider the interval $mathrm{ext ival} := [M+1, M+2]$. If $x in mathrm{ext ival}$, then it is clearly not in the support set, but rather to the right of it. Thus $mathrm{bump}(x) = 0$ there. Now set $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$ as before (if you want even more generality, just replace $2$ with an arbitrary vertical rescaling coefficient $a$ that is not $0$ or $1$). Congrats, you now have two bump functions that are unequal but equal on the external interval $mathrm{ext ival}$.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
    $endgroup$
    – TVSuchty
    yesterday






  • 2




    $begingroup$
    @TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
    $endgroup$
    – The_Sympathizer
    yesterday






  • 1




    $begingroup$
    @TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
    $endgroup$
    – The_Sympathizer
    yesterday












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3185630%2fare-there-continuous-functions-who-are-the-same-in-an-interval-but-differ-in-at%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









16












$begingroup$

Define the real functions $f$ and $g$ thus:
$$
f(x) = begin{cases} expBig(-frac{1}{(x - 1)^2}Big) &text{if } x > 1 \
0 &text{if } x in [-1, 1] \
expBig(-frac{1}{(x + 1)^2}Big) &text{if } x < -1
end{cases}
$$
and
$g(x) = 0$. $f$ and $g$ are both $0$ on $[-1, 1]$ but they differ in value everywhere else.



Obviously $g$ is continuously differentiable infinitely many times as it is a constant function. You can also check that $f$ is continuously differentiable infinitely many times at $x = -1$ and $x = 1$ by applying L'Hôpital's rule inductively (Edit: A more elementary demonstration is given below based on the exponential series). Checking this is a fine exercise in Real Analysis; you should try it. Here is a first taste of it:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= limlimits_{x to 1^+}frac{2expbig(- frac{1}{(x - 1)^2}big)}{(x - 1)^3} \
&= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{this limit is of the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 2 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-3}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 2 lim_{x to 1^+}frac{-3(x - 1)^{-4}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= 3lim_{x to 1^+}frac{(x - 1)^{-1}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{again, this has the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 3 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-1}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 3 lim_{x to 1^+}frac{-(x - 1)^{-2}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= frac{3}{2} lim_{x to 1^+}frac{x - 1}{expbig(frac{1}{(x - 1)^2}big)} \
&= frac{3}{2} lim_{x to 1^+} Big[(x - 1)expBig(-frac{1}{(x - 1)^2}Big)Big] \
&= frac{3}{2} Big[lim_{x to 1^+} (x - 1)Big] Big[lim_{x to 1^+} expBig(-frac{1}{(x - 1)^2}Big)Big] = frac{3}{2} times 0 times 0 = 0
end{align*}
That was a long calculation but take my word: it can be repeated inductively to show that $limlimits_{x to 1+}frac{d^nf}{dx^n} = 0$ for all $n in mathbb{Z}_+!$ At all other points i.e. on $(-infty, -1) cup (-1, 1) cup (1, infty)$, $f$ is infinitely differentiable because exponentials and constant functions are infinitely differentiable.



Bonus Fact:



Both $frac{d^n f(x)}{dx^n}$ and $frac{d^n g(x)}{dx^n}$ also have the same value $0$ on $[-1, 1]$ for all positive integers $n$!



Edit:



A more elementary way of seeing $lim_{x to 1^+}frac{df(x)}{dx} = 0$ is as follows:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} \
&= 2lim_{y to +infty}frac{y^3}{expbig(y^2big)} quadtext{ changing variables to }y = frac{1}{x - 1} \
&= 2lim_{y to +infty}frac{y^3}{sumlimits_{n = 0}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{y^3}{1 + y^2 + frac{y^4}{2} + sumlimits_{n = 3}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{1}{frac{1}{y^3} + frac{1}{y} + frac{y}{2} + sumlimits_{n = 3}^infty frac{y^{2n - 3}}{n!}} quadtext{ dividing top and bottom by }y^3 \
&= 2 times 0 = 0
end{align*}
Essentially, the top term $1$, which remains constant, is a sitting duck. Meanwhile the bottom term blows up to infinity because in the bottom, only two terms ($frac{1}{y^3}$ and $frac{1}{y}$) go to zero as $y$ becomes large. The rest of the terms ($frac{y}{2}$ and $frac{y^{2n - 3}}{n!}$ for $n in mathbb{Z_+} geq 3$) have at least a $y$ in the numerator and since no cancellation happens (all terms are positive), their sum becomes arbitrarily large and the overall ratio becomes arbitrarily small.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
    $endgroup$
    – TVSuchty
    2 days ago








  • 2




    $begingroup$
    It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
    $endgroup$
    – ZeroXLR
    2 days ago








  • 1




    $begingroup$
    I am stunned. Do you know of more complex solutions?
    $endgroup$
    – TVSuchty
    2 days ago






  • 1




    $begingroup$
    @TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
    $endgroup$
    – uhhhhidk
    2 days ago






  • 1




    $begingroup$
    We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
    $endgroup$
    – DanielWainfleet
    yesterday


















16












$begingroup$

Define the real functions $f$ and $g$ thus:
$$
f(x) = begin{cases} expBig(-frac{1}{(x - 1)^2}Big) &text{if } x > 1 \
0 &text{if } x in [-1, 1] \
expBig(-frac{1}{(x + 1)^2}Big) &text{if } x < -1
end{cases}
$$
and
$g(x) = 0$. $f$ and $g$ are both $0$ on $[-1, 1]$ but they differ in value everywhere else.



Obviously $g$ is continuously differentiable infinitely many times as it is a constant function. You can also check that $f$ is continuously differentiable infinitely many times at $x = -1$ and $x = 1$ by applying L'Hôpital's rule inductively (Edit: A more elementary demonstration is given below based on the exponential series). Checking this is a fine exercise in Real Analysis; you should try it. Here is a first taste of it:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= limlimits_{x to 1^+}frac{2expbig(- frac{1}{(x - 1)^2}big)}{(x - 1)^3} \
&= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{this limit is of the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 2 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-3}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 2 lim_{x to 1^+}frac{-3(x - 1)^{-4}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= 3lim_{x to 1^+}frac{(x - 1)^{-1}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{again, this has the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 3 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-1}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 3 lim_{x to 1^+}frac{-(x - 1)^{-2}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= frac{3}{2} lim_{x to 1^+}frac{x - 1}{expbig(frac{1}{(x - 1)^2}big)} \
&= frac{3}{2} lim_{x to 1^+} Big[(x - 1)expBig(-frac{1}{(x - 1)^2}Big)Big] \
&= frac{3}{2} Big[lim_{x to 1^+} (x - 1)Big] Big[lim_{x to 1^+} expBig(-frac{1}{(x - 1)^2}Big)Big] = frac{3}{2} times 0 times 0 = 0
end{align*}
That was a long calculation but take my word: it can be repeated inductively to show that $limlimits_{x to 1+}frac{d^nf}{dx^n} = 0$ for all $n in mathbb{Z}_+!$ At all other points i.e. on $(-infty, -1) cup (-1, 1) cup (1, infty)$, $f$ is infinitely differentiable because exponentials and constant functions are infinitely differentiable.



Bonus Fact:



Both $frac{d^n f(x)}{dx^n}$ and $frac{d^n g(x)}{dx^n}$ also have the same value $0$ on $[-1, 1]$ for all positive integers $n$!



Edit:



A more elementary way of seeing $lim_{x to 1^+}frac{df(x)}{dx} = 0$ is as follows:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} \
&= 2lim_{y to +infty}frac{y^3}{expbig(y^2big)} quadtext{ changing variables to }y = frac{1}{x - 1} \
&= 2lim_{y to +infty}frac{y^3}{sumlimits_{n = 0}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{y^3}{1 + y^2 + frac{y^4}{2} + sumlimits_{n = 3}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{1}{frac{1}{y^3} + frac{1}{y} + frac{y}{2} + sumlimits_{n = 3}^infty frac{y^{2n - 3}}{n!}} quadtext{ dividing top and bottom by }y^3 \
&= 2 times 0 = 0
end{align*}
Essentially, the top term $1$, which remains constant, is a sitting duck. Meanwhile the bottom term blows up to infinity because in the bottom, only two terms ($frac{1}{y^3}$ and $frac{1}{y}$) go to zero as $y$ becomes large. The rest of the terms ($frac{y}{2}$ and $frac{y^{2n - 3}}{n!}$ for $n in mathbb{Z_+} geq 3$) have at least a $y$ in the numerator and since no cancellation happens (all terms are positive), their sum becomes arbitrarily large and the overall ratio becomes arbitrarily small.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
    $endgroup$
    – TVSuchty
    2 days ago








  • 2




    $begingroup$
    It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
    $endgroup$
    – ZeroXLR
    2 days ago








  • 1




    $begingroup$
    I am stunned. Do you know of more complex solutions?
    $endgroup$
    – TVSuchty
    2 days ago






  • 1




    $begingroup$
    @TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
    $endgroup$
    – uhhhhidk
    2 days ago






  • 1




    $begingroup$
    We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
    $endgroup$
    – DanielWainfleet
    yesterday
















16












16








16





$begingroup$

Define the real functions $f$ and $g$ thus:
$$
f(x) = begin{cases} expBig(-frac{1}{(x - 1)^2}Big) &text{if } x > 1 \
0 &text{if } x in [-1, 1] \
expBig(-frac{1}{(x + 1)^2}Big) &text{if } x < -1
end{cases}
$$
and
$g(x) = 0$. $f$ and $g$ are both $0$ on $[-1, 1]$ but they differ in value everywhere else.



Obviously $g$ is continuously differentiable infinitely many times as it is a constant function. You can also check that $f$ is continuously differentiable infinitely many times at $x = -1$ and $x = 1$ by applying L'Hôpital's rule inductively (Edit: A more elementary demonstration is given below based on the exponential series). Checking this is a fine exercise in Real Analysis; you should try it. Here is a first taste of it:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= limlimits_{x to 1^+}frac{2expbig(- frac{1}{(x - 1)^2}big)}{(x - 1)^3} \
&= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{this limit is of the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 2 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-3}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 2 lim_{x to 1^+}frac{-3(x - 1)^{-4}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= 3lim_{x to 1^+}frac{(x - 1)^{-1}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{again, this has the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 3 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-1}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 3 lim_{x to 1^+}frac{-(x - 1)^{-2}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= frac{3}{2} lim_{x to 1^+}frac{x - 1}{expbig(frac{1}{(x - 1)^2}big)} \
&= frac{3}{2} lim_{x to 1^+} Big[(x - 1)expBig(-frac{1}{(x - 1)^2}Big)Big] \
&= frac{3}{2} Big[lim_{x to 1^+} (x - 1)Big] Big[lim_{x to 1^+} expBig(-frac{1}{(x - 1)^2}Big)Big] = frac{3}{2} times 0 times 0 = 0
end{align*}
That was a long calculation but take my word: it can be repeated inductively to show that $limlimits_{x to 1+}frac{d^nf}{dx^n} = 0$ for all $n in mathbb{Z}_+!$ At all other points i.e. on $(-infty, -1) cup (-1, 1) cup (1, infty)$, $f$ is infinitely differentiable because exponentials and constant functions are infinitely differentiable.



Bonus Fact:



Both $frac{d^n f(x)}{dx^n}$ and $frac{d^n g(x)}{dx^n}$ also have the same value $0$ on $[-1, 1]$ for all positive integers $n$!



Edit:



A more elementary way of seeing $lim_{x to 1^+}frac{df(x)}{dx} = 0$ is as follows:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} \
&= 2lim_{y to +infty}frac{y^3}{expbig(y^2big)} quadtext{ changing variables to }y = frac{1}{x - 1} \
&= 2lim_{y to +infty}frac{y^3}{sumlimits_{n = 0}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{y^3}{1 + y^2 + frac{y^4}{2} + sumlimits_{n = 3}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{1}{frac{1}{y^3} + frac{1}{y} + frac{y}{2} + sumlimits_{n = 3}^infty frac{y^{2n - 3}}{n!}} quadtext{ dividing top and bottom by }y^3 \
&= 2 times 0 = 0
end{align*}
Essentially, the top term $1$, which remains constant, is a sitting duck. Meanwhile the bottom term blows up to infinity because in the bottom, only two terms ($frac{1}{y^3}$ and $frac{1}{y}$) go to zero as $y$ becomes large. The rest of the terms ($frac{y}{2}$ and $frac{y^{2n - 3}}{n!}$ for $n in mathbb{Z_+} geq 3$) have at least a $y$ in the numerator and since no cancellation happens (all terms are positive), their sum becomes arbitrarily large and the overall ratio becomes arbitrarily small.






share|cite|improve this answer











$endgroup$



Define the real functions $f$ and $g$ thus:
$$
f(x) = begin{cases} expBig(-frac{1}{(x - 1)^2}Big) &text{if } x > 1 \
0 &text{if } x in [-1, 1] \
expBig(-frac{1}{(x + 1)^2}Big) &text{if } x < -1
end{cases}
$$
and
$g(x) = 0$. $f$ and $g$ are both $0$ on $[-1, 1]$ but they differ in value everywhere else.



Obviously $g$ is continuously differentiable infinitely many times as it is a constant function. You can also check that $f$ is continuously differentiable infinitely many times at $x = -1$ and $x = 1$ by applying L'Hôpital's rule inductively (Edit: A more elementary demonstration is given below based on the exponential series). Checking this is a fine exercise in Real Analysis; you should try it. Here is a first taste of it:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= limlimits_{x to 1^+}frac{2expbig(- frac{1}{(x - 1)^2}big)}{(x - 1)^3} \
&= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{this limit is of the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 2 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-3}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 2 lim_{x to 1^+}frac{-3(x - 1)^{-4}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= 3lim_{x to 1^+}frac{(x - 1)^{-1}}{expbig(frac{1}{(x - 1)^2}big)} quadtext{again, this has the form } frac{infty}{infty} text{ so L'Hôpital applies} \
&= 3 lim_{x to 1^+}frac{frac{d}{dx}(x - 1)^{-1}}{frac{d}{dx}expbig(frac{1}{(x - 1)^2}big)} text{ by L'Hôpital} \
&= 3 lim_{x to 1^+}frac{-(x - 1)^{-2}}{-2expbig(frac{1}{(x - 1)^2}big)(x - 1)^{-3}} \
&= frac{3}{2} lim_{x to 1^+}frac{x - 1}{expbig(frac{1}{(x - 1)^2}big)} \
&= frac{3}{2} lim_{x to 1^+} Big[(x - 1)expBig(-frac{1}{(x - 1)^2}Big)Big] \
&= frac{3}{2} Big[lim_{x to 1^+} (x - 1)Big] Big[lim_{x to 1^+} expBig(-frac{1}{(x - 1)^2}Big)Big] = frac{3}{2} times 0 times 0 = 0
end{align*}
That was a long calculation but take my word: it can be repeated inductively to show that $limlimits_{x to 1+}frac{d^nf}{dx^n} = 0$ for all $n in mathbb{Z}_+!$ At all other points i.e. on $(-infty, -1) cup (-1, 1) cup (1, infty)$, $f$ is infinitely differentiable because exponentials and constant functions are infinitely differentiable.



Bonus Fact:



Both $frac{d^n f(x)}{dx^n}$ and $frac{d^n g(x)}{dx^n}$ also have the same value $0$ on $[-1, 1]$ for all positive integers $n$!



Edit:



A more elementary way of seeing $lim_{x to 1^+}frac{df(x)}{dx} = 0$ is as follows:
begin{align*}
lim_{x to 1^+}frac{df(x)}{dx} &= 2lim_{x to 1^+}frac{frac{1}{(x - 1)^3}}{expbig(frac{1}{(x - 1)^2}big)} \
&= 2lim_{y to +infty}frac{y^3}{expbig(y^2big)} quadtext{ changing variables to }y = frac{1}{x - 1} \
&= 2lim_{y to +infty}frac{y^3}{sumlimits_{n = 0}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{y^3}{1 + y^2 + frac{y^4}{2} + sumlimits_{n = 3}^infty frac{y^{2n}}{n!}} \
&= 2lim_{y to +infty}frac{1}{frac{1}{y^3} + frac{1}{y} + frac{y}{2} + sumlimits_{n = 3}^infty frac{y^{2n - 3}}{n!}} quadtext{ dividing top and bottom by }y^3 \
&= 2 times 0 = 0
end{align*}
Essentially, the top term $1$, which remains constant, is a sitting duck. Meanwhile the bottom term blows up to infinity because in the bottom, only two terms ($frac{1}{y^3}$ and $frac{1}{y}$) go to zero as $y$ becomes large. The rest of the terms ($frac{y}{2}$ and $frac{y^{2n - 3}}{n!}$ for $n in mathbb{Z_+} geq 3$) have at least a $y$ in the numerator and since no cancellation happens (all terms are positive), their sum becomes arbitrarily large and the overall ratio becomes arbitrarily small.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited yesterday

























answered 2 days ago









ZeroXLRZeroXLR

1,657620




1,657620












  • $begingroup$
    Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
    $endgroup$
    – TVSuchty
    2 days ago








  • 2




    $begingroup$
    It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
    $endgroup$
    – ZeroXLR
    2 days ago








  • 1




    $begingroup$
    I am stunned. Do you know of more complex solutions?
    $endgroup$
    – TVSuchty
    2 days ago






  • 1




    $begingroup$
    @TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
    $endgroup$
    – uhhhhidk
    2 days ago






  • 1




    $begingroup$
    We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
    $endgroup$
    – DanielWainfleet
    yesterday




















  • $begingroup$
    Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
    $endgroup$
    – TVSuchty
    2 days ago








  • 2




    $begingroup$
    It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
    $endgroup$
    – ZeroXLR
    2 days ago








  • 1




    $begingroup$
    I am stunned. Do you know of more complex solutions?
    $endgroup$
    – TVSuchty
    2 days ago






  • 1




    $begingroup$
    @TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
    $endgroup$
    – uhhhhidk
    2 days ago






  • 1




    $begingroup$
    We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
    $endgroup$
    – DanielWainfleet
    yesterday


















$begingroup$
Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
$endgroup$
– TVSuchty
2 days ago






$begingroup$
Well Done! Unfortunately, I am a high school student and never heard of L'Hôpitals Rule. EDIT: This function is actually amazing, never saw something like this before.
$endgroup$
– TVSuchty
2 days ago






2




2




$begingroup$
It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
$endgroup$
– ZeroXLR
2 days ago






$begingroup$
It basically says under certain conditions, $limlimits_{x to a}(f(x) / g(x)) = limlimits_{x to a}(frac{d f(x)}{dx} / frac{d g(x)}{dx})$. en.wikipedia.org/wiki/L%27H%C3%B4pital%27s_rule
$endgroup$
– ZeroXLR
2 days ago






1




1




$begingroup$
I am stunned. Do you know of more complex solutions?
$endgroup$
– TVSuchty
2 days ago




$begingroup$
I am stunned. Do you know of more complex solutions?
$endgroup$
– TVSuchty
2 days ago




1




1




$begingroup$
@TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
$endgroup$
– uhhhhidk
2 days ago




$begingroup$
@TVSuchty what class shows you logic symbols before explaining L'Hôpitals rule?
$endgroup$
– uhhhhidk
2 days ago




1




1




$begingroup$
We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
$endgroup$
– DanielWainfleet
yesterday






$begingroup$
We can obtain $f^{(n)}(1)=0$ for all $n$ without l'Hopital's Rule by induction and some elementary considerations........+1
$endgroup$
– DanielWainfleet
yesterday













4












$begingroup$

Sure. In fact, there is a whole class of functions which not only exist, but are specifically made to do something that effectively implies exactly what you are looking for: they are called bump functions, and are defined as smooth (differentiable everywhere, arbitrarily many times) functions that have compact support, meaning (almost) that they are zero everywhere except on a compact set, which for the real numbers as domain basically means a closed, bounded (i.e. contained within an interval) subset thereof, such as a closed interval. This compact set where they are nonzero is called the "support". The trick is to exploit the "everywhere else zero"-ness, as that gives you what you're after.



Namely, any two different (i.e. not equal) bump functions with the same supporting interval $[a, b]$, will be smooth, zero on any interval outside this interval, and yet different, because they differ on such interval. More generally, given any two different bump functions, period, you just have to find an interval outside both of their support sets, which is always possible because they are both bounded.



A simple example of such a bump function is



$$mathrm{bump}: mathbb{R} rightarrow mathbb{R}, mathrm{bump}(x) := begin{cases} e^{-frac{1}{1 - x^2}}, mbox{when $x$ is in $(-1, 1)$}\ 0, mbox{otherwise} end{cases}$$



Then consider just $mathrm{bump}(x)$ and a nonzero multiple thereof, say, $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$. We now have $mathrm{bump}(x) = mathrm{bump2}(x)$ when, say, $x in [10, 11]$, since they are both zero there. Yet, they are ostensibly not equal when $x$ is in $(-1, 1)$.



ADD: It appears to have been asked as to how one can do this without explicitly constructing the bump function. The above is just to show (not completely thoroughly) that bump functions exist. Indeed, we can do so as well. Let now $mathrm{bump}(x)$ be a general bump function. Let its support set be $mathrm{supp}[mathrm{bump}]$. That is,



$$mathrm{supp}[mathrm{bump}] := mathrm{cl}left({ x in mathbb{R} : mathrm{bump}(x) ne 0 }right)$$



(n.b. "cl" means to take the closure; basically this includes all "endpoints" of regions in which it is nonzero, even if it is zero at those endpoints - e.g. the support of the just-given-explicitly bump function is $[-1, 1]$, not $(-1, 1)$. This is a bit of technicality that was wrapped earlier when I said "almost" in "meaning (almost)" above.)



Since the support set is bounded and closed, it has a maximum and minimum (largest and smallest element): assign $M := mathrm{max} mathrm{supp}[mathrm{bump}]$. Now consider the interval $mathrm{ext ival} := [M+1, M+2]$. If $x in mathrm{ext ival}$, then it is clearly not in the support set, but rather to the right of it. Thus $mathrm{bump}(x) = 0$ there. Now set $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$ as before (if you want even more generality, just replace $2$ with an arbitrary vertical rescaling coefficient $a$ that is not $0$ or $1$). Congrats, you now have two bump functions that are unequal but equal on the external interval $mathrm{ext ival}$.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
    $endgroup$
    – TVSuchty
    yesterday






  • 2




    $begingroup$
    @TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
    $endgroup$
    – The_Sympathizer
    yesterday






  • 1




    $begingroup$
    @TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
    $endgroup$
    – The_Sympathizer
    yesterday
















4












$begingroup$

Sure. In fact, there is a whole class of functions which not only exist, but are specifically made to do something that effectively implies exactly what you are looking for: they are called bump functions, and are defined as smooth (differentiable everywhere, arbitrarily many times) functions that have compact support, meaning (almost) that they are zero everywhere except on a compact set, which for the real numbers as domain basically means a closed, bounded (i.e. contained within an interval) subset thereof, such as a closed interval. This compact set where they are nonzero is called the "support". The trick is to exploit the "everywhere else zero"-ness, as that gives you what you're after.



Namely, any two different (i.e. not equal) bump functions with the same supporting interval $[a, b]$, will be smooth, zero on any interval outside this interval, and yet different, because they differ on such interval. More generally, given any two different bump functions, period, you just have to find an interval outside both of their support sets, which is always possible because they are both bounded.



A simple example of such a bump function is



$$mathrm{bump}: mathbb{R} rightarrow mathbb{R}, mathrm{bump}(x) := begin{cases} e^{-frac{1}{1 - x^2}}, mbox{when $x$ is in $(-1, 1)$}\ 0, mbox{otherwise} end{cases}$$



Then consider just $mathrm{bump}(x)$ and a nonzero multiple thereof, say, $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$. We now have $mathrm{bump}(x) = mathrm{bump2}(x)$ when, say, $x in [10, 11]$, since they are both zero there. Yet, they are ostensibly not equal when $x$ is in $(-1, 1)$.



ADD: It appears to have been asked as to how one can do this without explicitly constructing the bump function. The above is just to show (not completely thoroughly) that bump functions exist. Indeed, we can do so as well. Let now $mathrm{bump}(x)$ be a general bump function. Let its support set be $mathrm{supp}[mathrm{bump}]$. That is,



$$mathrm{supp}[mathrm{bump}] := mathrm{cl}left({ x in mathbb{R} : mathrm{bump}(x) ne 0 }right)$$



(n.b. "cl" means to take the closure; basically this includes all "endpoints" of regions in which it is nonzero, even if it is zero at those endpoints - e.g. the support of the just-given-explicitly bump function is $[-1, 1]$, not $(-1, 1)$. This is a bit of technicality that was wrapped earlier when I said "almost" in "meaning (almost)" above.)



Since the support set is bounded and closed, it has a maximum and minimum (largest and smallest element): assign $M := mathrm{max} mathrm{supp}[mathrm{bump}]$. Now consider the interval $mathrm{ext ival} := [M+1, M+2]$. If $x in mathrm{ext ival}$, then it is clearly not in the support set, but rather to the right of it. Thus $mathrm{bump}(x) = 0$ there. Now set $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$ as before (if you want even more generality, just replace $2$ with an arbitrary vertical rescaling coefficient $a$ that is not $0$ or $1$). Congrats, you now have two bump functions that are unequal but equal on the external interval $mathrm{ext ival}$.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
    $endgroup$
    – TVSuchty
    yesterday






  • 2




    $begingroup$
    @TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
    $endgroup$
    – The_Sympathizer
    yesterday






  • 1




    $begingroup$
    @TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
    $endgroup$
    – The_Sympathizer
    yesterday














4












4








4





$begingroup$

Sure. In fact, there is a whole class of functions which not only exist, but are specifically made to do something that effectively implies exactly what you are looking for: they are called bump functions, and are defined as smooth (differentiable everywhere, arbitrarily many times) functions that have compact support, meaning (almost) that they are zero everywhere except on a compact set, which for the real numbers as domain basically means a closed, bounded (i.e. contained within an interval) subset thereof, such as a closed interval. This compact set where they are nonzero is called the "support". The trick is to exploit the "everywhere else zero"-ness, as that gives you what you're after.



Namely, any two different (i.e. not equal) bump functions with the same supporting interval $[a, b]$, will be smooth, zero on any interval outside this interval, and yet different, because they differ on such interval. More generally, given any two different bump functions, period, you just have to find an interval outside both of their support sets, which is always possible because they are both bounded.



A simple example of such a bump function is



$$mathrm{bump}: mathbb{R} rightarrow mathbb{R}, mathrm{bump}(x) := begin{cases} e^{-frac{1}{1 - x^2}}, mbox{when $x$ is in $(-1, 1)$}\ 0, mbox{otherwise} end{cases}$$



Then consider just $mathrm{bump}(x)$ and a nonzero multiple thereof, say, $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$. We now have $mathrm{bump}(x) = mathrm{bump2}(x)$ when, say, $x in [10, 11]$, since they are both zero there. Yet, they are ostensibly not equal when $x$ is in $(-1, 1)$.



ADD: It appears to have been asked as to how one can do this without explicitly constructing the bump function. The above is just to show (not completely thoroughly) that bump functions exist. Indeed, we can do so as well. Let now $mathrm{bump}(x)$ be a general bump function. Let its support set be $mathrm{supp}[mathrm{bump}]$. That is,



$$mathrm{supp}[mathrm{bump}] := mathrm{cl}left({ x in mathbb{R} : mathrm{bump}(x) ne 0 }right)$$



(n.b. "cl" means to take the closure; basically this includes all "endpoints" of regions in which it is nonzero, even if it is zero at those endpoints - e.g. the support of the just-given-explicitly bump function is $[-1, 1]$, not $(-1, 1)$. This is a bit of technicality that was wrapped earlier when I said "almost" in "meaning (almost)" above.)



Since the support set is bounded and closed, it has a maximum and minimum (largest and smallest element): assign $M := mathrm{max} mathrm{supp}[mathrm{bump}]$. Now consider the interval $mathrm{ext ival} := [M+1, M+2]$. If $x in mathrm{ext ival}$, then it is clearly not in the support set, but rather to the right of it. Thus $mathrm{bump}(x) = 0$ there. Now set $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$ as before (if you want even more generality, just replace $2$ with an arbitrary vertical rescaling coefficient $a$ that is not $0$ or $1$). Congrats, you now have two bump functions that are unequal but equal on the external interval $mathrm{ext ival}$.






share|cite|improve this answer











$endgroup$



Sure. In fact, there is a whole class of functions which not only exist, but are specifically made to do something that effectively implies exactly what you are looking for: they are called bump functions, and are defined as smooth (differentiable everywhere, arbitrarily many times) functions that have compact support, meaning (almost) that they are zero everywhere except on a compact set, which for the real numbers as domain basically means a closed, bounded (i.e. contained within an interval) subset thereof, such as a closed interval. This compact set where they are nonzero is called the "support". The trick is to exploit the "everywhere else zero"-ness, as that gives you what you're after.



Namely, any two different (i.e. not equal) bump functions with the same supporting interval $[a, b]$, will be smooth, zero on any interval outside this interval, and yet different, because they differ on such interval. More generally, given any two different bump functions, period, you just have to find an interval outside both of their support sets, which is always possible because they are both bounded.



A simple example of such a bump function is



$$mathrm{bump}: mathbb{R} rightarrow mathbb{R}, mathrm{bump}(x) := begin{cases} e^{-frac{1}{1 - x^2}}, mbox{when $x$ is in $(-1, 1)$}\ 0, mbox{otherwise} end{cases}$$



Then consider just $mathrm{bump}(x)$ and a nonzero multiple thereof, say, $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$. We now have $mathrm{bump}(x) = mathrm{bump2}(x)$ when, say, $x in [10, 11]$, since they are both zero there. Yet, they are ostensibly not equal when $x$ is in $(-1, 1)$.



ADD: It appears to have been asked as to how one can do this without explicitly constructing the bump function. The above is just to show (not completely thoroughly) that bump functions exist. Indeed, we can do so as well. Let now $mathrm{bump}(x)$ be a general bump function. Let its support set be $mathrm{supp}[mathrm{bump}]$. That is,



$$mathrm{supp}[mathrm{bump}] := mathrm{cl}left({ x in mathbb{R} : mathrm{bump}(x) ne 0 }right)$$



(n.b. "cl" means to take the closure; basically this includes all "endpoints" of regions in which it is nonzero, even if it is zero at those endpoints - e.g. the support of the just-given-explicitly bump function is $[-1, 1]$, not $(-1, 1)$. This is a bit of technicality that was wrapped earlier when I said "almost" in "meaning (almost)" above.)



Since the support set is bounded and closed, it has a maximum and minimum (largest and smallest element): assign $M := mathrm{max} mathrm{supp}[mathrm{bump}]$. Now consider the interval $mathrm{ext ival} := [M+1, M+2]$. If $x in mathrm{ext ival}$, then it is clearly not in the support set, but rather to the right of it. Thus $mathrm{bump}(x) = 0$ there. Now set $mathrm{bump2}(x) := 2 cdot mathrm{bump}(x)$ as before (if you want even more generality, just replace $2$ with an arbitrary vertical rescaling coefficient $a$ that is not $0$ or $1$). Congrats, you now have two bump functions that are unequal but equal on the external interval $mathrm{ext ival}$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited yesterday

























answered yesterday









The_SympathizerThe_Sympathizer

7,8752246




7,8752246








  • 1




    $begingroup$
    I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
    $endgroup$
    – TVSuchty
    yesterday






  • 2




    $begingroup$
    @TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
    $endgroup$
    – The_Sympathizer
    yesterday






  • 1




    $begingroup$
    @TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
    $endgroup$
    – The_Sympathizer
    yesterday














  • 1




    $begingroup$
    I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
    $endgroup$
    – TVSuchty
    yesterday






  • 2




    $begingroup$
    @TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
    $endgroup$
    – The_Sympathizer
    yesterday






  • 1




    $begingroup$
    @TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
    $endgroup$
    – The_Sympathizer
    yesterday








1




1




$begingroup$
I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
$endgroup$
– TVSuchty
yesterday




$begingroup$
I see what you did there! Is there a case, where you can write an example without defining the function bit by bit, maybe just as term?
$endgroup$
– TVSuchty
yesterday




2




2




$begingroup$
@TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
$endgroup$
– The_Sympathizer
yesterday




$begingroup$
@TVSuchty : Actually, yes. See what I just added. I believe this is what you're asking about.
$endgroup$
– The_Sympathizer
yesterday




1




1




$begingroup$
@TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
$endgroup$
– The_Sympathizer
yesterday




$begingroup$
@TVSuchty : "I see what you did there!" yeah I just made the little bumpzzle perk up :) #mehhr.
$endgroup$
– The_Sympathizer
yesterday


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3185630%2fare-there-continuous-functions-who-are-the-same-in-an-interval-but-differ-in-at%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b