In algebra, the Weierstrass preparation theorem describes a canonical form for formal power series over a complete local ring.
Let O be a complete local ring and f a formal power series in O''X''. Then f can be written uniquely in the form
where the bi are in the maximal ideal m of O and u is a unit of O''X''.
The integer n defined by the theorem is the Weierstrass degree of f.