I am trying to solve the following differential equation using the transfer function method where we expand by partial fractions:
$$\frac{dx}{dt} + 7x = 5 cos 2t$$
The substituion is: $$(s + 7)X(s) = \frac{5s}{(s^2 + 4)}$$
Which means we have 3 variables to find:
$$\frac{A}{s + 7}$$
And
$$\frac{B.s + C}{s^2 + 4}$$
After checking my solution:
$A=\frac{35}{53}$, $B=\frac{50}{53}$ and $C=4$ which is wrong.
I solved it several times and kept getting the same.
The correct result is in here:
which gives:
I added images, as I don't know how to add math function on a math stack post.
The method required is the partial fraction.


If we write it as: $$\frac{5s}{(s+7)(s^2+4)}=\frac{A}{s+7}+\frac{Bs+C}{s^2+4}$$ We can multiply both sides by $(s+7)(s^2+4)$: $$5s=A(s^2+4)+(Bs+C)(s+7)$$ $$5s=As^2+4A+Bs^2+7Bs+Cs+7C$$ $$0s^2+5s+0=(A+B)s^2+(7B+C)s+7C+4A$$ So we have that $A+B=0$ and $7B+C=5$ and $7C+4A=0$. From the first one, we have that $A=-B$, so we have that $7B+C=5$ and $7C-4B=0$. And I think you can solve this system of 2 linear equations.