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












1












$begingroup$


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











$endgroup$








  • 1




    $begingroup$
    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?
    $endgroup$
    – Oscar Lanzi
    Jan 4 at 14:46












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
















1












$begingroup$


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











$endgroup$








  • 1




    $begingroup$
    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?
    $endgroup$
    – Oscar Lanzi
    Jan 4 at 14:46












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














1












1








1


1



$begingroup$


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











$endgroup$




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?







ordinary-differential-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 4 at 14:52









zipirovich

11.3k11731




11.3k11731










asked Jan 4 at 14:38









AlexisAlexis

82




82








  • 1




    $begingroup$
    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?
    $endgroup$
    – Oscar Lanzi
    Jan 4 at 14:46












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














  • 1




    $begingroup$
    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?
    $endgroup$
    – Oscar Lanzi
    Jan 4 at 14:46












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








1




1




$begingroup$
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?
$endgroup$
– Oscar Lanzi
Jan 4 at 14:46






$begingroup$
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?
$endgroup$
– Oscar Lanzi
Jan 4 at 14:46














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




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










1 Answer
1






active

oldest

votes


















2












$begingroup$

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









$endgroup$













  • $begingroup$
    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 ?
    $endgroup$
    – Alexis
    Jan 4 at 15:19












  • $begingroup$
    @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}$.
    $endgroup$
    – zipirovich
    Jan 4 at 15:21










  • $begingroup$
    Alright then I get it thank you very much for your help !
    $endgroup$
    – 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
});


}
});














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












$begingroup$

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









$endgroup$













  • $begingroup$
    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 ?
    $endgroup$
    – Alexis
    Jan 4 at 15:19












  • $begingroup$
    @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}$.
    $endgroup$
    – zipirovich
    Jan 4 at 15:21










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


















2












$begingroup$

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









$endgroup$













  • $begingroup$
    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 ?
    $endgroup$
    – Alexis
    Jan 4 at 15:19












  • $begingroup$
    @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}$.
    $endgroup$
    – zipirovich
    Jan 4 at 15:21










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
















2












2








2





$begingroup$

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









$endgroup$



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.3k11731




11.3k11731












  • $begingroup$
    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 ?
    $endgroup$
    – Alexis
    Jan 4 at 15:19












  • $begingroup$
    @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}$.
    $endgroup$
    – zipirovich
    Jan 4 at 15:21










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




















  • $begingroup$
    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 ?
    $endgroup$
    – Alexis
    Jan 4 at 15:19












  • $begingroup$
    @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}$.
    $endgroup$
    – zipirovich
    Jan 4 at 15:21










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


















$begingroup$
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 ?
$endgroup$
– Alexis
Jan 4 at 15:19






$begingroup$
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 ?
$endgroup$
– Alexis
Jan 4 at 15:19














$begingroup$
@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}$.
$endgroup$
– zipirovich
Jan 4 at 15:21




$begingroup$
@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}$.
$endgroup$
– zipirovich
Jan 4 at 15:21












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






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




















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%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

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix