I am unsure what I am doing wrong with difference equations











up vote
0
down vote

favorite












The first one is:
$x(n+2) - 4x(n) = 27n^2$, $x(0) = 1$, $x(1) = 3$.



So I work out the complimentary and particular solutions and add them, and I get:



$$x(n) = 5(2)^n + 2(-2)^n - 9n^2 + 12n - 6.$$



However, because I was unsure, I used this to check https://www.wolframalpha.com/input/?i=g(0)%3D1,+g(n%2B1)%3Dn%5E2%2Bg(n)&lk=3



and it says the answer is:



$$x(n) = frac14 (e^{2 i pi n} (-9 n^2 + 6 n + 1) + 43 cdot 2^{n + 1} - 2^{n + 1} e^{i pi n} - 27 (n (n + 2) + 3))$$



I also have a problem with:



$$x(n+1)-4x(n)+3x(n-1)=36n^2$$



When solving for the constants in the particular, I am getting $0=36n^2$,
and because of this, I feel that I am missing something.



Thanks for any help.










share|cite|improve this question
























  • As a start, you know that $e^{2pi i n} = 1$ and $e^{pi i n} = -1$. Maybe you can simplify the answer from Wolfram a bit now.
    – D.B.
    Nov 22 at 4:41








  • 1




    1. $mathrm e^{2mathrm i pi n} = 1, mathrm e^{mathrm i pi n} = (-1)^n$. 2. If you cannot get a feasible solution for the particular ones, raise the greatest power [2 to 3] and do it again.
    – xbh
    Nov 22 at 4:43










  • So I have tried simplifying using e2πin=1 and eπin=−1, I end up getting -9n^2 + 12n + (-1)^n * 2^(n-1) -43 * 2^(n-1) +20
    – Plz help me
    Nov 22 at 11:41










  • I've managed to do it now, I realised I made a very stupid mistake, thank you for the help
    – Plz help me
    Nov 22 at 12:39















up vote
0
down vote

favorite












The first one is:
$x(n+2) - 4x(n) = 27n^2$, $x(0) = 1$, $x(1) = 3$.



So I work out the complimentary and particular solutions and add them, and I get:



$$x(n) = 5(2)^n + 2(-2)^n - 9n^2 + 12n - 6.$$



However, because I was unsure, I used this to check https://www.wolframalpha.com/input/?i=g(0)%3D1,+g(n%2B1)%3Dn%5E2%2Bg(n)&lk=3



and it says the answer is:



$$x(n) = frac14 (e^{2 i pi n} (-9 n^2 + 6 n + 1) + 43 cdot 2^{n + 1} - 2^{n + 1} e^{i pi n} - 27 (n (n + 2) + 3))$$



I also have a problem with:



$$x(n+1)-4x(n)+3x(n-1)=36n^2$$



When solving for the constants in the particular, I am getting $0=36n^2$,
and because of this, I feel that I am missing something.



Thanks for any help.










share|cite|improve this question
























  • As a start, you know that $e^{2pi i n} = 1$ and $e^{pi i n} = -1$. Maybe you can simplify the answer from Wolfram a bit now.
    – D.B.
    Nov 22 at 4:41








  • 1




    1. $mathrm e^{2mathrm i pi n} = 1, mathrm e^{mathrm i pi n} = (-1)^n$. 2. If you cannot get a feasible solution for the particular ones, raise the greatest power [2 to 3] and do it again.
    – xbh
    Nov 22 at 4:43










  • So I have tried simplifying using e2πin=1 and eπin=−1, I end up getting -9n^2 + 12n + (-1)^n * 2^(n-1) -43 * 2^(n-1) +20
    – Plz help me
    Nov 22 at 11:41










  • I've managed to do it now, I realised I made a very stupid mistake, thank you for the help
    – Plz help me
    Nov 22 at 12:39













up vote
0
down vote

favorite









up vote
0
down vote

favorite











The first one is:
$x(n+2) - 4x(n) = 27n^2$, $x(0) = 1$, $x(1) = 3$.



So I work out the complimentary and particular solutions and add them, and I get:



$$x(n) = 5(2)^n + 2(-2)^n - 9n^2 + 12n - 6.$$



However, because I was unsure, I used this to check https://www.wolframalpha.com/input/?i=g(0)%3D1,+g(n%2B1)%3Dn%5E2%2Bg(n)&lk=3



and it says the answer is:



$$x(n) = frac14 (e^{2 i pi n} (-9 n^2 + 6 n + 1) + 43 cdot 2^{n + 1} - 2^{n + 1} e^{i pi n} - 27 (n (n + 2) + 3))$$



I also have a problem with:



$$x(n+1)-4x(n)+3x(n-1)=36n^2$$



When solving for the constants in the particular, I am getting $0=36n^2$,
and because of this, I feel that I am missing something.



Thanks for any help.










share|cite|improve this question















The first one is:
$x(n+2) - 4x(n) = 27n^2$, $x(0) = 1$, $x(1) = 3$.



So I work out the complimentary and particular solutions and add them, and I get:



$$x(n) = 5(2)^n + 2(-2)^n - 9n^2 + 12n - 6.$$



However, because I was unsure, I used this to check https://www.wolframalpha.com/input/?i=g(0)%3D1,+g(n%2B1)%3Dn%5E2%2Bg(n)&lk=3



and it says the answer is:



$$x(n) = frac14 (e^{2 i pi n} (-9 n^2 + 6 n + 1) + 43 cdot 2^{n + 1} - 2^{n + 1} e^{i pi n} - 27 (n (n + 2) + 3))$$



I also have a problem with:



$$x(n+1)-4x(n)+3x(n-1)=36n^2$$



When solving for the constants in the particular, I am getting $0=36n^2$,
and because of this, I feel that I am missing something.



Thanks for any help.







differential-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 22 at 4:23









Rócherz

2,7412721




2,7412721










asked Nov 22 at 4:11









Plz help me

766




766












  • As a start, you know that $e^{2pi i n} = 1$ and $e^{pi i n} = -1$. Maybe you can simplify the answer from Wolfram a bit now.
    – D.B.
    Nov 22 at 4:41








  • 1




    1. $mathrm e^{2mathrm i pi n} = 1, mathrm e^{mathrm i pi n} = (-1)^n$. 2. If you cannot get a feasible solution for the particular ones, raise the greatest power [2 to 3] and do it again.
    – xbh
    Nov 22 at 4:43










  • So I have tried simplifying using e2πin=1 and eπin=−1, I end up getting -9n^2 + 12n + (-1)^n * 2^(n-1) -43 * 2^(n-1) +20
    – Plz help me
    Nov 22 at 11:41










  • I've managed to do it now, I realised I made a very stupid mistake, thank you for the help
    – Plz help me
    Nov 22 at 12:39


















  • As a start, you know that $e^{2pi i n} = 1$ and $e^{pi i n} = -1$. Maybe you can simplify the answer from Wolfram a bit now.
    – D.B.
    Nov 22 at 4:41








  • 1




    1. $mathrm e^{2mathrm i pi n} = 1, mathrm e^{mathrm i pi n} = (-1)^n$. 2. If you cannot get a feasible solution for the particular ones, raise the greatest power [2 to 3] and do it again.
    – xbh
    Nov 22 at 4:43










  • So I have tried simplifying using e2πin=1 and eπin=−1, I end up getting -9n^2 + 12n + (-1)^n * 2^(n-1) -43 * 2^(n-1) +20
    – Plz help me
    Nov 22 at 11:41










  • I've managed to do it now, I realised I made a very stupid mistake, thank you for the help
    – Plz help me
    Nov 22 at 12:39
















As a start, you know that $e^{2pi i n} = 1$ and $e^{pi i n} = -1$. Maybe you can simplify the answer from Wolfram a bit now.
– D.B.
Nov 22 at 4:41






As a start, you know that $e^{2pi i n} = 1$ and $e^{pi i n} = -1$. Maybe you can simplify the answer from Wolfram a bit now.
– D.B.
Nov 22 at 4:41






1




1




1. $mathrm e^{2mathrm i pi n} = 1, mathrm e^{mathrm i pi n} = (-1)^n$. 2. If you cannot get a feasible solution for the particular ones, raise the greatest power [2 to 3] and do it again.
– xbh
Nov 22 at 4:43




1. $mathrm e^{2mathrm i pi n} = 1, mathrm e^{mathrm i pi n} = (-1)^n$. 2. If you cannot get a feasible solution for the particular ones, raise the greatest power [2 to 3] and do it again.
– xbh
Nov 22 at 4:43












So I have tried simplifying using e2πin=1 and eπin=−1, I end up getting -9n^2 + 12n + (-1)^n * 2^(n-1) -43 * 2^(n-1) +20
– Plz help me
Nov 22 at 11:41




So I have tried simplifying using e2πin=1 and eπin=−1, I end up getting -9n^2 + 12n + (-1)^n * 2^(n-1) -43 * 2^(n-1) +20
– Plz help me
Nov 22 at 11:41












I've managed to do it now, I realised I made a very stupid mistake, thank you for the help
– Plz help me
Nov 22 at 12:39




I've managed to do it now, I realised I made a very stupid mistake, thank you for the help
– Plz help me
Nov 22 at 12:39















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',
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%2f3008731%2fi-am-unsure-what-i-am-doing-wrong-with-difference-equations%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













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.





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%2f3008731%2fi-am-unsure-what-i-am-doing-wrong-with-difference-equations%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei