I've broken a somewhat complex calculation down to the following mathematical equation to be solved:
$a^x + b^x = c$
How do I find $x$ when $a, b$ and $c$ are given as parameters?
I.e., if $a=3$, $b=4$ and $c=25$, then the solution is $x=2$.
(The question has nothing to do with geometry - this is just the simplest example I can come up with.)
Background
For specifying a person's overweight/underweight, the term Z-score is used and the Z-score is calculated based on the person's BMI, sex and age. For each sex and age interval, the constants $\lambda$, $\mu$ and $\sigma$ are given.
I have the formula $Z = \frac{(\frac{B}{ \mu})^\lambda -1}{\lambda\sigma}$, where $B$ is the person's BMI, for calculating the Z-score. Also, I have a set of $B$-values for a specific age and sex, for $Z \in \{-2, -1, 0, 1, 2\}$. For $Z=n$, let's call the $B$ data set $B_n$.
My task is, based on the above knowledge, to calculate $\mu$, $\sigma$ and $\lambda$ for a specific sex and age, so I can calculate the Z-score for a specific BMI, based on sex and age.
It is obvious that $\mu = B_0$. Moreover, using the Z-formula on $B_1$, I get $\sigma = \frac{(\frac{B_1}{B_0})^\lambda -1}{\lambda}$.
Using the Z-formula on $B_1$ and $B_{-1}$, I get $(\frac{B_{-1}}{B_0})^\lambda + (\frac{B_{1}}{B_0})^\lambda = 2$.
So, pretty simple, I just need to find how to isolate $x$ in the equation $a^x + b^x = c$...
There is almost surely no closed form expression, but a qualitative approach is possible.
If $b=a$, there is clearly a solution. Let us assume $\dfrac{b}{a}>1$, WLOG.
Taking the natural logarithm of both sides of the given equation:
$$\operatorname{ln}(a^x (1+\left(\tfrac{b}{a}\right)^x)=\operatorname{ln}(c)$$
$$\operatorname{ln}(a^x)+\operatorname{ln}(1+\left(\tfrac{b}{a}\right)^x)=\operatorname{ln}(c)$$
$$-x\operatorname{ln}(a)+\operatorname{ln}(c)=\operatorname{ln}(1+\left(\tfrac{b}{a}\right)^x)$$
which represents the equation verified by the abscissas of the possible intersection point(s) of the straight line (L) (magenta on the figure) and curve (C) (red on the figure) with resp. equations:
$$\begin{cases}y&=&-x\operatorname{ln}(a)+\operatorname{ln}(c)\\ y&=&\operatorname{ln}(1+\left(\tfrac{b}{a}\right)^x)\end{cases}$$
Please note that the second curve has a slant asymptote with equation $y=x \ln(b/a)$.
according to the resp. values of $a,b,c$. One cannot have more than two roots because curve (C) can be shown to be convex, and a straight line cannot intersect a convex curve in more than two points.
Fig. 1: The given case $a=3;b=4;c=25$ with a unique root at $x=2$.
Fig. 1: The case $a=0.5;b=2;c=2.5$ with two roots $x=-1$ and $x=1$.