Solve $(4 + \sqrt15)^x + (4 - \sqrt15)^x =62$
I was able to solve this equation by considering $(4 + \sqrt15)^x$ as some $y$. I got the quadratic equation
$y^2-62y+1=0$.
Therefore, $y = 31 \pm 8 \sqrt15 = (4 + \sqrt15)^x$
I am very close to getting the answer but I dont know how to compare both sides and obtain $x$. Should I just use trial and error (because it works when $x = 2$), but I want to know whether there is a more concrete way yof doing this.
One way is to observe that $31 \pm 8\sqrt{15} = (\sqrt{15})^2 \pm (2)(4)\sqrt{15} + 4^2 = (4 \pm \sqrt{15})^2$, a "sort of" complete the square process.
But that's a bit unsatisfactory since you're basically making a guess (albeit a justified one) that the expression is the square of the surd you want.
You might as well have started by "guessing" $x=2$ to begin with in the original equation.
Either way, you still have to figure out that $x=-2$ is also a valid solution based on the fact that $4 + \sqrt{15}$ is the reciprocal of $4-\sqrt{15}$.
A perhaps more satisfying solution is to use logarithms.
You have $(4 + \sqrt{15})^x = 31 \pm 8\sqrt{15}$
Take logarithms of both sides, it doesn't matter which base as long as it's the same on both sides. Natural logs are fine.
$\log (4 + \sqrt{15})^x = \log(31 \pm 8\sqrt{15})$
$x\log (4 + \sqrt{15}) = \log(31 \pm 8\sqrt{15})$
$x = \frac{\log(31 \pm 8\sqrt{15})}{\log(4 + \sqrt{15})} = \pm 2$
And you get both valid solutions immediately.
The only unsatisfying part about this is that you're forced to use a calculator. But no "leaps of insight" are required - the use of logarithms to solve this form of equation is very standard.