Find $a\in\mathbb{R}, a\neq 0$ such that the parabolas of the functions $f$ and $g$ are tangent.
$f_a(x)=ax^2-(a+2)x-1$.
$g_a(x)=x^2-x-a$.
At first what I tried is find their derivative and just make them equal, but it's nowhere near the good answer...
What I tried:
since they must be tangent I thought their derivative should be equal so we have:
$f_a'(x)=2ax-(a+2)$ and $g_a'(x)=2x-1$ by making them equalling we get $a = 1$ and $a = -1$ at the same time... which is completely wrong (that's why I didn't added this).
Following B.Metha's advice we have:
$f_a(x) - g_a(x) = (a-1)x^2-(a+1)x+a-1.$
If $a\in\mathbb R$, then the parabolas are tangent if and only if they have one and only one point in common. So, when is it true that the equation$$ax^2-(a+2)x-1=x^2-x-a$$has one and only one solution? That's when the discriminant of $(a-1)x^2-(a+1)x+a-1$ is $0$. That happens if and only if $a=\frac13$ or $a=3$.