To solve the integral $\int \cos( \log x) \, dx$, we can use a substitution method. Here's a step-by-step solution:
Let $u = \log x$. Therefore, the derivative of $u$ with respect to $x$ is $\frac{du}{dx} = \frac{1}{x}$. This implies $du = \frac{1}{x} \, dx$ or $dx = x \, du$.
Substitute $u$ and $dx$ in the integral:
$$\int \cos(u) \cdot x \, du$$.
Since $x = e^u$, we have:
$$\int \cos(u) \cdot e^u \, du$$.
Apply integration by parts to solve this integral. Integration by parts formula is:
$$\int u \, dv = uv - \int v \, du$$.
Here, choose $v = e^u$ and $dw = \cos(u) \, du$:
- $dv = e^u \, du$
- $w = \sin(u)$
Substitute into the integration by parts formula:
$$\int \cos(u) \cdot e^u \, du = e^u \sin(u) - \int e^u \sin(u) \, du$$.
Apply integration by parts again to $\int e^u \sin(u) \, du$. Use:
- $v = e^u$, $dw = \sin(u) \, du$
- $dv = e^u \, du$, $w = -\cos(u)$ Then:
$$\int e^u \sin(u) \, du = -e^u \cos(u) + \int e^u \cos(u) \, du$$.
This forms an equation:
$$I = e^u \sin(u) + e^u \cos(u) - I$$,
solving gives:
$$2I = e^u \sin(u) + e^u \cos(u)$$,
$$I = \frac{1}{2} e^u [\sin(u) + \cos(u)]$$.
Reverting back to $x = e^u$, the result becomes:
$$I = \frac{x}{2} [\sin(\log x) + \cos(\log x)]$$.
Therefore, the integral evaluates to:
$$\frac{x}{2} \left[\cos(\log x) + \sin(\log x)\right] + C$$,
where $C$ is the constant of integration.
Thus, the correct answer is: $\frac{x}{2}\left[\cos\left(\log_{e}x\right) + \sin\left(\log_{e} x\right)\right]+C$.
Was this answer helpful?
0
Top Questions on General and Particular Solutions of a Differential Equation