Initial value problem - value returns invalid operation

misterlimbo
Messages
1
Reaction score
0

Homework Statement



Solve the initial value problem
Given: x=0, y=-2

Homework Equations



2x(y+1)dx - ydy = 0

The Attempt at a Solution



Manipulating the given equation:
--> 2x(y+1)dx - ydy = 0
--> 2xdx = ydy/(y+1)
--> 2xdx = (1 - 1/y+1)dy
--> 2x2/2 = y - ln(y+1) + lnC

(where lnC is a constant)

Here's my problem:
- Putting y = -2 to the equation will result to the evaluation of the natural logarithm of a negative number, which I assume is not the intended solution that our lecturer wants. Have I done something wrong in obtaining the general solution to the DE?
- Is there another way to "work my way around" the initial value condition? I tried substituting the value (just for to see where it goes). I let x = 0 then manipulate the remaining expression but still I get that negative value for C.

Thank you very much in advance!
 
Last edited:
Physics news on Phys.org
misterlimbo said:

Homework Statement



Solve the initial value problem
Given: x=0, y=-2


Homework Equations



2x(y+1)dx - ydy = 0


The Attempt at a Solution



Manipulating the given equation:
--> 2x(y+1)dx - ydy = 0
--> 2xdx = ydy/(y+1)
--> 2xdx = (1 - 1/y+1)dy
--> 2x2/2 = y - ln(y+1) + lnC

(where lnC is a constant)

Here's my problem:
- Putting y = -2 to the equation will result to the evaluation of the natural logarithm of a negative number, which I assume is not the intended solution that our lecturer wants. Have I done something wrong in obtaining the general solution to the DE?
- Is there another way to "work my way around" the initial value condition? I tried substituting the value (just for to see where it goes). I let x = 0 then manipulate the remaining expression but still I get that negative value for C.

Thank you very much in advance!

Sometimes you have to be careful and write the integral of 1/y as log(|y|). This works ok because if f(y)=log(-y) then f'(y) is also 1/y.
 
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