Re: express a quadratic, in the form (x+a)^2 + b

*To*: mathgroup at smc.vnet.net*Subject*: [mg84358] Re: [mg84313] express a quadratic, in the form (x+a)^2 + b*From*: Andrzej Kozlowski <akoz at mimuw.edu.pl>*Date*: Thu, 20 Dec 2007 00:06:48 -0500 (EST)*References*: <200712190907.EAA13472@smc.vnet.net>

There are several easy ways. One of them is: (x + a)^2 + b /. First[SolveAlways[ x^2 + 4*x + 7 == (x + a)^2 + b, x]] (x + 2)^2 + 3 On 19 Dec 2007, at 18:07, Joseph Fagan wrote: > I'm a Mathematica beginner. > I wish to express a quadratic, in the form (x+a)^2 + b > eg to express x^2 + 4x + 7 as (x+2)^2 + 3 > Is there an easy way? > Thanks > Joe > > >

**References**:**express a quadratic, in the form (x+a)^2 + b***From:*"Joseph Fagan" <noemailplease@nowhere.ru>