Initial value problem - value returns invalid operation

Click For Summary
SUMMARY

The discussion centers on solving the initial value problem defined by the differential equation 2x(y+1)dx - ydy = 0 with initial conditions x=0 and y=-2. The user encounters an issue when substituting y=-2, leading to the evaluation of the natural logarithm of a negative number, which is undefined. A suggested solution is to use the integral of 1/y as log(|y|), allowing for the handling of negative values in the context of logarithmic functions.

PREREQUISITES
  • Understanding of differential equations and initial value problems
  • Familiarity with logarithmic functions and their properties
  • Basic knowledge of integration techniques
  • Experience with manipulating algebraic expressions in calculus
NEXT STEPS
  • Study the properties of logarithmic functions, particularly log(|y|)
  • Learn about solving initial value problems in differential equations
  • Explore techniques for handling undefined expressions in calculus
  • Review integration methods for rational functions
USEFUL FOR

Students and educators in mathematics, particularly those focusing on differential equations, as well as anyone seeking to understand the implications of initial conditions in mathematical modeling.

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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
11
Views
2K
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K