Solution
Given
$\rm 3^{x - 3} + 3^{4 - x} = 4$
By using the law of indices, $\rm a^{m-n} = \frac{a^{m}}{a^{n}}$,
$\rm or, \frac{3^{x}}{3^{3}} + \frac{3^{4}}{3^{x}} = 4$
$\rm or, \frac{3^{x}}{27} + \frac{81}{3^{x}} = 4$
Let $\rm 3^{x} = a$
$\rm or, \frac{a}{27} + \frac{81}{a} = 4$
Multiplying both sides of the equation by 27a, we get,
$\rm or, 27 a \cdot \frac{a}{27} + 27 a \cdot \frac{81}{a} = 27 a \cdot 4$
$\rm or, a^{2} + 2187 = 108 a$
$\rm or, a^{2} - 108 a + 2187 = 0$
The above equation is quadratic in a. We use the mid-term factorization method to solve it.
$\rm or, a^{2} - (27 + 81) a + 2187 = 0$
$\rm or, a^{2} - 27a - 81a + 2187 = 0$
$\rm or, a ( a - 27) - 81 ( a - 27) = 0$
$\rm or, (a - 81)(a - 27) = 0$
Either
$\rm (a - 81) = 0$
$\rm or, a = 81$
$\rm or, a = 3^{4}$
By supposition, $\rm a = 3^{x}$. We substitute the value for a and we get,
$\rm or, 3^{x} = 3^{4}$
The bases of the terms on both sides of the equation are the same, so we equate their powers.
$\rm \therefore x = 4$
Or
$\rm (a - 27) = 0$
$\rm or, a = 27$
$\rm or, a = 3^{3}$
By supposition, $\rm a = 3^{x}$. We substitute the value for a and we get,
$\rm or, 3^{x} = 3^{3}$
The bases of the terms on both sides of the equation are the same, so we equate their powers.
$\rm \therefore x = 3$
Hence, the required values of x are x = {3,4}.