Why Does My Differential Equation Solution Differ from the Textbook's?

jwxie
Messages
278
Reaction score
0

Homework Statement



\[\frac{\mathrm{dy} }{\mathrm{d} x} = \frac{x - e^{-x}}{y + e^{y}}<br /> \]


Homework Equations



The Attempt at a Solution



This is how I did it...
[1] multiple
\[y + e^{y} (dy) = x - e^{-x} (dx)\]

[2] integrate both sides and I get
\[\frac{1}{2}y^{2} + e^{y} = \frac{1}{2}x^{2} + e^{-x} +c\]

However, the solution gives
\[y^{2} - x^{2} +2(e^{y} - e^{-x}) = c\]
Notice the 2? I can't figure out what I did wrong.

I thank for any helps in advance!
Thanks.
 
Physics news on Phys.org
They just solved for c, then multiplied through by 2 to eliminate the 1/2's.
 
c is an arbitrary constant, your equation is the same as their's but, with 2c \rightarrow c. You are free to rename your arbitrary constants, as long as you do it consistently all throughout the equation.
 
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