- #1

JamesEllison

- 13

- 0

## Homework Statement

Solve the ODE with the boundary conditions given

Q''+Q = Sin(2x) where Q(0) = 1 and Q'(0) = 2

So i know i need to solve the general and particular solutions, however, I am a little confused. Any help or advice would be great, Thanks in advance.

## Homework Equations

Y = Yg +Yp

## The Attempt at a Solution

Assume RHS = 0 for general solution

Q'' + Q = 0

Let Q = e^kx

Q' = k e^kx

Q'' = k^2 e^kx

therefore

k^2e^kx + e^kx = 0

e^kx(k^2) = 0

k=0???????

Yg = A e ^kx +Bx e^kx???

Particular Solution

Yp = A Sin 2x + B Cos 2x

Yp' = 2A Cos 2x - 2B Sin 2x

Yp"= -4A Sin 2x - 4B Cos (2x)

-4A Sin 2x - 4B Cos (2x) + A Sin 2x + B Cos 2x = Sin(2x)

-3A Sin 2x = Sin 2x

a = -1/3