Homework Question: Can this ODE be solved using separation of variables?

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Ode
Saladsamurai
Messages
3,009
Reaction score
7

Homework Statement



I have the following ODE:

<br /> \frac{d(f^2g)}{dx} = \frac{b}{fg}\qquad(1)<br />

Where b is a known constant, f is an unknown function of x that I am seeking, and g is a known function of x.

Now, my next step was to actually plug in my known function of g(x), carry out the differentiation and seek a solution to that ODE. But I am getting to the point with this DE's that I like to look for 'tricks' that allow me to integrate directly by writing one side as a derivative. I was wondering if that could be done here? If I write (1) as <br /> f\frac{d(f^2g)}{dx} = \frac{b}{g}\qquad(2)<br />

I was thinking that the left side could be written in the form dP/dx.

Any thoughts? Is this worth the time?
 
Last edited:
Physics news on Phys.org
You can try to set

d \left( \frac{1}{2} e^m f^3 g^2 \right) =e^m f g ~d(f^2g).

I seem to find m=f^2/4. This is just the standard use of an integrating factor.
 
Meh, screw the trick ... I plugged in for g(x) and it's a nightmare, so I doubt there is a trick. Let's see if we can just solve the ODE.

g(x) =ax1/2 so that (2) becomes:

<br /> <br /> af\frac{d(f^2x^{1/2})}{dx} = \frac{b}{ax^{1/2}}\qquad(3)<br /> <br />

Carrying out the differentiation:

<br /> <br /> f\left [ f^2(1/2)x^{-1/2} + x^{1/2}(2)f\frac{df}{dx}\right ] = \frac{b}{a^2x^{1/2}}\qquad(4)<br /> <br />

<br /> <br /> \Rightarrow\frac{f^3}{2x^{1/2}} + 2x^{1/2}f\frac{df}{dx} = \frac{b}{a^2x^{1/2}}<br /> \qquad(5)<br /> <br />

<br /> <br /> \Rightarrow f^3 + 4xf\frac{df}{dx} - A = 0<br /> \qquad(6)<br /> <br />

where A = \frac{2b}{a^2}

I'm not really sure how to solve (6) as it is very nonlinear ... any thoughts?

EDIT: didn't see you there fzero :smile: Not sure which is easier :redface: Solving yours, or (6) .
 
I think my trick might not be too helpful, since you're still left with

\int e^m dx

to deal with.
 
Saladsamurai said:
Meh, screw the trick ... I plugged in for g(x) and it's a nightmare, so I doubt there is a trick. Let's see if we can just solve the ODE.
...

\Rightarrow f^3 + 4xf\frac{df}{dx} - A = 0<br /> \qquad(6)

where A = \frac{2b}{a^2}

I'm not really sure how to solve (6) as it is very nonlinear ... any thoughts?
...

That looks like it's separable.

(6)\Rightarrow f^2 + 4x\frac{df}{dx} - \frac{A}{f} = 0

\Rightarrow\ \frac{df}{\displaystyle \frac{A}{f}-f^2} = \frac{dx}{4x}

.
 
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