\(\displaystyle\int \left(a^{x} + a^{-x}\right)^2 dx\), where \(a \gt 0\) and \(a \ne 1\), is equal to (where c is an arbitrary constant)
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{1}{2\log a}\left(a^{2x} - a^{-2x}\right) + 2x + c\)
Expanding the square, and using \(a^{x} \cdot a^{-x} = 1\):
\(\left(a^{x} + a^{-x}\right)^2 = a^{2x} + 2 + a^{-2x}\)
Since \(\int a^{kx}\,dx = \frac{a^{kx}}{k\log a}\):
\( \displaystyle \int a^{2x}\,dx = \frac{a^{2x}}{2\log a} \)
\( \displaystyle \int a^{-2x}\,dx = \frac{a^{-2x}}{-2\log a} = -\frac{a^{-2x}}{2\log a} \)
\( \displaystyle \int 2\,dx = 2x \)
Adding:
\( \displaystyle \int \left(a^{x} + a^{-x}\right)^2 dx = \frac{1}{2\log a}\left(a^{2x} - a^{-2x}\right) + 2x + c \)
Why the other options are incorrect
Option (1) \(\displaystyle\frac{1}{2\log a}\left(a^{2x} + a^{-2x}\right) + 2x + c\) — Incorrect. The minus sign from integrating \(a^{-2x}\) has been missed; the derivative of this option is \(a^{2x} - a^{-2x} + 2\).
Option (3) \(\displaystyle\frac{1}{\log a}\left(a^{2x} - a^{-2x}\right) + x + c\) — Incorrect. Its derivative is \(2a^{2x} + 2a^{-2x} + 1\), not \(a^{2x} + a^{-2x} + 2\).
Option (4) \(\displaystyle\frac{1}{2\log a}\left(a^{x} - a^{-x}\right) + 2x + c\) — Incorrect. The powers should be 2x and −2x after squaring; its derivative is \(\frac{1}{2}(a^{x} + a^{-x}) + 2\).