Solution:
If ax+2<0, then the equation has no real roots. If ax+2≥0, it is equivalent to ax2+ax+2=(ax+2)2, i.e., (a2−a)x2+3ax+2=0. The last equation has a unique real root in the following three cases.
Case 1. The coefficient of x2 vanishes and the respective linear equation has a root x such that ax+2≥0.
If a=0, then 2=0 which is impossible. If a=1, then x=−32 and ax+2=−32+2=34>0. Hence a=1 is a solution of the problem.
Case 2. The coefficient of x2 is non-zero, i.e., a=0,1, and the respective quadratic equation has a unique real root x with ax+2≥0. Then D=9a2−8(a2−a)=a2+8a=0 and hence a=−8. Then x=61 and ax+2=−8⋅61+2=32>0, i.e., a=−8 is a solution of the problem.
Case 3. The coefficient of x2 is non-zero, i.e., a=0,1, and the respective quadratic equation has two real roots x1<x2 such that ax1+2<0≤ax2+2, i.e., −a2∈(x1,x2].
If −a2=x2, then (a2−a)(−a2)2+3a(−a2)+2=0. Hence −a1=0, contradiction. Therefore −a2∈(x1,x2) which is equivalent to
(a2−a)((a2−a)(−a2)2+3a(−a2)+2)<0
It is easy to see that the solutions of the above inequality are a>1. So, the given equation has a unique real root for a=−8 and a≥1.