Equation $3\sqrt{-2(x+3)}-1=|x+3|+a$ has exactly two real roots, then the maximum possible value of $|[a]| $ is? ( where [] denotes the greatest integer function )
My attempt is as follows:-
$$-(x+3)>=0, (x+3)<=0$$ $$3\sqrt{-2(x+3)}-1=|x+3|+a$$ $$3\sqrt{-2(x+3)}-1=-(x+3)+a$$ $$3\sqrt{-2(x+3)}=(a+1)-(x+3)$$
Squaring both sides $$9(-2(x+3))=(a+1)^2+(x+3)^2-2(a+1)(x+3)$$ $$-18(x+3)=x^2+9+6x+a^2+1+2a-2(ax+3a+x+3)$$ $$x^2+x(18+6-2a-2)+a^2+2a-6a+54+9+1-6=0$$ $$x^2+x(22-2a)+a^2-4a+58=0$$
As it is given that equation has exactly two given roots:-
$$D>0$$ $$(22-2a)^2-4(a^2-4a+58)>0$$ $$(11-a)^2-(a^2-4a+58)>0$$ $$121+a^2-22a-a^2+4a-58>0$$ $$-18a+63>0$$ $$a<\dfrac{63}{18}$$
Hence maximum value of $|[a]|=\left|\left[\left(\dfrac{63}{18}\right)^-\right]\right|$=$3$. But actual answer is $1$