|
I have a math quiz tomorrow, and in the process of studying I found a problem that escapes me.
"Solve the differential equation by separation of variables." essentially, integrate the function by separating y and x.
question: dy/dx = cos(x) * e^(y + sin(x))
I get: sin(x) = u, cos(x)dx = du
dy = du * e^(y + u) dy = du * e^(y) * e^(u) e^(-y)dy = e^(u)du
=>
-e^(-y) = e^(u) + C ln(-e^(-y)) = ln (e^(u) + C) y = ln(e^(u) + C)
answer is
y = - ln(C - e^(u))
Where the hell did I go wrong? :/
|
Canada7170 Posts
-e^(-y) = e^u + C e^(-y) = -e^u + C (C is an arbitrary constant anyway) -y = ln(C-e^u) y = -ln(C-e^u)
As for where your problem is, give me a second to figure that out.
I think it's your last line. ln(-e&(-y)) != y ln(-e^(-y)) = (ln(e^(-y))^(-1) = -y^(-1) ?
|
ln(-e^(-y)) = ln (e^(u) + C) is illegal
|
oh I didn't realize I took the ln of a negative
thanks!_!
So the negative doesn't affect the constant? fuuuuu
tytyty
|
I get the feeling you should definitely move the negative over before taking the ln of both sides. You don't want to take ln of negative numbers, and the left hand side is definitely negative.
If you do move the negative over, you will get
ln(e^(-y)) = ln (-e^(u) + D) (new constant which would be the negative of your old one)
And now, you will get their answer.
It's really weird though, it feels like it should still technically be "legal" to do it your way.
edit: I'm too slow.
The negative affects the constant but you just relabel it as a new constant. For all you knew C was negative anyway, so your new one is a positive constant.
|
I completely just breezed over it somehow, and I never realized that a negative doesn't "affect" the constant, though it does make sense now that I've seen it.
i <3 tl
|
lol you always add the constant because you dont even know if is positive in the first place. Actually, it doesnt matters, the algebra>>>>the signus.
|
|
|
|
|