[tex]\begin{array}{||} \operatorname{c}_{1}'(x)e^{3x} + \operatorname{c_{2}}'(x)e^{x} = 0 \\ 3\operatorname{c}_{1}'(x)e^{3x}+\operatorname{c}_{2}'(x)e^{x} = e^{x} + \cos x \end{array}[/tex]
От второто уравнение изваждаме първото.
[tex]2 \operatorname{c}_{1}'(x) e^{3x} = e^x + \cos x \Rightarrow \operatorname{c}_{1}'(x) = \frac{e^x + \cos x}{2e^{3x}} \Rightarrow \operatorname{c}_{1}(x) = \int \frac{e^x + \cos x}{2 e^{3x}} \operatorname{d}x = \frac{1}{2} \int \left ( \frac{1}{e^{2x}} + \frac{\cos x}{e^{3x}} \right ) \operatorname{d}x[/tex]
[tex]1. \quad \int e^{-2x} \operatorname{d}x = -\frac{1}{2} \int e^{-2x} \operatorname{d}(-2x) = -\frac{1}{2} e^{-2x}[/tex]
[tex]2. \quad \int e^{-3x} \cos x \operatorname{d}x = \int e^{-3x} \operatorname{d} (\sin x) = e^{-3x} \sin x + 3 \int \sin x e^{-3x} \operatorname{d}x = e^{-3x} \sin x + 3\int e^{-3x} \operatorname{d} (- \cos x) =[/tex]
[tex]= e^{-3x} \sin x + 3 \left [ -e^{-3x} \cos x - \int - \cos x.(-3).e^{-3x} \operatorname{d}x \right ] = e^{-3x} \sin x + 3 \left [ -e^{-3x} \cos x - 3 \int e^{-3x} \cos x \operatorname{d}x \right ][/tex]
[tex]\Rightarrow \fbox{\int e^{-3x} \cos x \operatorname{d}x} = e^{-3x} \sin x - 3 e^{-3x} \cos x - \fbox{9 \int e^{-3x} \cos x \operatorname{d}x} \Rightarrow 10 \int e^{-3x} \cos x \operatorname{d}x = e^{-3x} \sin x - 3 e^{-3x} \cos x \Rightarrow[/tex]
[tex]\int e^{-3x} \cos x \operatorname{d}x = \frac{e^{-3x} \left ( \sin x - 3 \cos x \right )}{10}[/tex]
[tex]\Rightarrow \fbox{\operatorname{c}_{1}(x) = \frac{1}{2} \left [ -\frac{1}{2}e^{-2x} + \frac{e^{-3x} \left ( \sin x - 3 \cos x \right )}{10} \right ]}[/tex]
Сега намираме другата функция.
[tex]\operatorname{c}_{2}'(x) = -\operatorname{c}_{1}'(x)e^{2x} = -\frac{e^{x}+\cos x}{2e^{x}} \Rightarrow \operatorname{c}_{2}(x) = -\frac{1}{2} \int \frac{e^{x}+\cos x}{e^{x}} \operatorname{d}x = -\frac{1}{2} \left ( \int \operatorname{d}x + \int e^{-x} \cos x \operatorname{d}x \right )[/tex]
Правим абсолютно същата сметка, както по-горе. Така
[tex]\fbox{\operatorname{c}_{2}(x) = -\frac{1}{2} \left [ x + \frac{e^{-x} \left ( \sin x - \cos x \right )}{2} \right ]}[/tex].
Частното решение е
[tex]y(x) = y_{\operatorname{partial}}(x) = \operatorname{c}_{1}(x)e^{3x}+\operatorname{c}_{2}(x)e^{x} = -\frac{1}{4}e^{x}(1+2x) -\frac{1}{5} \sin x + \frac{1}{10} \cos x[/tex].
Ако нещо те затруднява, пиши, да не ти пука,

.