Differential Equation by Separation of Variables

TranscendArcu
Messages
277
Reaction score
0

Homework Statement



Solve the differential equation: y' + cos(x)y = cos(x)

The Attempt at a Solution


y' = cos(x)(1 -y)
\frac{dy}{1-y} = cos(x) dx
-ln|1-y| = sin(x) + C
\frac{1}{1-y} = e^{sin(x)} + C
1-y = \frac{1}{e^{sin(x)} + C}
y = \frac{-1}{e^{sin(x)} + C} + 1

Have I done this correctly?
 
Physics news on Phys.org
No. e^(sin(x)+C) isn't the same as e^sin(x)+C.
 
So I know e^{sin(x) + C} = e^{sin(x)}e^C. But since e^C is just a constant, can't I just compress it into the constant C?
 
TranscendArcu said:
So I know e^{sin(x) + C} = e^{sin(x)}e^C. But since e^C is just a constant, can't I just compress it into the constant C?

Yes, but that makes it C*e^(sin(x)), doesn't it?
 
so I should write,

\frac{1}{1-y} = e^{sin(x)}C
1-y = \frac{1}{e^{sin(x)}C}, and C is totally arbitrary so write,
y = \frac{C}{e^{sin(x)}} + 1
 
TranscendArcu said:
so I should write,

\frac{1}{1-y} = e^{sin(x)}C
1-y = \frac{1}{e^{sin(x)}C}, and C is totally arbitrary so write,
y = \frac{C}{e^{sin(x)}} + 1

I think that works.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top