# Math Help - First order DE

1. ## First order DE

Hi,

I have the following DE:

$y' + ycos~x = sin2x$

So i have $e^{\int cos~x} = e^{sinx}$

Multiply both sides by this factor and integrate. Gives me.

$ye^{sinx} = \int e^{sinx} \cdot 2sin~x\cdot cos~x$

This is where im stuck, how to i integrate the right hand side?

2. Originally Posted by Jones
Hi,

I have the following DE:

$y' + ycos~x = sin2x$

So i have $e^{\int cos~x} = e^sinx$

Multiply both sides by this factor and integrate. Gives me.

$ye^{sinx} = \int e^{sinx} \cdot 2sin~x\cdot cos~x$

This is where im stuck, how to i integrate the right hand side?
Dear Jones,

$\int{e^{sinx}sin2x~dx}$

$Substitute,~u=e^{sinx}\Rightarrow{sinx=lnu}$

$du=e^{sinx}cosx~dx$

$=\int{u\times{2}\times{sinx}\times{cosx}\frac{du}{ ucosx}}$

$=\int{2\ln{u}~du}$

$=2\int{lnu~du}$

$=2\left[ulnu-u\right]+C~;~Where~C~is~an~arbitary~constant.$

$=2\left[e^{sinx}sinx-e^{sinx}\right]+C$

3. Thank you very much Sudharaka.

I hate myself for not seeing that obvious substitution