ATH: Solving Differential Equations for B(x) with Constraints and a Constant K

  • Context: Graduate 
  • Thread starter Thread starter Mentz114
  • Start date Start date
  • Tags Tags
    Instruction
Click For Summary

Discussion Overview

The discussion revolves around solving two differential equations related to constraints encountered in general relativity (GR) work. The equations involve a function B(x) and a constant K, with participants exploring potential solutions and the implications of their forms.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents two differential equations: \(\frac{dB(x)}{dx} = \frac{B(x)}{x} - \frac{1}{x}\) and \(\frac{dB(x)}{dx} = \frac{B(x)}{x} - \frac{1}{x} + \frac{K}{B(x)}\), noting that the first has a known solution while the second may not.
  • Another participant provides a solution for the first equation, arriving at \(B(x) = cx + 1\), where c is a constant.
  • For the second equation, a participant suggests a substitution \(B(x) = Kx f(x)\) and derives an implicit solution involving the product log function, although they acknowledge the complexity of this approach.
  • Subsequent replies reveal a disagreement regarding the handling of signs in the solutions, with one participant expressing confusion and needing to revisit their work.
  • There is a discussion about the use of logarithmic notation, with participants clarifying their preferences for natural logarithm versus logarithm and the implications of absolute values in their solutions.
  • One participant mentions the product log function, also known as the Lambert W function, and its relevance in GR, while another expresses unfamiliarity with it.
  • Participants reflect on the nature of their solutions, with some suggesting that their approaches may yield different results based on assumptions about the function's values.

Areas of Agreement / Disagreement

Participants express differing views on the solutions to the second differential equation, particularly regarding the handling of signs and the use of logarithmic functions. There is no consensus on the correct approach or final solution.

Contextual Notes

Participants note potential issues with sign conventions and the assumptions regarding the nature of the solutions (real versus complex values). The discussion also highlights the complexity of the product log function and its application in the context of GR.

Who May Find This Useful

This discussion may be of interest to those studying differential equations, general relativity, or mathematical methods in physics, particularly in relation to solving complex equations with constraints.

Mentz114
Messages
5,429
Reaction score
292
This is not homework, these equations are constraints I've encountered in some GR work.

But I'm hopeless with differential equations and I have two I need to solve. Even after reading some instructive texts, I still can't do it.


[tex]\frac{dB(x)}{dx} = \frac{B(x)}{x} - \frac{1}{x}[/tex]

[tex]\frac{dB(x)}{dx} = \frac{B(x)}{x} - \frac{1}{x} + \frac{K}{B(x)}[/tex]

K is a constant. I know the first one has a solution but the second one might not.

M
 
Physics news on Phys.org
Mentz114 said:
This is not homework, these equations are constraints I've encountered in some GR work.

But I'm hopeless with differential equations and I have two I need to solve. Even after reading some instructive texts, I still can't do it.


[tex]\frac{dB(x)}{dx} = \frac{B(x)}{x} - \frac{1}{x}[/tex]

[tex]\frac{dB(x)}{dx} = \frac{B(x)}{x} - \frac{1}{x} + \frac{K}{B(x)}[/tex]

K is a constant. I know the first one has a solution but the second one might not.

M

For the 1st one

[tex]B'(x) = \frac{B(x)}{x} - \frac{1}{x}\Rightarrow \frac{B'(x)}{x}-\frac{B(x)}{x^2}=-\frac{1}{x^2}\Rightarrow (\frac{B(x)}{x})'=(\frac{1}{x})'\Rightarrow \frac{B(x)}{x}=\frac{1}{x}+c\Rightarrow B(x)=c\,x+1[/tex]

For the 2nd one, let [tex]B(x)=K\,x\,f(x)[/tex], then

[tex]f'(x)=\frac{-f(x)+1}{K\,x^2\,f(x)}\Rightarrow\frac{f(x)\,d\,f(x)}{-f(x)+1}=\frac{d\,x}{K\,x^2}\Rightarrow f(x)+\log(f(x)-1)=\frac{1}{K\,x}+c\Rightarrow \frac{B(x)}{K\,x}+\log(\frac{B(x)}{K\,x}-1)=\frac{1}{K\,x}+c[/tex]

which is the general implicit solution and can be written with in terms of the product log function.
 
Hi Rainbow,

thanks for the help, much appreciated. It looks like witchcraft to me. Unfortunately I transposed the signs and your solution depends crucially on the sign. So I'm back to square one.

Which serves me right for being a pratt.
M
 
Last edited:
Rainbow Child said:
For the 2nd one, let [tex]B(x)=K\,x\,f(x)[/tex], then

[tex]f'(x)=\frac{-f(x)+1}{K\,x^2\,f(x)}\Rightarrow\frac{f(x)\,d\,f(x)}{-f(x)+1}=\frac{d\,x}{K\,x^2}\Rightarrow f(x)+\log(f(x)-1)=\frac{1}{K\,x}+c\Rightarrow \frac{B(x)}{K\,x}+\log(\frac{B(x)}{K\,x}-1)=\frac{1}{K\,x}+c[/tex]

which is the general implicit solution and can be written with in terms of the product log function.

I get a slightly different solution:

[tex]\frac{B(x)}{Kx}+\ln\left|1-\frac{B(x)}{Kx}\right|=\frac{1}{Kx}+c[/tex]

There seems to be something with the absolute value.
Mmm, I use ln, sorry for that, it makes it easier for me to see what is meant.

@Rainbow Child: What do you exactly mean by "product log function"
 
coomast said:
I get a slightly different solution:

[tex]\frac{B(x)}{Kx}+\ln\left|1-\frac{B(x)}{Kx}\right|=\frac{1}{Kx}+c[/tex]

There seems to be something with the absolute value.
Mmm, I use ln, sorry for that, it makes it easier for me to see what is meant.

@Rainbow Child: What do you exactly mean by "product log function"

I was working on the complex plane, that's why I didn't put the absolute value.

The product log function is the multivalued function [tex]w(z)[/tex] defined by

[tex]z=w(z)\,e^{w(z)}[/tex]

Thus for the solution at hand

[tex]\frac{B(x)}{K\,x}+\log(\frac{B(x)}{K\,x}-1)=\frac{1}{K\,x}+c[/tex]

we have

[tex](\frac{B(x)}{K\,x}-1)\,\exp(\frac{B(x)}{K\,x})=\exp(\frac{1}{K\,x}+c)\Rightarrow (\frac{B(x)}{K\,x}-1)\,\exp(\frac{B(x)}{K\,x}-1)=\exp(\frac{1}{K\,x}+c-1)\Rightarrow \frac{B(x)}{K\,x}-1=w\left(\exp(\frac{1}{K\,x}+c-1)\right)[/tex]

yielding to

[tex]B(x)=K\,x\,\left(1+w(C\,e^{\frac{1}{K\,x}})\right), \quad C=\exp(c-1)[/tex]
 
I was under the assumption that the differential equation of the original post was to have a real valued function as solution. Therefore the use of ln instead of log. In case I assume that it is to be real, then I think that the solution I gave was correct. That leaves us with a minus sign difficulty or am I making a mistake?

I never used the product log function (or Lambert W function, google). Always good to learn something new. I looked in the books of Erdelyi, Magnus, Oberhettinger, Tricomi and the one of Abramowitz, Stegun, but couldn't find it. It seems to be a rarely used one. Very nice.
 
I wrote [tex]\log[/tex] because I am used with this notation for the natural logarithm. :smile: For the real domain your solution is the correct one.

The product log function [tex]w(z)[/tex] often appears when you are dealing with GR, i.e. in maximally symmetric two-dimensional surfaces. But in GR we are always allowed to make a coordinate transformation, and get rid of the product log function. :cool:
 
Thanks to both of you. I may have learned enough to solve the correct equations.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K