I would like first to appreciate everything that is being done on this forum and to greet you all!
I have namely two functions and the goal is to find the intersection point of them.
- $y_1 = a + \dfrac{1}{bc} (x-x_0)$
- $y_2=\ln\dfrac{\sqrt{\dfrac{2dx}{c}+1}-1}{d} + {\sqrt{\dfrac{2dx}{c}+1}-1}$
where $a$, $b$, $c$, $d$, $x_0$ are known.
To find the point $x$ where the two functions intersect , firstly I set these two functions equal $y_1 = y_2$: $$\ln\dfrac{\sqrt{\dfrac{2dx}{c}+1}-1}{d} + {\sqrt{\dfrac{2dx}{c}+1}-1} = a + \dfrac{1}{bc} (x-x_0).$$
It is obvious that I must solve this equation numerically in order to find $x$. I've plotted the two equations in Matlab, wrote a code to find the minimum difference between $y_1$ and $y_2$ for different $x$ (ex. from 0 to 0.5 in 1000 steps), and then found the $x$ where $y_1$ nearly equals $y_2$, and I've got results that are near the expected.
One thing is that the term under the sqrt is nearly in all cases negative, so it yields complex numbers and it has to logarithm these complex numbers.
It's now my job to write a program to find the $x$ numerically, and I am at the moment craving for an idea to start with. What algorithm could I use to find the sqrt and ln (able to do the calculation with negative numbers)? How could I start solving the equations?
I am pretty new in this field and I would appreciate and be grateful for every tip.

Let $t=\dfrac{2dx}{c}+1$, which is a linear function of $x$. As $y_1$ is also a linear function of $x$, you can rewrite after transformations
$$f(t)=\ln(\sqrt t-1)+\sqrt t=pt+q.$$
So this problem has only two independent parameters and can be cast as the intersection of a curve with a straight line.
In addition, the curve is monotonous increasing, and its slope has the simple expression
$$f'(t)=\frac1{2(\sqrt t-1)}.$$
Then for a given positive slope $p$, you can find the value of $t$ where a parallel to the line is tangent to the curve by solving $f'(t_p)=p$. Depending on the value of $f(t_p)$ compared to that of $pt_p+q$, you will known how many roots there are. In the case of two roots, they are in $(1,t_p)$ and $(t_p,\infty)$.
For a negative slope $p$, there is a single intersection.
You can find starting approximations
by neglecting the logarithmic term, giving $\sqrt t=pt+q$, a quadratic equation,
or by assuming $t$ close to $1$, expressing $\ln(\sqrt{1+s}-1)+\sqrt{1+s}=p(1+s)+q$, or $\ln\left(\dfrac s2\right)+1\approx p+q$.