Solving a nonhomogeneous recurrence relation?











up vote
1
down vote

favorite












I was asked to find a first order linear recurrence relation for



$$
a_n=3n^2-2n+1
$$



Here is what I did
begin{align}label{1}
a_{n-1} &= 3(n-1)^2-2(n-1)+1\
&=3(n^2-2n+1)-2n+2+1\
&=underbrace{3n^2-2n+1}_{a_n}-6n+5\
&=a_n-6n+5
end{align}

Thus,
begin{align}
a_n-a_{n-1}=6n-5tag{1}label{2}
end{align}

with $a_0=1$ is a first order recurrence relation for the given sequence.



But I was unable to retrieve the given sequence from this recurrence relation. Clearly, the recurrence is nonhomogeneous. So, its solution is of the form
$$
a_n=a_n^h+a_n^p
$$

Now,
$$
a_n^h=c, mbox{any constant}
$$

Since $f(n)=-6n+5$o to find a particular solution for the non-homogeneous part, we set
$a_n^p=A_1n+A_0$, where $A_1,A_0$ are constant. Substituting this into (ref{2}) yield
begin{align*}
A_1n+A_0-[A_1(n-1)+A_0]&=6n-5\
A_1 &= 6n-5
end{align*}

I have tried this again and again but I couldn't tell what is happening? What is wrong with me?




Edited: Let me put it in this way, solve
begin{align}
a_n-a_{n-1}=6n-5, a_0=1.
end{align}











share|cite|improve this question




















  • 1




    Try $$a_n^p=A_1n^2+A_0n.$$
    – bof
    Nov 22 at 13:07










  • @bof, Why? $f(n)=6n-5$, a polynomial of degree one, shouldn't our particular solution take the same form?
    – marya
    Nov 22 at 13:15








  • 1




    In your $a_n^p=A_1n+A_0$ the $A_0$ term is useless, because $a_n=A_0$ is a solution of the homogeneous recurrence $a_n-a_{n-1}=0$.
    – bof
    Nov 22 at 21:56










  • It's basically the same reason why, in solving the nonhomogeneous DIFFERENTIAL equation $y'-y=(6x+1)e^x$, you would look for a particular solution of the form $y_p=(Ax^2+Bx)e^x$ instead of $y_p=(Ax+B)e^x$.
    – bof
    Nov 23 at 4:18










  • Actually, you could turn your recurrence into a differential equation by considering the exponential generating function $$y(x)=sum_{n=0}^inftyfrac{a_n}{n!}x^n.$$
    – bof
    Nov 23 at 4:20















up vote
1
down vote

favorite












I was asked to find a first order linear recurrence relation for



$$
a_n=3n^2-2n+1
$$



Here is what I did
begin{align}label{1}
a_{n-1} &= 3(n-1)^2-2(n-1)+1\
&=3(n^2-2n+1)-2n+2+1\
&=underbrace{3n^2-2n+1}_{a_n}-6n+5\
&=a_n-6n+5
end{align}

Thus,
begin{align}
a_n-a_{n-1}=6n-5tag{1}label{2}
end{align}

with $a_0=1$ is a first order recurrence relation for the given sequence.



But I was unable to retrieve the given sequence from this recurrence relation. Clearly, the recurrence is nonhomogeneous. So, its solution is of the form
$$
a_n=a_n^h+a_n^p
$$

Now,
$$
a_n^h=c, mbox{any constant}
$$

Since $f(n)=-6n+5$o to find a particular solution for the non-homogeneous part, we set
$a_n^p=A_1n+A_0$, where $A_1,A_0$ are constant. Substituting this into (ref{2}) yield
begin{align*}
A_1n+A_0-[A_1(n-1)+A_0]&=6n-5\
A_1 &= 6n-5
end{align*}

I have tried this again and again but I couldn't tell what is happening? What is wrong with me?




Edited: Let me put it in this way, solve
begin{align}
a_n-a_{n-1}=6n-5, a_0=1.
end{align}











share|cite|improve this question




















  • 1




    Try $$a_n^p=A_1n^2+A_0n.$$
    – bof
    Nov 22 at 13:07










  • @bof, Why? $f(n)=6n-5$, a polynomial of degree one, shouldn't our particular solution take the same form?
    – marya
    Nov 22 at 13:15








  • 1




    In your $a_n^p=A_1n+A_0$ the $A_0$ term is useless, because $a_n=A_0$ is a solution of the homogeneous recurrence $a_n-a_{n-1}=0$.
    – bof
    Nov 22 at 21:56










  • It's basically the same reason why, in solving the nonhomogeneous DIFFERENTIAL equation $y'-y=(6x+1)e^x$, you would look for a particular solution of the form $y_p=(Ax^2+Bx)e^x$ instead of $y_p=(Ax+B)e^x$.
    – bof
    Nov 23 at 4:18










  • Actually, you could turn your recurrence into a differential equation by considering the exponential generating function $$y(x)=sum_{n=0}^inftyfrac{a_n}{n!}x^n.$$
    – bof
    Nov 23 at 4:20













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I was asked to find a first order linear recurrence relation for



$$
a_n=3n^2-2n+1
$$



Here is what I did
begin{align}label{1}
a_{n-1} &= 3(n-1)^2-2(n-1)+1\
&=3(n^2-2n+1)-2n+2+1\
&=underbrace{3n^2-2n+1}_{a_n}-6n+5\
&=a_n-6n+5
end{align}

Thus,
begin{align}
a_n-a_{n-1}=6n-5tag{1}label{2}
end{align}

with $a_0=1$ is a first order recurrence relation for the given sequence.



But I was unable to retrieve the given sequence from this recurrence relation. Clearly, the recurrence is nonhomogeneous. So, its solution is of the form
$$
a_n=a_n^h+a_n^p
$$

Now,
$$
a_n^h=c, mbox{any constant}
$$

Since $f(n)=-6n+5$o to find a particular solution for the non-homogeneous part, we set
$a_n^p=A_1n+A_0$, where $A_1,A_0$ are constant. Substituting this into (ref{2}) yield
begin{align*}
A_1n+A_0-[A_1(n-1)+A_0]&=6n-5\
A_1 &= 6n-5
end{align*}

I have tried this again and again but I couldn't tell what is happening? What is wrong with me?




Edited: Let me put it in this way, solve
begin{align}
a_n-a_{n-1}=6n-5, a_0=1.
end{align}











share|cite|improve this question















I was asked to find a first order linear recurrence relation for



$$
a_n=3n^2-2n+1
$$



Here is what I did
begin{align}label{1}
a_{n-1} &= 3(n-1)^2-2(n-1)+1\
&=3(n^2-2n+1)-2n+2+1\
&=underbrace{3n^2-2n+1}_{a_n}-6n+5\
&=a_n-6n+5
end{align}

Thus,
begin{align}
a_n-a_{n-1}=6n-5tag{1}label{2}
end{align}

with $a_0=1$ is a first order recurrence relation for the given sequence.



But I was unable to retrieve the given sequence from this recurrence relation. Clearly, the recurrence is nonhomogeneous. So, its solution is of the form
$$
a_n=a_n^h+a_n^p
$$

Now,
$$
a_n^h=c, mbox{any constant}
$$

Since $f(n)=-6n+5$o to find a particular solution for the non-homogeneous part, we set
$a_n^p=A_1n+A_0$, where $A_1,A_0$ are constant. Substituting this into (ref{2}) yield
begin{align*}
A_1n+A_0-[A_1(n-1)+A_0]&=6n-5\
A_1 &= 6n-5
end{align*}

I have tried this again and again but I couldn't tell what is happening? What is wrong with me?




Edited: Let me put it in this way, solve
begin{align}
a_n-a_{n-1}=6n-5, a_0=1.
end{align}








recurrence-relations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 22 at 13:03

























asked Nov 22 at 12:23









marya

373217




373217








  • 1




    Try $$a_n^p=A_1n^2+A_0n.$$
    – bof
    Nov 22 at 13:07










  • @bof, Why? $f(n)=6n-5$, a polynomial of degree one, shouldn't our particular solution take the same form?
    – marya
    Nov 22 at 13:15








  • 1




    In your $a_n^p=A_1n+A_0$ the $A_0$ term is useless, because $a_n=A_0$ is a solution of the homogeneous recurrence $a_n-a_{n-1}=0$.
    – bof
    Nov 22 at 21:56










  • It's basically the same reason why, in solving the nonhomogeneous DIFFERENTIAL equation $y'-y=(6x+1)e^x$, you would look for a particular solution of the form $y_p=(Ax^2+Bx)e^x$ instead of $y_p=(Ax+B)e^x$.
    – bof
    Nov 23 at 4:18










  • Actually, you could turn your recurrence into a differential equation by considering the exponential generating function $$y(x)=sum_{n=0}^inftyfrac{a_n}{n!}x^n.$$
    – bof
    Nov 23 at 4:20














  • 1




    Try $$a_n^p=A_1n^2+A_0n.$$
    – bof
    Nov 22 at 13:07










  • @bof, Why? $f(n)=6n-5$, a polynomial of degree one, shouldn't our particular solution take the same form?
    – marya
    Nov 22 at 13:15








  • 1




    In your $a_n^p=A_1n+A_0$ the $A_0$ term is useless, because $a_n=A_0$ is a solution of the homogeneous recurrence $a_n-a_{n-1}=0$.
    – bof
    Nov 22 at 21:56










  • It's basically the same reason why, in solving the nonhomogeneous DIFFERENTIAL equation $y'-y=(6x+1)e^x$, you would look for a particular solution of the form $y_p=(Ax^2+Bx)e^x$ instead of $y_p=(Ax+B)e^x$.
    – bof
    Nov 23 at 4:18










  • Actually, you could turn your recurrence into a differential equation by considering the exponential generating function $$y(x)=sum_{n=0}^inftyfrac{a_n}{n!}x^n.$$
    – bof
    Nov 23 at 4:20








1




1




Try $$a_n^p=A_1n^2+A_0n.$$
– bof
Nov 22 at 13:07




Try $$a_n^p=A_1n^2+A_0n.$$
– bof
Nov 22 at 13:07












@bof, Why? $f(n)=6n-5$, a polynomial of degree one, shouldn't our particular solution take the same form?
– marya
Nov 22 at 13:15






@bof, Why? $f(n)=6n-5$, a polynomial of degree one, shouldn't our particular solution take the same form?
– marya
Nov 22 at 13:15






1




1




In your $a_n^p=A_1n+A_0$ the $A_0$ term is useless, because $a_n=A_0$ is a solution of the homogeneous recurrence $a_n-a_{n-1}=0$.
– bof
Nov 22 at 21:56




In your $a_n^p=A_1n+A_0$ the $A_0$ term is useless, because $a_n=A_0$ is a solution of the homogeneous recurrence $a_n-a_{n-1}=0$.
– bof
Nov 22 at 21:56












It's basically the same reason why, in solving the nonhomogeneous DIFFERENTIAL equation $y'-y=(6x+1)e^x$, you would look for a particular solution of the form $y_p=(Ax^2+Bx)e^x$ instead of $y_p=(Ax+B)e^x$.
– bof
Nov 23 at 4:18




It's basically the same reason why, in solving the nonhomogeneous DIFFERENTIAL equation $y'-y=(6x+1)e^x$, you would look for a particular solution of the form $y_p=(Ax^2+Bx)e^x$ instead of $y_p=(Ax+B)e^x$.
– bof
Nov 23 at 4:18












Actually, you could turn your recurrence into a differential equation by considering the exponential generating function $$y(x)=sum_{n=0}^inftyfrac{a_n}{n!}x^n.$$
– bof
Nov 23 at 4:20




Actually, you could turn your recurrence into a differential equation by considering the exponential generating function $$y(x)=sum_{n=0}^inftyfrac{a_n}{n!}x^n.$$
– bof
Nov 23 at 4:20










1 Answer
1






active

oldest

votes

















up vote
1
down vote













$implies$



$$a_n-a_{n-1}=6n-5iff6n=?$$
$$ a_{n+1}-a_n=6(n+1)-5iff6n=?$$



Compare the two values of $6n?$






share|cite|improve this answer





















  • @marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
    – lab bhattacharjee
    Nov 22 at 12:49











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',
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%2f3009066%2fsolving-a-nonhomogeneous-recurrence-relation%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








up vote
1
down vote













$implies$



$$a_n-a_{n-1}=6n-5iff6n=?$$
$$ a_{n+1}-a_n=6(n+1)-5iff6n=?$$



Compare the two values of $6n?$






share|cite|improve this answer





















  • @marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
    – lab bhattacharjee
    Nov 22 at 12:49















up vote
1
down vote













$implies$



$$a_n-a_{n-1}=6n-5iff6n=?$$
$$ a_{n+1}-a_n=6(n+1)-5iff6n=?$$



Compare the two values of $6n?$






share|cite|improve this answer





















  • @marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
    – lab bhattacharjee
    Nov 22 at 12:49













up vote
1
down vote










up vote
1
down vote









$implies$



$$a_n-a_{n-1}=6n-5iff6n=?$$
$$ a_{n+1}-a_n=6(n+1)-5iff6n=?$$



Compare the two values of $6n?$






share|cite|improve this answer












$implies$



$$a_n-a_{n-1}=6n-5iff6n=?$$
$$ a_{n+1}-a_n=6(n+1)-5iff6n=?$$



Compare the two values of $6n?$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 22 at 12:28









lab bhattacharjee

222k15155273




222k15155273












  • @marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
    – lab bhattacharjee
    Nov 22 at 12:49


















  • @marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
    – lab bhattacharjee
    Nov 22 at 12:49
















@marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
– lab bhattacharjee
Nov 22 at 12:49




@marya, $$3{n^2-(n-1)^2}-2{n-(n-1)}=3(2n-1)-2=6n-5$$ is correct
– lab bhattacharjee
Nov 22 at 12:49


















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.





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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3009066%2fsolving-a-nonhomogeneous-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

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei