Verifying correctness of a solution to a recurrence relation












-2












$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?










share|cite|improve this question











$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
















-2












$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?










share|cite|improve this question











$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














-2












-2








-2





$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?










share|cite|improve this question











$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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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














  • 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










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
});


}
});














draft saved

draft discarded


















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
















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%2f3039263%2fverifying-correctness-of-a-solution-to-a-recurrence-relation%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

Bressuire

Cabo Verde

Gyllenstierna