(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

20) Determine the general solution of y'' + y = sin(x).

2. Relevant equations

3. The attempt at a solution

We attempt to solve this equation by the method of undetermined constants.

So y = u(x)sin(x) (such a substitution should reduce R(x) to a polynomial with a u-differential equation with constant coefficients according to Apostol. )

We get, after differentiation and substitution:

u'' + 2cot(x)u = 1

However, this equation doesn't have constant coefficients like Apostol said the method would produce. So I need some help there.

Doing it the regular way with variation of parameters, we have:

y = c_{1}sin(x) + c_{2}cos(x) + y_{1}

where y_{1}= t_{1}(x)v_{1}(x) + t_{2}(x)v_{2}(x) and

v_{1}(x) = sin(x)

v_{2}(x) = cos(x)

The wronskian of the two functions is -1.

After computing we get

t_{1}= [itex]\frac{1}{2} {sin}^2(x)[/itex]

t_{2}= [itex]\frac{sin(2x)}{4} - \frac{1}{2}x[/itex]

So the general solution is

y = [itex]sin(x) (c_1 + \frac{{sin}^2(x)}{2}) + cos(x) (c_2 + \frac{sin(2x)}{4} - \frac{1}{2}x)[/itex]

But the book says the answer is:

y = [itex](c_1 - \frac{1}{2}x)cos(x) + c_2{sin(x)}[/itex]

Why do I keep getting extra terms?

Edit: Never mind the second question. My solution simplifies to the book's general solution. Tricky, but I see it.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Non-homogenious second-order linear differential equations.

**Physics Forums | Science Articles, Homework Help, Discussion**