To evaluate the integral \( I = \int e^x \left( \log x + \frac{1}{x^2} \right) dx \), we can break it down into two separate integrals:
\[
I = \int e^x \log x \, dx + \int e^x \frac{1}{x^2} \, dx
\]
### Step 1: Evaluate \( \int e^x \log x \, dx \)
...