Skip to main content
Tweeted twitter.com/#!/StackMma/status/321848928586833921
General cleanup
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

Completing Defining a function that completes the square ofgiven a quadratic polynomial expression

How can I write a function that would complete the square in a quadratic polynomial expression such that, for example,

In[1]:= CompleteTheSquare[5 x^2 + 27 x - 5, x]

Out[1]= -(829/20) + 5 (27/10 + x)^2

? evaluates to

-(829/20) + 5 (27/10 + x)^2

Completing the square of a quadratic polynomial expression

How can I write a function that would complete the square in a quadratic polynomial expression such that

In[1]:= CompleteTheSquare[5 x^2 + 27 x - 5, x]

Out[1]= -(829/20) + 5 (27/10 + x)^2

?

Defining a function that completes the square given a quadratic polynomial expression

How can I write a function that would complete the square in a quadratic polynomial expression such that, for example,

CompleteTheSquare[5 x^2 + 27 x - 5, x]

evaluates to

-(829/20) + 5 (27/10 + x)^2

edited tags
Link
Source Link
Sunday
  • 413
  • 5
  • 7

Completing the square of a quadratic polynomial expression

How can I write a function that would complete the square in a quadratic polynomial expression such that

In[1]:= CompleteTheSquare[5 x^2 + 27 x - 5, x]

Out[1]= -(829/20) + 5 (27/10 + x)^2

?