DiffEq - Initial Value Problem / Integration help

twiztidmxcn
Messages
43
Reaction score
0
This question is an initial value problem for diffeq. We are asked to solve explicitly for y.

(1+cos(x))dy = ((e^(-y))+1)*sin(x)dx , y(0) = 0


I attempted a separation of variables and ended up with the following:

dy / ((e^(-y))+1) = (sin(x) / (1 + cos(x))) dx

I know that my next step is to integrate both sides and then solve using the given initial value, but I am unsure as to how I am supposed to integrate either side.

For the right side, I believe I can integrate using u-substitution, where:

u = cos(x) + 1
du / dx = -sin(x)

So that the right side becomes -1/u, integrates to -ln(u), then -ln(1+cos(x)).

For the left side, I've tried using partial fraction decomposition but end up either with my original equation or the natural logarithm of a negative number.
This is where I need help, is in the integration of the left hand side.

thank you
-twiztidmxcn
 
Physics news on Phys.org
IF you mutiply dy/((e^-y)+1) by (e^y)/(e^y) before intetgrating, can you then use integration by substitution?
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top