Step 1: Understanding the Concept:
The integral $\int \log(a^x + x^a) dx$ does not have a simple elementary form. The options suggest it's the integral of the sum, not the log. So probably the question is $\int (a^x + x^a) dx$.
Step 2: Detailed Explanation:
If the integrand is $a^x + x^a$, then $\int a^x dx = \frac{a^x}{\log a} + c$, and $\int x^a dx = \frac{x^{a+1}}{a+1} + c$. So the integral is $\frac{x^{a+1}}{a+1} + \frac{a^x}{\log a} + c$, which matches option (D).
Step 3: Final Answer:
The integral is $\frac{x^{a+1}}{a+1} + \frac{a^x}{\log a} + c$.