With $a \in \mathbb{R}$, consider the following two functions:
$$f, g : (-1, \infty) \rightarrow \mathbb{R}$$
$$f(x) = ax^2+x \hspace{2cm} g(x) = \ln(1 + x)$$
I have to find the set of values of $a$ such that the functions $f$ and $g$ have a common tangent in a common point.
I know that to find the common point of $2$ functions, we must solve:
$$f(x) = g(x)$$
And I think that for $2$ functions to have a common tangent, we should have:
$$f'(x) = g'(x)$$
So if we wanted both, meaning a common tangent in a common point, we should solve the system:
$$\begin{cases} f(x) = g(x) \\ f'(x) = g'(x) \end{cases}$$
I am not sure at all if what I've done so far is right or wrong. If my reasoning is incorrect, please tell me. Anyway, I proceeded with the system:
$$\begin{cases} ax^2+x=\ln(1+x) \\2ax+1=\dfrac{1}{1+x} \end{cases}$$
Since $x \in (-1, \infty)$ we can multiply the second equation by $1+x$.
$$\begin{cases} ax^2+x - \ln(1+x) = 0 \\ 2ax^2+2ax+x+1=0 \end{cases}$$
And I got stuck here. I don't know how to solve that system (provided that what I did so far is right and that this system is really what I have to solve). So, how can I find the values of $a$ such that $f$ and $g$ have a common tangent in a common point?
Solving the second (quadratic) equation you obtain: $$x_1=-\frac a 2\;\;\;\;\;\;\;\;\;\;\;x_2=-1$$ The second solution must be discarded since $\,\log(1-1)\,$ is not defined.
Substituting the first solution in the other equation, gives the following equation that can be solved only with numerical methods: $$a=2(1-e^{a(a^2-2)/4})\;\;\;\;\;\;(1)$$
Anyway, the equation $\,(1)\,$ has also the simple solution $\,a=0$.
Actually, $\,f(x)=x\,$ and $\,g(x)=\ln(1+x)\,$ have a common tangent ($f(x)=x$) in $\,x=0$.