# How to solve a literal equation

How do I solve $2^{x-1}=3^{x+a}$? I cannot solve it and have spent an hour on it trying many different ways. Please help me! Thank you!

-

To get the variables in a manageable place, take the logarithm of both sides of the equation (it does not matter what base you use; the power law for logarithms will let you bring the powers in front of the logarithm): $$2^{x-1}=3^{x+a}\iff\ln 2^{x-1}=\ln 3^{x+a}\iff (x-1)\ln 2= (x+a)\ln 3$$
Finishing this problem: \eqalign{ &(x-1)\ln 2= (x+a)\ln 3\cr \iff& x\ln 2-\ln 2 = x\ln 3+a\ln 3\cr \iff &x\ln 2-x\ln 3= \ln 2+a\ln 3\cr \iff &x (\ln 2- \ln 3)= \ln 2+a\ln 3\cr \iff &x = {\ln 2+a\ln 3\over \ln 2- \ln 3 }\cr &= { \ln(2\cdot 3^a)\over \ln(2/3)}. }
+1. In fact ${ \log(2\cdot 3^a)\over \log(2/3)}$ to any base –  Henry Dec 24 '11 at 12:52