Initially, note that:
\[
\frac{\sqrt{x^2 + 1}}{x^2} = \frac{1}{x} \cdot \frac{\sqrt{x^2 + 1}}{x}
\]
The integral can therefore be restated as:
\[
J = \int \left( \frac{\sqrt{x^2 + 1}}{x} \log(x^2 + 1) - 2 \cdot \frac{\sqrt{x^2 + 1}}{x} \log x \right) \, dx
\]
This integral is decomposed into two components:
\[
J_1 = \int \frac{\sqrt{x^2 + 1}}{x} \log(x^2 + 1) \, dx
\]
\[
J_2 = \int -2 \cdot \frac{\sqrt{x^2 + 1}}{x} \log x \, dx
\]
Both integrals are solvable via integration by parts or substitution. The combined solution is:
\[
J = J_1 + J_2
\]