Can't solve a differential equation using partial fractions method

307 Views Asked by At

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:

enter image description here

which gives:

enter image description here

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.

2

There are 2 best solutions below

1
On

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.

2
On

$$(s + 7)X(s) = \frac{5s}{(s^2 + 4)}\implies X(s)=\frac{5s}{(s+7)(s^2 + 4)}$$

$$\frac{5s}{(s+7)(s^2 + 4)}=\frac{A}{(s+7)} +\frac{Bs+C}{(s^2 + 4)}$$

To find $A$ cover $(s+7)$ and let $s=-7$ in $$\frac{5s}{(s+7)(s^2 + 4)}$$ to get $$A=\frac {-35}{53}$$ ( That is where you had it wrong )

Now proceed to find $B$ and $C$ by assigning other values of $s$.