Any help would be much appreciated on this question, I've been stuck on it for hours.
The actual equation uses greek symbols but as I'm not sure how to write these on here I have replaced them using normal alphabet letters.
THE QUESTION
Determine the values of A and c, such that
y(x) = A cos (bx+c)
solves the differential equation (driven and damped harmonic oscillator)
y"+dy'+e^2*y = h cos(bx)
where d>0 and d,e,h and b are constants with some given numerical values.
MY ATTEMPT SO FAR
I have tried solving this by using the second order linear inhomogenous formula and by differentiating and substituting y(x) = A cos (bx+c) into the equation.
Both ended up with long equations that I couldn't simplify.
I'm sure using the standard second order linear inhomogenous differential equation formula is the way to solve it.
Doing this I solved the homogenous part using the quadratic formula to get a complementary solution of
exponential(first root of quadratic) + exponential(second root of quadratic).
Focusing on the RHS I chose the particular integral of the form
C cos(bx) + D sin(bx)
After differentiating this twice and substituting into the LHS of the original equation it comes down to
(e^2-b^2)*C + d*D*b = h......(1)
(e^2-b^2)*D* -d*c*b = 0......(2)
From here I need to (but cannot) find the values of C and D which would then be used in C cos(bx) + D sin(bx).
This would then give me a general solution for the differential equation of
y = exponential(first root of quadratic) + exponential(second root of quadratic) + C cos(bx) + D sin(bx)
Which I would then put equal to A cos (bx+c) and try to solve for A and c.
This will probably get no replies due to the length but if anyone does try it please can you see where I am going/went wrong.
THANK YOU!