Difference between revisions of "CompleteSquare Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
(added example and cas syntax)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|algebra}}
 
{{command|algebra}}
;CompleteSquare[ <Quadratic Function f> ]
+
;CompleteSquare[ <Quadratic Function> ]
:Returns quadratic function ''f'' in form <math>a(x-h)^2+k</math>.
+
:Returns the quadratic function in vertex form: <math>a(x-h)^2+k</math>.
 +
:{{example|1=<code>CompleteSquare[x^2 - 4x + 7]</code> yields the function ''f''(x) = (''x'' - 2)<sup>2</sup> + 3.}}
 +
==CAS Syntax==
 +
;CompleteSquare[ <Quadratic Function> ]
 +
:Returns the quadratic function in the form: <math>a(x-h)^2+k</math>.
 +
:{{example|1=<code>CompleteSquare[x^2 - 4x + 7]</code> yields (''x'' - 2)<sup>2</sup> + 3.}}

Revision as of 11:01, 24 June 2013



CompleteSquare[ <Quadratic Function> ]
Returns the quadratic function in vertex form: a(x-h)^2+k.
Example: CompleteSquare[x^2 - 4x + 7] yields the function f(x) = (x - 2)2 + 3.

CAS Syntax

CompleteSquare[ <Quadratic Function> ]
Returns the quadratic function in the form: a(x-h)^2+k.
Example: CompleteSquare[x^2 - 4x + 7] yields (x - 2)2 + 3.

Comments

Article Completing the square on wikipedia shows how can this be useful in describing and plotting quadratic functions.

© 2024 International GeoGebra Institute