Solve the equation $2^x - 3^{x-1}=-(x+2)^2$
How I got this question? I created this question so I know the answer. The answer is 5. But I have no idea how to solve it. Take note that I cannot do logarithm, guess and check and modulus. Does anybody know how to solve this? I have no idea how to start.
$2^x - 3^{x-1}$ is infactorisable. Even if I did $2^x - (2+2^0)^{x-1}$, it is STILL infactorisable. I was hoping to solve by hand.
So, I do I solve the equation?

HINT.-You have $$3^{x-1}-(x+2)^2=2^x$$ Searching for an eventual rational solution one has $$(3^{\frac{x-1}{2}}+x+2)(3^{\frac{x-1}{2}}-x-2)=2^x$$ We do now $$3^{\frac{x-1}{2}}+x+2=2^{x-h}$$ $$3^{\frac{x-1}{2}}-x-2=2^h$$ Hence $$2x+4=2^{x-h}-2^h\iff x+2=2^{x-h-1}-2^{h-1}\qquad (*)$$ Trying with $h=1$ we find out the easy $$x+2=2^{x-2}-1$$ where one can see the integer solution $x=5$.
For values $h\gt 1$ we have in $(*)$ that $x$ is necessarily even excepting when $x=h+1$. In the first case this contradicts the original equation. I stop here. I wanted just to show the value $x=5$ can be deduced.