How to prove Big Theta on polynomial function?
$begingroup$
Im working on the Big-O notation and struggle to understand whether I have done enough to prove the following:
$5n^3+4n^2+4 in Theta (n^3)$
So based on the definition of $Θ(g(n)):$
Step $1$: $0 ≤ c_1 n^3 leq 5n^3+4n^2+4 leq c_2 n^3$
Divide the inequality by the largest order n-term
Step $2$: $0 ≤ c_1 leq 5+(4/n+4/n^3) leq c_2$
Find constant $c_2$ that will satisfy:
Step $3$: $0 leq 5+(4/n+4/n^3) leq c_2$
For $n=1$, $0 leq 5+(4/1+4/1^3)=13$
For $n=2$, $0 leq 5+(4/2+4/2^3)=7,5$
For $n=3$, $0 leq 5+(4/3+4/3^3)=6,7$
For $n=4$, $0 leq 5+(4/4+4/4^3)=6,06$
Since $c_2$ approaches $5$ when $n to infty$, I pick 5 for $c_2$ as it satisfies the equation in Step $3$
Step $4$: Is to find $c_1$
Since $c_1$ can be $leq 5$
I can say that $5n^3+4n^2+4 in Theta (n^3)$ for $c_1$ $leq 5$ and $c_2 geq 5$. However not sure how to find $n_0$ in that regard.
Appreciate any insights!
discrete-mathematics asymptotics computer-science
$endgroup$
add a comment |
$begingroup$
Im working on the Big-O notation and struggle to understand whether I have done enough to prove the following:
$5n^3+4n^2+4 in Theta (n^3)$
So based on the definition of $Θ(g(n)):$
Step $1$: $0 ≤ c_1 n^3 leq 5n^3+4n^2+4 leq c_2 n^3$
Divide the inequality by the largest order n-term
Step $2$: $0 ≤ c_1 leq 5+(4/n+4/n^3) leq c_2$
Find constant $c_2$ that will satisfy:
Step $3$: $0 leq 5+(4/n+4/n^3) leq c_2$
For $n=1$, $0 leq 5+(4/1+4/1^3)=13$
For $n=2$, $0 leq 5+(4/2+4/2^3)=7,5$
For $n=3$, $0 leq 5+(4/3+4/3^3)=6,7$
For $n=4$, $0 leq 5+(4/4+4/4^3)=6,06$
Since $c_2$ approaches $5$ when $n to infty$, I pick 5 for $c_2$ as it satisfies the equation in Step $3$
Step $4$: Is to find $c_1$
Since $c_1$ can be $leq 5$
I can say that $5n^3+4n^2+4 in Theta (n^3)$ for $c_1$ $leq 5$ and $c_2 geq 5$. However not sure how to find $n_0$ in that regard.
Appreciate any insights!
discrete-mathematics asymptotics computer-science
$endgroup$
add a comment |
$begingroup$
Im working on the Big-O notation and struggle to understand whether I have done enough to prove the following:
$5n^3+4n^2+4 in Theta (n^3)$
So based on the definition of $Θ(g(n)):$
Step $1$: $0 ≤ c_1 n^3 leq 5n^3+4n^2+4 leq c_2 n^3$
Divide the inequality by the largest order n-term
Step $2$: $0 ≤ c_1 leq 5+(4/n+4/n^3) leq c_2$
Find constant $c_2$ that will satisfy:
Step $3$: $0 leq 5+(4/n+4/n^3) leq c_2$
For $n=1$, $0 leq 5+(4/1+4/1^3)=13$
For $n=2$, $0 leq 5+(4/2+4/2^3)=7,5$
For $n=3$, $0 leq 5+(4/3+4/3^3)=6,7$
For $n=4$, $0 leq 5+(4/4+4/4^3)=6,06$
Since $c_2$ approaches $5$ when $n to infty$, I pick 5 for $c_2$ as it satisfies the equation in Step $3$
Step $4$: Is to find $c_1$
Since $c_1$ can be $leq 5$
I can say that $5n^3+4n^2+4 in Theta (n^3)$ for $c_1$ $leq 5$ and $c_2 geq 5$. However not sure how to find $n_0$ in that regard.
Appreciate any insights!
discrete-mathematics asymptotics computer-science
$endgroup$
Im working on the Big-O notation and struggle to understand whether I have done enough to prove the following:
$5n^3+4n^2+4 in Theta (n^3)$
So based on the definition of $Θ(g(n)):$
Step $1$: $0 ≤ c_1 n^3 leq 5n^3+4n^2+4 leq c_2 n^3$
Divide the inequality by the largest order n-term
Step $2$: $0 ≤ c_1 leq 5+(4/n+4/n^3) leq c_2$
Find constant $c_2$ that will satisfy:
Step $3$: $0 leq 5+(4/n+4/n^3) leq c_2$
For $n=1$, $0 leq 5+(4/1+4/1^3)=13$
For $n=2$, $0 leq 5+(4/2+4/2^3)=7,5$
For $n=3$, $0 leq 5+(4/3+4/3^3)=6,7$
For $n=4$, $0 leq 5+(4/4+4/4^3)=6,06$
Since $c_2$ approaches $5$ when $n to infty$, I pick 5 for $c_2$ as it satisfies the equation in Step $3$
Step $4$: Is to find $c_1$
Since $c_1$ can be $leq 5$
I can say that $5n^3+4n^2+4 in Theta (n^3)$ for $c_1$ $leq 5$ and $c_2 geq 5$. However not sure how to find $n_0$ in that regard.
Appreciate any insights!
discrete-mathematics asymptotics computer-science
discrete-mathematics asymptotics computer-science
edited Dec 10 '17 at 18:40
Googme
asked Dec 10 '17 at 18:19
GoogmeGoogme
23818
23818
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Hint: $1 le n^2 le n^3$ for $n ge 1,$, so $5n^3 ;le; 5n^3+4n^2+4 ;le; 5n^3+4n^3+4n^3 = 13 n^3,$.
$endgroup$
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%2f2560344%2fhow-to-prove-big-theta-on-polynomial-function%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Hint: $1 le n^2 le n^3$ for $n ge 1,$, so $5n^3 ;le; 5n^3+4n^2+4 ;le; 5n^3+4n^3+4n^3 = 13 n^3,$.
$endgroup$
add a comment |
$begingroup$
Hint: $1 le n^2 le n^3$ for $n ge 1,$, so $5n^3 ;le; 5n^3+4n^2+4 ;le; 5n^3+4n^3+4n^3 = 13 n^3,$.
$endgroup$
add a comment |
$begingroup$
Hint: $1 le n^2 le n^3$ for $n ge 1,$, so $5n^3 ;le; 5n^3+4n^2+4 ;le; 5n^3+4n^3+4n^3 = 13 n^3,$.
$endgroup$
Hint: $1 le n^2 le n^3$ for $n ge 1,$, so $5n^3 ;le; 5n^3+4n^2+4 ;le; 5n^3+4n^3+4n^3 = 13 n^3,$.
answered Dec 10 '17 at 20:19
dxivdxiv
57.8k648101
57.8k648101
add a comment |
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.
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%2f2560344%2fhow-to-prove-big-theta-on-polynomial-function%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