Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

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



  • 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