Verifying correctness of a solution to a recurrence relation
$begingroup$
I have been trying to solve a recurrence relation:
$a_n = 6_{a_{n-1}} - 9_{a_{n-2}}$
As it is a 2nd order linear, homogeneous recurrence, I solved it using the substitution method to get the general solution:
$a_n = A3^n + Bn3^n$
With the initial conditions $a_0 = -1$ and $a_1 = 1$, I got the particular solution:
$a_n = -3^n + frac{4}{3}n3^n$
It satisfies the two initial conditions but now I must substitute it into the recurrence relation to prov that it satisfies the recurrence relation.
I understand that I have to substitute it in to get:
$a_n = 6(-3^{n-1} + frac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + frac{4}{3}(n-2)
; 3^{n-2})$
How do I go to solve this to prove that it does in fact satisfy the recurrence relation?
recurrence-relations
$endgroup$
add a comment |
$begingroup$
I have been trying to solve a recurrence relation:
$a_n = 6_{a_{n-1}} - 9_{a_{n-2}}$
As it is a 2nd order linear, homogeneous recurrence, I solved it using the substitution method to get the general solution:
$a_n = A3^n + Bn3^n$
With the initial conditions $a_0 = -1$ and $a_1 = 1$, I got the particular solution:
$a_n = -3^n + frac{4}{3}n3^n$
It satisfies the two initial conditions but now I must substitute it into the recurrence relation to prov that it satisfies the recurrence relation.
I understand that I have to substitute it in to get:
$a_n = 6(-3^{n-1} + frac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + frac{4}{3}(n-2)
; 3^{n-2})$
How do I go to solve this to prove that it does in fact satisfy the recurrence relation?
recurrence-relations
$endgroup$
1
$begingroup$
Do you mean something like $$ a_n = 6 a_{n-1} - 9 a_{n-2} $$ ?
$endgroup$
– Matti P.
Dec 14 '18 at 11:53
$begingroup$
Indeed you have to prove that $$6(-3^{n-1} + tfrac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + tfrac{4}{3}(n-2) ; 3^{n-2})$$ equals $$-3^n+tfrac43n3^n$$ (but watch out your parentheses, the correct version is in this comment...). This should not be that difficult...
$endgroup$
– Did
Dec 14 '18 at 12:23
$begingroup$
You are missing parentheses: you should have $6(-3^{n-1}+ frac{4}{3}(n- 1)3^{n-1})- 9(-3^{n-2}+ frac{4}{3}(n-2)3^{n-2})$
$endgroup$
– user247327
Dec 14 '18 at 12:24
$begingroup$
Yes, but I don't understand how to prove it.
$endgroup$
– Eddy99
Dec 14 '18 at 15:30
add a comment |
$begingroup$
I have been trying to solve a recurrence relation:
$a_n = 6_{a_{n-1}} - 9_{a_{n-2}}$
As it is a 2nd order linear, homogeneous recurrence, I solved it using the substitution method to get the general solution:
$a_n = A3^n + Bn3^n$
With the initial conditions $a_0 = -1$ and $a_1 = 1$, I got the particular solution:
$a_n = -3^n + frac{4}{3}n3^n$
It satisfies the two initial conditions but now I must substitute it into the recurrence relation to prov that it satisfies the recurrence relation.
I understand that I have to substitute it in to get:
$a_n = 6(-3^{n-1} + frac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + frac{4}{3}(n-2)
; 3^{n-2})$
How do I go to solve this to prove that it does in fact satisfy the recurrence relation?
recurrence-relations
$endgroup$
I have been trying to solve a recurrence relation:
$a_n = 6_{a_{n-1}} - 9_{a_{n-2}}$
As it is a 2nd order linear, homogeneous recurrence, I solved it using the substitution method to get the general solution:
$a_n = A3^n + Bn3^n$
With the initial conditions $a_0 = -1$ and $a_1 = 1$, I got the particular solution:
$a_n = -3^n + frac{4}{3}n3^n$
It satisfies the two initial conditions but now I must substitute it into the recurrence relation to prov that it satisfies the recurrence relation.
I understand that I have to substitute it in to get:
$a_n = 6(-3^{n-1} + frac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + frac{4}{3}(n-2)
; 3^{n-2})$
How do I go to solve this to prove that it does in fact satisfy the recurrence relation?
recurrence-relations
recurrence-relations
edited Dec 14 '18 at 12:56
Eddy99
asked Dec 14 '18 at 11:44
Eddy99Eddy99
61
61
1
$begingroup$
Do you mean something like $$ a_n = 6 a_{n-1} - 9 a_{n-2} $$ ?
$endgroup$
– Matti P.
Dec 14 '18 at 11:53
$begingroup$
Indeed you have to prove that $$6(-3^{n-1} + tfrac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + tfrac{4}{3}(n-2) ; 3^{n-2})$$ equals $$-3^n+tfrac43n3^n$$ (but watch out your parentheses, the correct version is in this comment...). This should not be that difficult...
$endgroup$
– Did
Dec 14 '18 at 12:23
$begingroup$
You are missing parentheses: you should have $6(-3^{n-1}+ frac{4}{3}(n- 1)3^{n-1})- 9(-3^{n-2}+ frac{4}{3}(n-2)3^{n-2})$
$endgroup$
– user247327
Dec 14 '18 at 12:24
$begingroup$
Yes, but I don't understand how to prove it.
$endgroup$
– Eddy99
Dec 14 '18 at 15:30
add a comment |
1
$begingroup$
Do you mean something like $$ a_n = 6 a_{n-1} - 9 a_{n-2} $$ ?
$endgroup$
– Matti P.
Dec 14 '18 at 11:53
$begingroup$
Indeed you have to prove that $$6(-3^{n-1} + tfrac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + tfrac{4}{3}(n-2) ; 3^{n-2})$$ equals $$-3^n+tfrac43n3^n$$ (but watch out your parentheses, the correct version is in this comment...). This should not be that difficult...
$endgroup$
– Did
Dec 14 '18 at 12:23
$begingroup$
You are missing parentheses: you should have $6(-3^{n-1}+ frac{4}{3}(n- 1)3^{n-1})- 9(-3^{n-2}+ frac{4}{3}(n-2)3^{n-2})$
$endgroup$
– user247327
Dec 14 '18 at 12:24
$begingroup$
Yes, but I don't understand how to prove it.
$endgroup$
– Eddy99
Dec 14 '18 at 15:30
1
1
$begingroup$
Do you mean something like $$ a_n = 6 a_{n-1} - 9 a_{n-2} $$ ?
$endgroup$
– Matti P.
Dec 14 '18 at 11:53
$begingroup$
Do you mean something like $$ a_n = 6 a_{n-1} - 9 a_{n-2} $$ ?
$endgroup$
– Matti P.
Dec 14 '18 at 11:53
$begingroup$
Indeed you have to prove that $$6(-3^{n-1} + tfrac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + tfrac{4}{3}(n-2) ; 3^{n-2})$$ equals $$-3^n+tfrac43n3^n$$ (but watch out your parentheses, the correct version is in this comment...). This should not be that difficult...
$endgroup$
– Did
Dec 14 '18 at 12:23
$begingroup$
Indeed you have to prove that $$6(-3^{n-1} + tfrac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + tfrac{4}{3}(n-2) ; 3^{n-2})$$ equals $$-3^n+tfrac43n3^n$$ (but watch out your parentheses, the correct version is in this comment...). This should not be that difficult...
$endgroup$
– Did
Dec 14 '18 at 12:23
$begingroup$
You are missing parentheses: you should have $6(-3^{n-1}+ frac{4}{3}(n- 1)3^{n-1})- 9(-3^{n-2}+ frac{4}{3}(n-2)3^{n-2})$
$endgroup$
– user247327
Dec 14 '18 at 12:24
$begingroup$
You are missing parentheses: you should have $6(-3^{n-1}+ frac{4}{3}(n- 1)3^{n-1})- 9(-3^{n-2}+ frac{4}{3}(n-2)3^{n-2})$
$endgroup$
– user247327
Dec 14 '18 at 12:24
$begingroup$
Yes, but I don't understand how to prove it.
$endgroup$
– Eddy99
Dec 14 '18 at 15:30
$begingroup$
Yes, but I don't understand how to prove it.
$endgroup$
– Eddy99
Dec 14 '18 at 15:30
add a comment |
0
active
oldest
votes
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%2f3039263%2fverifying-correctness-of-a-solution-to-a-recurrence-relation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f3039263%2fverifying-correctness-of-a-solution-to-a-recurrence-relation%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
$begingroup$
Do you mean something like $$ a_n = 6 a_{n-1} - 9 a_{n-2} $$ ?
$endgroup$
– Matti P.
Dec 14 '18 at 11:53
$begingroup$
Indeed you have to prove that $$6(-3^{n-1} + tfrac{4}{3}(n-1); 3^{n-1}) - 9(-3^{n-2} + tfrac{4}{3}(n-2) ; 3^{n-2})$$ equals $$-3^n+tfrac43n3^n$$ (but watch out your parentheses, the correct version is in this comment...). This should not be that difficult...
$endgroup$
– Did
Dec 14 '18 at 12:23
$begingroup$
You are missing parentheses: you should have $6(-3^{n-1}+ frac{4}{3}(n- 1)3^{n-1})- 9(-3^{n-2}+ frac{4}{3}(n-2)3^{n-2})$
$endgroup$
– user247327
Dec 14 '18 at 12:24
$begingroup$
Yes, but I don't understand how to prove it.
$endgroup$
– Eddy99
Dec 14 '18 at 15:30