I've talked to a few people, and most of them think that it is unlikely that there is an exact solution to this differential equation.
Here is the equation:
$$h''(t)=\frac{F}{m+k-r\cdot t}-\frac{G\cdot M}{(R+h)^{2}}$$
$F,m,k,r,G,M,R$ are all constants. I'm trying to find solve for $h(t)$, which represents the altitude of a rocket. If it makes it any simpler, I'm only trying to find $h$ when $t=\frac{k}{r}$. I'm also wondering whether an approximation can be obtained, if there are no solutions.
Background (Skip if you want)
Imagine a single stage rocket with a dry mass of $m$ which produces a fixed thrust of $F$ Newtons. It carries with it $k$ kilograms of fuel and uses $r$ kilograms of fuel per second. Using Newton's 2nd Law $F=m\cdot a$, and assuming the rocket simply flies straight up, the acceleration of the rocket is:
$$a(t)=\frac{F}{m+k-r\cdot t}-g$$
where $t$ is the elapsed time in seconds and $g$ is the downwards acceleration due to gravity.
I would like to find the height of the rocket when its fuel is expended (when $t=\frac{k}{r}$). However, I also want the equation to account for the decreasing gravitational force as the rocket increases in altitude:
$$a(t)=\frac{F}{m+k-r\cdot t}-\frac{G\cdot M}{(R+h)^{2}}$$
$G$ is the gravitational constant, $M$ and $R$ is the mass and radius of the earth respectively, and $h$ is the altitude of the rocket. Since acceleration is defined as the second derivative of displacement, or in this case altitude or height, the resulting equation is:
$$h''(t)=\frac{F}{m+k-r\cdot t}-\frac{G\cdot M}{(R+h)^{2}}$$
At first we solve by numeric method.(Analytically can't be solved. Maple and Mathematica can't solve)
Mathematica code:
when $t=k/r$ gives:
44.11764706second. $$h''(t)=\frac{F}{k+m-r t}-\frac{G M}{(h(t)+R)^2}$$putting numeric values to solution:
Rocket will lift at the height:
6192.405405meters (6.2km).At second we will a approximation at point
h=0expanding with series:$$\frac{G M}{(h(t)+R)^2}=\frac{G M}{R^2}-\frac{2 (G M) h(t)}{R^3}+O\left(h(t)^2\right)$$
putting to equation: $$h''(t)=\frac{F}{k+m-r t}+\frac{2 G M h(t)}{R^3}-\frac{G M}{R^2}$$
With help CAS we can solve:
$h(t)=-\frac{R e^{-\frac{2 \sqrt{2} \sqrt{G} \sqrt{M} (k+m+r t)}{r R^{3/2}}} \left(\sqrt{2} F \sqrt{R} \text{Ei}\left(-\frac{\sqrt{2} \sqrt{G} (k+m) \sqrt{M}}{r R^{3/2}}\right) e^{\frac{\sqrt{2} \sqrt{G} \sqrt{M} (3 k+3 m+r t)}{r R^{3/2}}}-\sqrt{2} F \sqrt{R} \text{Ei}\left(\frac{\sqrt{2} \sqrt{G} (k+m) \sqrt{M}}{r R^{3/2}}\right) e^{\frac{\sqrt{2} \sqrt{G} \sqrt{M} (k+m+3 r t)}{r R^{3/2}}}-\sqrt{2} F \sqrt{R} e^{\frac{\sqrt{2} \sqrt{G} \sqrt{M} (3 k+3 m+r t)}{r R^{3/2}}} \text{Ei}\left(-\frac{\sqrt{2} \sqrt{G} \sqrt{M} (k+m-r t)}{r R^{3/2}}\right)+\sqrt{2} F \sqrt{R} e^{\frac{\sqrt{2} \sqrt{G} \sqrt{M} (k+m+3 r t)}{r R^{3/2}}} \text{Ei}\left(\frac{\sqrt{2} \sqrt{G} \sqrt{M} (k+m-r t)}{r R^{3/2}}\right)-2 \sqrt{G} \sqrt{M} r e^{\frac{2 \sqrt{2} \sqrt{G} \sqrt{M} (k+m+r t)}{r R^{3/2}}}+\sqrt{G} \sqrt{M} r e^{\frac{\sqrt{2} \sqrt{G} \sqrt{M} (2 k+2 m+r t)}{r R^{3/2}}}+\sqrt{G} \sqrt{M} r e^{\frac{\sqrt{2} \sqrt{G} \sqrt{M} (2 k+2 m+3 r t)}{r R^{3/2}}}\right)}{4 \sqrt{G} \sqrt{M} r}$
putting numeric values to solution:
Rocket will lift at the height:
6192.406503meters.The difference form numerics and analytically is very small about
1millimeter!Another approximation.See-> Altitude:
$$h''(t)=\frac{F}{k+m-r t}-g$$ where $g$ is standard acceleration of free fall.
and solution:
$$h(t)=\frac{r t (2 F-g r t)+2 F (k+m-r t) (\log (k+m-r t)-\log (k+m))}{2 r^2}$$
Rocket will lift at the height:
6190.114097meters.The difference form numerics and analytically is about
2meters!