Finding the special solution of differential equation y '- y = cosx, x = 0, y = 0

Finding the special solution of differential equation y '- y = cosx, x = 0, y = 0

Constant variation method: when solving the first-order non-homogeneous linear differential equation dy / DX + P (x) y = q (x) [Q (x) ≠ 0], the first-order homogeneous linear differential equation y = CE ^ (- ∫ P (x) DX is solved with Q (x) = 0, then the C in the general solution is changed to u (x), and then the transformed general solution is brought into the original equation to solve U (x)