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: [mg84351] Re: express a quadratic, in the form (x+a)^2 + b
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 20 Dec 2007 00:03:11 -0500 (EST)
  • References: <fkan3b$d6k$1@smc.vnet.net>

Hi,

x^2 + 4 x + 7 /.
  x^2 + b_*x + c_ :> Factor[x^2 + b*x + b^2/4] - b^2/4 + c

Regards
   Jens

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: Re: pattern
  • Previous by thread: Re: express a quadratic, in the form (x+a)^2 + b
  • Next by thread: Re: express a quadratic, in the form (x+a)^2 + b