Answer
$$ x=-\frac{1}{2}.$$
Work Step by Step
We have
$$3^x=\left(\frac{1}{3}\right)^{x+1}\Longrightarrow 3^x=3^{-x-1}.$$
Since the bases are equal, then the exponents are equal and we get
$$ x=-x-1\Longrightarrow 2x=-1 \Longrightarrow x=-\frac{1}{2}.$$