MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


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
>
>
>



  • Prev by Date: Re: pattern
  • Next by Date: Re: pattern
  • Previous by thread: express a quadratic, in the form (x+a)^2 + b
  • Next by thread: Re: express a quadratic, in the form (x+a)^2 + b