Simple 1st order ODE. Need insight

  • Thread starter Thread starter Samuelb88
  • Start date Start date
  • Tags Tags
    Insight Ode
Samuelb88
Messages
160
Reaction score
0

Homework Statement


Solve the 1st order linear initial value problem.

(1+x^2)\frac{dy}{dx}\right) + 4xy = x , y(1)=\frac{1}{4}\right)

The Attempt at a Solution



Why can I get the answer solving the equation one way (below), but not they other?

Method 1:
(1+x^2)\frac{dy}{dx}\right) = -x(4y-1)

\frac{dy}{dx}\right) * \frac{1}{4y-1}\right) = -\frac{x}{1+x^2}\right)

\frac{1}{4}\right) \int^{}_{} \frac{1}{4y-1}\right) d(4y-1) = -\frac{1}{2}\right) \int^{}_{} \frac{1}{1+x^2}\right d(1+x^2)

(multiply by 4)

ln|4y-1| = -2ln|1+x^2| + C

ln|(4y-1)(1+x^2)^2| = 4C

4y-1 = \frac{e^4^C}{(1+x^2)^2}\right)

Satisfying y(0)=1/4, C=0

Therefore: y = 1/4Method 2:

(1+x^2)\frac{dy}{dx}\right) = -x(4y-1)

\frac{dy}{dx}\right) * \frac{1}{4y-1}\right) = -\frac{x}{1+x^2}\right)

\frac{1}{4}\right) \int^{y(x)}_{1/4} \frac{1}{4y-1}\right) d(4y-1) = -\frac{1}{2}\right) \int^{x}_{1} \frac{1}{1+x^2}\right d(1+x^2)

( ln|4y-1| - ln|0| ) = -2(ln|1+x^2| - ln|2|)

Here's where I'm confused. should I ignore ln0? or should I solve with infinity in my equation.
 
Physics news on Phys.org
Remember, don't divide by zero :)
 
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