Step 1: Identifying the integrating factor.
The differential equation is:
\[
\frac{dy}{dx} - y = \cos x.
\]
This is a first-order linear differential equation of the form \( \frac{dy}{dx} + P(x)y = Q(x) \), where \( P(x) = -1 \) and \( Q(x) = \cos x \).
The integrating factor \( \mu(x) \) is given by:
\[
\mu(x) = e^{\int P(x) \, dx}.
\]
Since \( P(x) = -1 \), we have:
\[
\mu(x) = e^{\int -1 \, dx} = e^{-x}.
\]
Step 2: Conclusion.
Thus, the integrating factor is \( e^{-x} \), which makes the statement true.
If \( y = \sqrt{e^x} \), \( x > 0 \), then \( \frac{dy}{dx} = \underline{\hspace{2cm}} \)
Order of differential equation \( xy \frac{d^2y}{dx^2} + x \left( \frac{dy}{dx} \right)^2 - y \frac{dy}{dx} = 0 \) is 2.
Find the general solution of the differential equation \[ x \frac{dy}{dx} + 2y = x^2 \,\,\, \text{where} \,\,\, (x \neq 0). \]