Find whether $f(x)$ is $O(g(x))$ [whether $f(x)$ is Big-O of $g(x)$]
Given: $f(x)=3^{sqrt{x}}, g(x) = 2^x$, find whether $f(x)$ is Big-O of $g(x)$, and vice-versa.
I want to use the following fact: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|) leq ln(C) implies f(x)=O[g(x)]$$
I have done the following: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|)$$
$$ = lim_{xtoinfty}(sqrt{x}ln(3)-xln(2))$$
$$ = lim_{xtoinfty}[ln(dfrac{3^sqrt{x}}{2^x})] $$
$$= ln[lim_{xtoinfty}(dfrac{3^sqrt{x}}{2^x})] $$
Where do I go from here?
real-analysis limits logarithms asymptotics
add a comment |
Given: $f(x)=3^{sqrt{x}}, g(x) = 2^x$, find whether $f(x)$ is Big-O of $g(x)$, and vice-versa.
I want to use the following fact: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|) leq ln(C) implies f(x)=O[g(x)]$$
I have done the following: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|)$$
$$ = lim_{xtoinfty}(sqrt{x}ln(3)-xln(2))$$
$$ = lim_{xtoinfty}[ln(dfrac{3^sqrt{x}}{2^x})] $$
$$= ln[lim_{xtoinfty}(dfrac{3^sqrt{x}}{2^x})] $$
Where do I go from here?
real-analysis limits logarithms asymptotics
1
$sqrt{x} ne x/2$
– angryavian
Nov 27 '18 at 21:23
@angryavian my bad - edited the question
– bob
Nov 27 '18 at 21:26
Let use $log_2$ for $3^{sqrt x}$ in order to have all in base $2$ and compare the terms.
– gimusi
Nov 27 '18 at 21:32
add a comment |
Given: $f(x)=3^{sqrt{x}}, g(x) = 2^x$, find whether $f(x)$ is Big-O of $g(x)$, and vice-versa.
I want to use the following fact: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|) leq ln(C) implies f(x)=O[g(x)]$$
I have done the following: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|)$$
$$ = lim_{xtoinfty}(sqrt{x}ln(3)-xln(2))$$
$$ = lim_{xtoinfty}[ln(dfrac{3^sqrt{x}}{2^x})] $$
$$= ln[lim_{xtoinfty}(dfrac{3^sqrt{x}}{2^x})] $$
Where do I go from here?
real-analysis limits logarithms asymptotics
Given: $f(x)=3^{sqrt{x}}, g(x) = 2^x$, find whether $f(x)$ is Big-O of $g(x)$, and vice-versa.
I want to use the following fact: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|) leq ln(C) implies f(x)=O[g(x)]$$
I have done the following: $$lim_{xtoinfty}(ln|f(x)|-ln|g(x)|)$$
$$ = lim_{xtoinfty}(sqrt{x}ln(3)-xln(2))$$
$$ = lim_{xtoinfty}[ln(dfrac{3^sqrt{x}}{2^x})] $$
$$= ln[lim_{xtoinfty}(dfrac{3^sqrt{x}}{2^x})] $$
Where do I go from here?
real-analysis limits logarithms asymptotics
real-analysis limits logarithms asymptotics
edited Nov 27 '18 at 21:29
bob
asked Nov 27 '18 at 21:17
bobbob
1089
1089
1
$sqrt{x} ne x/2$
– angryavian
Nov 27 '18 at 21:23
@angryavian my bad - edited the question
– bob
Nov 27 '18 at 21:26
Let use $log_2$ for $3^{sqrt x}$ in order to have all in base $2$ and compare the terms.
– gimusi
Nov 27 '18 at 21:32
add a comment |
1
$sqrt{x} ne x/2$
– angryavian
Nov 27 '18 at 21:23
@angryavian my bad - edited the question
– bob
Nov 27 '18 at 21:26
Let use $log_2$ for $3^{sqrt x}$ in order to have all in base $2$ and compare the terms.
– gimusi
Nov 27 '18 at 21:32
1
1
$sqrt{x} ne x/2$
– angryavian
Nov 27 '18 at 21:23
$sqrt{x} ne x/2$
– angryavian
Nov 27 '18 at 21:23
@angryavian my bad - edited the question
– bob
Nov 27 '18 at 21:26
@angryavian my bad - edited the question
– bob
Nov 27 '18 at 21:26
Let use $log_2$ for $3^{sqrt x}$ in order to have all in base $2$ and compare the terms.
– gimusi
Nov 27 '18 at 21:32
Let use $log_2$ for $3^{sqrt x}$ in order to have all in base $2$ and compare the terms.
– gimusi
Nov 27 '18 at 21:32
add a comment |
3 Answers
3
active
oldest
votes
You want to compare $f(x)$ and $g(x)$
Let's take the logarithm of their ratio
$lnleft(dfrac{f(x)}{g(x)}right)=ln(f(x))-ln(g(x))=sqrt{x}ln(3)-xln(2)sim-xln(2)to-infty$
Since the square root of $x$ is negligible compared to $x$ at infinity: $sqrt{x}ll x$
Thus $dfrac{f(x)}{g(x)}to 0$ and $f(x)=o(g(x))$ which is even stronger than just a big-O.
Anyway it implies $f(x)=O(g(x))$
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
add a comment |
You can write $f(x)=3^{sqrt x}=2^{sqrt xlog_23}$.
Now $ln(limlimits_{xto infty}(3^sqrt x/2^x) )=log_2(limlimits_{xto infty}(2^{sqrt xlog_23}/2^x) )leq log_2(C)$
So ${limlimits_{xto infty}sqrt xlog_23-xleq C}$
$sqrt xlog_23leq x+C$ as $x to infty$
$2^{sqrt xlog_23}leq 2^{x+C}$ as $xto infty$
$implies f(x)leq 2^Cg(x)$
Hence $f(x)=O(g(x))$ by definition.
add a comment |
We have that
$$large 3^{sqrt{x}}=2^{sqrt x log_2 3} implies frac{3^{sqrt{x}}}{2^x}=2^{sqrt x log_2 3-x}to 0$$
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
1
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3016310%2ffind-whether-fx-is-ogx-whether-fx-is-big-o-of-gx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You want to compare $f(x)$ and $g(x)$
Let's take the logarithm of their ratio
$lnleft(dfrac{f(x)}{g(x)}right)=ln(f(x))-ln(g(x))=sqrt{x}ln(3)-xln(2)sim-xln(2)to-infty$
Since the square root of $x$ is negligible compared to $x$ at infinity: $sqrt{x}ll x$
Thus $dfrac{f(x)}{g(x)}to 0$ and $f(x)=o(g(x))$ which is even stronger than just a big-O.
Anyway it implies $f(x)=O(g(x))$
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
add a comment |
You want to compare $f(x)$ and $g(x)$
Let's take the logarithm of their ratio
$lnleft(dfrac{f(x)}{g(x)}right)=ln(f(x))-ln(g(x))=sqrt{x}ln(3)-xln(2)sim-xln(2)to-infty$
Since the square root of $x$ is negligible compared to $x$ at infinity: $sqrt{x}ll x$
Thus $dfrac{f(x)}{g(x)}to 0$ and $f(x)=o(g(x))$ which is even stronger than just a big-O.
Anyway it implies $f(x)=O(g(x))$
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
add a comment |
You want to compare $f(x)$ and $g(x)$
Let's take the logarithm of their ratio
$lnleft(dfrac{f(x)}{g(x)}right)=ln(f(x))-ln(g(x))=sqrt{x}ln(3)-xln(2)sim-xln(2)to-infty$
Since the square root of $x$ is negligible compared to $x$ at infinity: $sqrt{x}ll x$
Thus $dfrac{f(x)}{g(x)}to 0$ and $f(x)=o(g(x))$ which is even stronger than just a big-O.
Anyway it implies $f(x)=O(g(x))$
You want to compare $f(x)$ and $g(x)$
Let's take the logarithm of their ratio
$lnleft(dfrac{f(x)}{g(x)}right)=ln(f(x))-ln(g(x))=sqrt{x}ln(3)-xln(2)sim-xln(2)to-infty$
Since the square root of $x$ is negligible compared to $x$ at infinity: $sqrt{x}ll x$
Thus $dfrac{f(x)}{g(x)}to 0$ and $f(x)=o(g(x))$ which is even stronger than just a big-O.
Anyway it implies $f(x)=O(g(x))$
answered Nov 27 '18 at 21:39
zwimzwim
11.7k729
11.7k729
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
add a comment |
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
Thank you, this helps.
– bob
Nov 27 '18 at 21:46
add a comment |
You can write $f(x)=3^{sqrt x}=2^{sqrt xlog_23}$.
Now $ln(limlimits_{xto infty}(3^sqrt x/2^x) )=log_2(limlimits_{xto infty}(2^{sqrt xlog_23}/2^x) )leq log_2(C)$
So ${limlimits_{xto infty}sqrt xlog_23-xleq C}$
$sqrt xlog_23leq x+C$ as $x to infty$
$2^{sqrt xlog_23}leq 2^{x+C}$ as $xto infty$
$implies f(x)leq 2^Cg(x)$
Hence $f(x)=O(g(x))$ by definition.
add a comment |
You can write $f(x)=3^{sqrt x}=2^{sqrt xlog_23}$.
Now $ln(limlimits_{xto infty}(3^sqrt x/2^x) )=log_2(limlimits_{xto infty}(2^{sqrt xlog_23}/2^x) )leq log_2(C)$
So ${limlimits_{xto infty}sqrt xlog_23-xleq C}$
$sqrt xlog_23leq x+C$ as $x to infty$
$2^{sqrt xlog_23}leq 2^{x+C}$ as $xto infty$
$implies f(x)leq 2^Cg(x)$
Hence $f(x)=O(g(x))$ by definition.
add a comment |
You can write $f(x)=3^{sqrt x}=2^{sqrt xlog_23}$.
Now $ln(limlimits_{xto infty}(3^sqrt x/2^x) )=log_2(limlimits_{xto infty}(2^{sqrt xlog_23}/2^x) )leq log_2(C)$
So ${limlimits_{xto infty}sqrt xlog_23-xleq C}$
$sqrt xlog_23leq x+C$ as $x to infty$
$2^{sqrt xlog_23}leq 2^{x+C}$ as $xto infty$
$implies f(x)leq 2^Cg(x)$
Hence $f(x)=O(g(x))$ by definition.
You can write $f(x)=3^{sqrt x}=2^{sqrt xlog_23}$.
Now $ln(limlimits_{xto infty}(3^sqrt x/2^x) )=log_2(limlimits_{xto infty}(2^{sqrt xlog_23}/2^x) )leq log_2(C)$
So ${limlimits_{xto infty}sqrt xlog_23-xleq C}$
$sqrt xlog_23leq x+C$ as $x to infty$
$2^{sqrt xlog_23}leq 2^{x+C}$ as $xto infty$
$implies f(x)leq 2^Cg(x)$
Hence $f(x)=O(g(x))$ by definition.
answered Nov 27 '18 at 21:45
JimmyJimmy
17212
17212
add a comment |
add a comment |
We have that
$$large 3^{sqrt{x}}=2^{sqrt x log_2 3} implies frac{3^{sqrt{x}}}{2^x}=2^{sqrt x log_2 3-x}to 0$$
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
1
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
add a comment |
We have that
$$large 3^{sqrt{x}}=2^{sqrt x log_2 3} implies frac{3^{sqrt{x}}}{2^x}=2^{sqrt x log_2 3-x}to 0$$
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
1
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
add a comment |
We have that
$$large 3^{sqrt{x}}=2^{sqrt x log_2 3} implies frac{3^{sqrt{x}}}{2^x}=2^{sqrt x log_2 3-x}to 0$$
We have that
$$large 3^{sqrt{x}}=2^{sqrt x log_2 3} implies frac{3^{sqrt{x}}}{2^x}=2^{sqrt x log_2 3-x}to 0$$
edited Nov 27 '18 at 21:41
answered Nov 27 '18 at 21:24
gimusigimusi
1
1
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
1
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
add a comment |
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
1
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
Could you take this a step further?
– bob
Nov 27 '18 at 21:36
1
1
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
@bob What is stronger $ 2^x $or $2^{sqrt x log_2 3}$?
– gimusi
Nov 27 '18 at 21:38
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3016310%2ffind-whether-fx-is-ogx-whether-fx-is-big-o-of-gx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
$sqrt{x} ne x/2$
– angryavian
Nov 27 '18 at 21:23
@angryavian my bad - edited the question
– bob
Nov 27 '18 at 21:26
Let use $log_2$ for $3^{sqrt x}$ in order to have all in base $2$ and compare the terms.
– gimusi
Nov 27 '18 at 21:32