Please help solve the aboveCode:
Please solve both
First one looks exact to me (divide out the ). Then use the procedure involving potential functions for exact ODEs to find the solution. second is a linear non-homogeneous equation, so your general solution will be the general solution of the associated homogeneous equation plus any particular solution of the non-homogeneous equation. Since you have constant coefficients, you should use the method of undetermined coefficients.
What have you already tried?
Edit...It might help to know the standard form for a Second Order ODE is
Edit 2...This answer is correct so far, but you have only solved for the homogeneous solution. You need to set up, using the method of undetermined coefficients, a solution to the inhomogeneous part. It will be of the form: because you need a solution linearly independent of the solutions you have already gotten.