I’m trying to solve symbolically the following second-order differential equation using the DSolve function.
My expression contains a number of variables, but it is of the form:
f''(x) = a \exp{\frac{b-f(x)}{c}} + d
Because f'' contains an exponential, I expect the solution f(x) to also contain an exponential. However, the DSolve function provides me with a quadratic solution, which is not what I am looking for.
Am I misusing the DSolve function? Have I misunderstood the mathematics? Any help is appreciated.
which looks very similar to the result you obtained. I can work with this, but it still seems that there is something wrong with either my script or the application.
Thanks again… notebook is attached if anyone would like to test
Note that it is only necessary to use semicolons to separate the statements if they are all in the same input cell. It’s also not good practice to use capital letters when defining variables, since you may conflict with built-in constants and functions.
The semicolons are not important here, they only suppress the display of the output. I think the problem is that you use floating-point numbers inside DSolve, which is designed for exact, symbolic calculations. My guess is that the internal algorithms convert the equation into some exact form, making approximations.