I have the equation $$(e^x-1)-k\arctan(x) = 0$$ where $0<k \leq \frac 2\pi$ and I was wondering how I would go about starting to determine the amount of real roots of this equation. So far I have just manipulated the equation to get different equations of $x$, however I'm unsure what to do with them.
Current equations for $x$ are $x = \ln(k\arctan(x)-1)$ and $x = \frac{\tan(e^x-1)}{k}$
If $k>0$
Let $$f(x)=e^x-1-k \tan^{-1} x \implies f'(x)=e^x-\frac{k}{1+x^2}, f''(x)=e^{x}+\frac{k}{(1+x^2)^2}>0$$ $\implies$ $f'(x)$ is an increasing function $\implies$ $f'(x)>f'(-\infty)>0 $ $\implies$ $f(x)$ is an increasing function. Hence $f(x)=0$, will have at most one real root. As $f(-\infty)=-1+k\pi/2$ and $f(\infty)>0$, for one real root by IVT $f(-\infty) <0$. Finally this gives $0<k<\frac{2}{\pi}.$ The one root is $x=0$.
For $k>2/\pi$, both $f(-\infty)>$ and $f(\infty)>0$ so $f(x)=0$ will have $0,2,4,...$ number of real roots. Since $x=0$ is essentially a root. So there will two real roots if $k>2/\pi$. Further, since $f''(x)>0$, for the function $f(x)$ can have atmost one min, this rules out more than two real roots.