Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is there a possibility to factorize a parametric polynomial expression - meaning that the coefficients are defined as parameters, and not as specific numbers?

My example - a polynomial in s, with R1, ..., R5 and C1, ..., C2 being parameters:

LP2nTfDen = R1 R4 + R4 R5 + C2 R1 R2 R4 s + C1 R1 R3 R5 s + C2 R2 R4 R5 s -
            C1 C2 R1 R2 R4 R5 s^2

I'd like Mathematica to transform the expression in the form (A + s) (B + s) ..., A, B, etc. being expressions of R1, ..., R5, C1, C2. Is this possible?

share|improve this question

1 Answer 1

It looks like your resulting expression will have a unit coefficient for the highest power. In this case you can do :

expr = Times @@ (s - Solve[LP2nTfDen/Last@CoefficientList[LP2nTfDen, {s}] == 0, s][[All,1, 2]]) ;

expr == LP2nTfDen/Last@CoefficientList[LP2nTfDen, {s}] // Simplify

(* True *)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.