Source TeX:
3^{x+1}=\left(\dfrac{1}{27}\right)^{x-2}