Particular solutions to $y''+4y=cos^2(x)$












1














I have to solve the equation above but after I have solved the homogeneous part:
$$y_h=Acos(2x)+Bsin(2x), ; A,Binmathbb{C},$$
I don't get it how to find $y_p$. I am told to deduct it from $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, but I don't understand how. Can you help me tho?










share|cite|improve this question









New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Note that $cos 2x$ solves the homogeneous equation and also appears in the nonhomogeneity term. Do you know how to modify it to get a particular solution in such a case?
    – Oscar Lanzi
    Jan 4 at 14:46












  • No I can't find out the way to get a particular solution
    – Alexis
    Jan 4 at 14:55
















1














I have to solve the equation above but after I have solved the homogeneous part:
$$y_h=Acos(2x)+Bsin(2x), ; A,Binmathbb{C},$$
I don't get it how to find $y_p$. I am told to deduct it from $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, but I don't understand how. Can you help me tho?










share|cite|improve this question









New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Note that $cos 2x$ solves the homogeneous equation and also appears in the nonhomogeneity term. Do you know how to modify it to get a particular solution in such a case?
    – Oscar Lanzi
    Jan 4 at 14:46












  • No I can't find out the way to get a particular solution
    – Alexis
    Jan 4 at 14:55














1












1








1


1





I have to solve the equation above but after I have solved the homogeneous part:
$$y_h=Acos(2x)+Bsin(2x), ; A,Binmathbb{C},$$
I don't get it how to find $y_p$. I am told to deduct it from $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, but I don't understand how. Can you help me tho?










share|cite|improve this question









New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have to solve the equation above but after I have solved the homogeneous part:
$$y_h=Acos(2x)+Bsin(2x), ; A,Binmathbb{C},$$
I don't get it how to find $y_p$. I am told to deduct it from $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, but I don't understand how. Can you help me tho?







differential-equations






share|cite|improve this question









New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited Jan 4 at 14:52









zipirovich

11.2k11631




11.2k11631






New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 4 at 14:38









AlexisAlexis

82




82




New contributor




Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Alexis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Note that $cos 2x$ solves the homogeneous equation and also appears in the nonhomogeneity term. Do you know how to modify it to get a particular solution in such a case?
    – Oscar Lanzi
    Jan 4 at 14:46












  • No I can't find out the way to get a particular solution
    – Alexis
    Jan 4 at 14:55














  • 1




    Note that $cos 2x$ solves the homogeneous equation and also appears in the nonhomogeneity term. Do you know how to modify it to get a particular solution in such a case?
    – Oscar Lanzi
    Jan 4 at 14:46












  • No I can't find out the way to get a particular solution
    – Alexis
    Jan 4 at 14:55








1




1




Note that $cos 2x$ solves the homogeneous equation and also appears in the nonhomogeneity term. Do you know how to modify it to get a particular solution in such a case?
– Oscar Lanzi
Jan 4 at 14:46






Note that $cos 2x$ solves the homogeneous equation and also appears in the nonhomogeneity term. Do you know how to modify it to get a particular solution in such a case?
– Oscar Lanzi
Jan 4 at 14:46














No I can't find out the way to get a particular solution
– Alexis
Jan 4 at 14:55




No I can't find out the way to get a particular solution
– Alexis
Jan 4 at 14:55










1 Answer
1






active

oldest

votes


















2














What the hint means is that first of all you literally replace the right-hand side of the equation with $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, so now you're looking for a particular solution to
$$y''+4y=frac{1}{2}cos(2x)+frac{1}{2}.$$
Moreover, by the superposition principle for particular solutions (see e.g. here or here), we may seek separate solutions to
$$y''+4y=frac{1}{2}cos(2x) quad text{and} quad y''+4y=frac{1}{2}$$
and then add them together.




  • For the first equation $y''+4y=frac{1}{2}cos(2x)$, note that $lambda=pm2i$ were the roots of the characteristic equation, so you should set up a particular solution in the form $y_{p1}(x)=x(Acos(2x)+Bsin(2x))$.

  • For the second equation $y''+4y=frac{1}{2}$, note that $lambda=0$ was not a root of the characteristic equation, so you should set up a particular solution in the form $y_{p2}(x)=A$.






share|cite|improve this answer





















  • Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
    – Alexis
    Jan 4 at 15:19












  • @Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
    – zipirovich
    Jan 4 at 15:21










  • Alright then I get it thank you very much for your help !
    – Alexis
    Jan 4 at 15:25













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


}
});






Alexis is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3061711%2fparticular-solutions-to-y4y-cos2x%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









2














What the hint means is that first of all you literally replace the right-hand side of the equation with $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, so now you're looking for a particular solution to
$$y''+4y=frac{1}{2}cos(2x)+frac{1}{2}.$$
Moreover, by the superposition principle for particular solutions (see e.g. here or here), we may seek separate solutions to
$$y''+4y=frac{1}{2}cos(2x) quad text{and} quad y''+4y=frac{1}{2}$$
and then add them together.




  • For the first equation $y''+4y=frac{1}{2}cos(2x)$, note that $lambda=pm2i$ were the roots of the characteristic equation, so you should set up a particular solution in the form $y_{p1}(x)=x(Acos(2x)+Bsin(2x))$.

  • For the second equation $y''+4y=frac{1}{2}$, note that $lambda=0$ was not a root of the characteristic equation, so you should set up a particular solution in the form $y_{p2}(x)=A$.






share|cite|improve this answer





















  • Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
    – Alexis
    Jan 4 at 15:19












  • @Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
    – zipirovich
    Jan 4 at 15:21










  • Alright then I get it thank you very much for your help !
    – Alexis
    Jan 4 at 15:25


















2














What the hint means is that first of all you literally replace the right-hand side of the equation with $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, so now you're looking for a particular solution to
$$y''+4y=frac{1}{2}cos(2x)+frac{1}{2}.$$
Moreover, by the superposition principle for particular solutions (see e.g. here or here), we may seek separate solutions to
$$y''+4y=frac{1}{2}cos(2x) quad text{and} quad y''+4y=frac{1}{2}$$
and then add them together.




  • For the first equation $y''+4y=frac{1}{2}cos(2x)$, note that $lambda=pm2i$ were the roots of the characteristic equation, so you should set up a particular solution in the form $y_{p1}(x)=x(Acos(2x)+Bsin(2x))$.

  • For the second equation $y''+4y=frac{1}{2}$, note that $lambda=0$ was not a root of the characteristic equation, so you should set up a particular solution in the form $y_{p2}(x)=A$.






share|cite|improve this answer





















  • Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
    – Alexis
    Jan 4 at 15:19












  • @Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
    – zipirovich
    Jan 4 at 15:21










  • Alright then I get it thank you very much for your help !
    – Alexis
    Jan 4 at 15:25
















2












2








2






What the hint means is that first of all you literally replace the right-hand side of the equation with $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, so now you're looking for a particular solution to
$$y''+4y=frac{1}{2}cos(2x)+frac{1}{2}.$$
Moreover, by the superposition principle for particular solutions (see e.g. here or here), we may seek separate solutions to
$$y''+4y=frac{1}{2}cos(2x) quad text{and} quad y''+4y=frac{1}{2}$$
and then add them together.




  • For the first equation $y''+4y=frac{1}{2}cos(2x)$, note that $lambda=pm2i$ were the roots of the characteristic equation, so you should set up a particular solution in the form $y_{p1}(x)=x(Acos(2x)+Bsin(2x))$.

  • For the second equation $y''+4y=frac{1}{2}$, note that $lambda=0$ was not a root of the characteristic equation, so you should set up a particular solution in the form $y_{p2}(x)=A$.






share|cite|improve this answer












What the hint means is that first of all you literally replace the right-hand side of the equation with $cos^2(x)=frac{1}{2}cos(2x)+frac{1}{2}$, so now you're looking for a particular solution to
$$y''+4y=frac{1}{2}cos(2x)+frac{1}{2}.$$
Moreover, by the superposition principle for particular solutions (see e.g. here or here), we may seek separate solutions to
$$y''+4y=frac{1}{2}cos(2x) quad text{and} quad y''+4y=frac{1}{2}$$
and then add them together.




  • For the first equation $y''+4y=frac{1}{2}cos(2x)$, note that $lambda=pm2i$ were the roots of the characteristic equation, so you should set up a particular solution in the form $y_{p1}(x)=x(Acos(2x)+Bsin(2x))$.

  • For the second equation $y''+4y=frac{1}{2}$, note that $lambda=0$ was not a root of the characteristic equation, so you should set up a particular solution in the form $y_{p2}(x)=A$.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 4 at 15:12









zipirovichzipirovich

11.2k11631




11.2k11631












  • Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
    – Alexis
    Jan 4 at 15:19












  • @Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
    – zipirovich
    Jan 4 at 15:21










  • Alright then I get it thank you very much for your help !
    – Alexis
    Jan 4 at 15:25




















  • Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
    – Alexis
    Jan 4 at 15:19












  • @Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
    – zipirovich
    Jan 4 at 15:21










  • Alright then I get it thank you very much for your help !
    – Alexis
    Jan 4 at 15:25


















Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
– Alexis
Jan 4 at 15:19






Ok I think I see but with the principle of superposition shouldn't I find 2 particular solutions of each new ODE as it is a 2nd order ?
– Alexis
Jan 4 at 15:19














@Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
– zipirovich
Jan 4 at 15:21




@Alexis: Yes, that's exactly what I said. You find two particular solutions, so to speak. More precisely, you find one particular solution to each of the separate non-homogeneous equations: $y_{p1}$ for the first and $y_{p2}$ for the second. Then a particular solution to the original non-homogeneous equation will be $y_p=y_{p1}+y_{p2}$.
– zipirovich
Jan 4 at 15:21












Alright then I get it thank you very much for your help !
– Alexis
Jan 4 at 15:25






Alright then I get it thank you very much for your help !
– Alexis
Jan 4 at 15:25












Alexis is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Alexis is a new contributor. Be nice, and check out our Code of Conduct.













Alexis is a new contributor. Be nice, and check out our Code of Conduct.












Alexis is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f3061711%2fparticular-solutions-to-y4y-cos2x%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

1300-talet

1300-talet

Display a custom attribute below product name in the front-end Magento 1.9.3.8