Differential Equation by Separation of Variables

Click For Summary
The differential equation y' + cos(x)y = cos(x) is solved using separation of variables. The initial attempt leads to the expression -ln|1-y| = sin(x) + C, which is later corrected to account for the constant C. The discussion clarifies that e^(sin(x) + C) can be expressed as e^(sin(x))e^C, allowing for simplification. Ultimately, the solution is refined to y = C/e^(sin(x)) + 1, confirming the correctness of the approach. The final expression is accepted as a valid solution to the differential equation.
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.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
4K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
886
Replies
4
Views
2K