Message Boards Message Boards

Solve this equation with partial fractions?

Posted 5 years ago

I have this quotient split in partial fractions as following :

(s^2 + 3) / ((s - 1)^2 (s + 1)) ==  A1 / (s - 1) + A2 / (s - 1)^2  + A3 / (s + 1)

Is there an easy way to find the constants? I tried several things with Solve, but without success.

Thank you very much.

POSTED BY: alie rainh

Could use SolveAlways to eliminate s and solve for the rest.

SolveAlways[(s^2 + 3)/((s - 1)^2 (s + 1)) == 
  A1/(s - 1) + A2/(s - 1)^2 + A3/(s + 1), s]

(* Out[9]= {{A2 -> 2, A3 -> 1, A1 -> 0}} *)

Alternatively could get the PFD directly with Apart.

Apart[(s^2 + 3)/((s - 1)^2 (s + 1)), s]

(* Out[8]= 2/(-1 + s)^2 + 1/(1 + s) *)
POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract