Consider a uniform continuous random variable $x$ with minimum $0$ and unknown maximum $x_\text{max}$. The task is to find an unbiased estimate of $x_\text{max}$ given only the maximum of a sample of $N$ points, $x_\text{max,s}$. The discrete version of this problem is called the German tank problem. An unbiased estimate was given in a previous question, however, I do not understand why the estimate is unbiased.
For a single piece of data ($N = 1$) it is obvious that the probability that the sample maximum $x_\text{max,s}$ is less than $x$ is $$P(x_\text{max,s} < x | x_\text{max}) = \frac{x}{x_\text{max}}.$$
For $N$ independent samples this becomes $$P(x_\text{max,s} < x | x_\text{max}) = \left(\frac{x}{x_\text{max}}\right)^N.$$
This can be converted to a density function: $$p(x_\text{max,s} | x_\text{max}) = \frac{N}{x} \left(\frac{x}{x_\text{max}}\right)^N.$$
One can then calculate the expected value: $$E(x_\text{max,s} | x_\text{max}) = \int_0^{x_\text{max}} x \, p \,\mathrm{d}x = \left(\frac{N}{N + 1}\right) x_\text{max}.$$
This is my understanding of the derivation given in the previous question here.
The answer in the previous question then suggests that the equation above can be "rearranged" into the following estimate, which is claimed to be unbiased: $$\hat{x}_\text{max} = \left(\frac{N + 1}{N}\right) x_\text{max,s}.$$
Why is this estimate unbiased? I assume it is meant that $E(x_\text{max} - \hat{x}_\text{max}) = 0$, but I can't see how that is satisfied here.
I am also interested in the distribution of $x_\text{max}$. I've tried a Bayesian approach to get $p(x_\text{max} | x_\text{max,s})$, but unfortunately the normalizing integral diverges for all priors I've tried, because the power on $x_\text{max}$ is strongly negative in $p(x_\text{max,s} | x_\text{max})$.
If these answers can not be found exactly, I'd also be interested in approximations. Thanks to whoever can help.