ODE ( 2nd order nonhomogeneous equation)

soonsoon88
Messages
53
Reaction score
0

Homework Statement


By using the method of undetermined coefficients,find the particular solution of
y''+y'+y=(sin x)^2


Homework Equations


i know how to determine the particular solution IF it is sin x.
Ex: sin x ====> Asin x + B cos x (particular)

but i wonder how to determine the (sin x)^2


The Attempt at a Solution

 
Physics news on Phys.org
i haven't actually seen a problem like this come up, but i think similarly to finding the particular solution to something like lhs=t^2 is A+Bt+Ct^2, it'd be something like:

Asin(x)+Bcos(x)+Ccos^2(x)+Dsin^2(x)

i'm not 100% sure, but i'd try something like that and see if it works out. good luck!
 
You can't assume a solution of the form cos2 x or sin2 x because sine or cosine squared are not of the form that gets as solutions to a homogeneous equation with constant coefficients. However, you CAN use a trigonometric identity. Since cos(a+ b)= cos(a)cos(b)- sin(a)sin(b), taking a= b= x, cos(2x)= cos2(x)- sin2(x). Replacing cos2(x) by 1- sin2(x), cos(2x)= 1- 2sin2(x) so sin2(x)= (1/2)(1- cos(2x)). Look for a particular solution of the form A+ Bsin(2x)+ Ccos(2x).
 
Thx for helping ! i did solve the Q:!)
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top