Find the general solution!
I have got
y'+y = sin x.
How do I start this question?
Help please!.
THank you.
Re: Find the general solution!
Quote:
Originally Posted by
tjsdndnjs
I have got
y'+y = sin x.
How do I start this question?
Help please!.
THank you.
The solution will be of the form
.
To get
(the homogeneous solution) set
. To get the particular solution I'd use the method of undetermined coefficients.
-Dan
Re: Find the general solution!
Quote:
Originally Posted by
topsquark
The solution will be of the form

.
To get

(the homogeneous solution) set

. To get the particular solution I'd use the method of undetermined coefficients.
-Dan
Really? It's not a second order linear DE, it's first order linear... The integrating factor is
, so we have
 &= e^x\,\sin{x} \\ e^x\,y &= \int{ e^x\, \sin{x} \, dx} \\ y &= e^{-x} \int{ e^x \, \sin{x} \, dx} \end{align*})
Now to solve that ugly integral, use integration by parts...
 \\ I &= e^x \, \sin{x} - e^x\, \cos{x} - \int{e^x\, \sin{x} \, dx} \\ I &= e^x\,\sin{x} - e^x\,\cos{x} - I \\ 2I &= e^x\,\sin{x} - e^x\,\cos{x} \\ I &= \frac{1}{2} \, e^x\left( \sin{x} - \cos{x} \right) \end{align*})
So the solution to your DE is ![\displaystyle \begin{align*} y = e^{-x} \left[ \frac{1}{2} \, e^x \left( \sin{x} - \cos{x} \right) \right] + C = \frac{1}{2} \left( \sin{x} - \cos{x} \right) + C \end{align*}](http://latex.codecogs.com/png.latex?\displaystyle \begin{align*} y = e^{-x} \left[ \frac{1}{2} \, e^x \left( \sin{x} - \cos{x} \right) \right] + C = \frac{1}{2} \left( \sin{x} - \cos{x} \right) + C \end{align*})
Re: Find the general solution!
Quote:
Originally Posted by
Prove It
Really? It's not a second order linear DE, it's first order linear...
(shrugs) It's my favorite method. I've always found the integrating factor method to be somewhat clumsy. But that's my own opinion.
-Dan