### 9.1.7 Canonical form

The canonical form of a second degree polyomial in a variable x is the form a(x−c)2+b.

The canonical_form command finds the canonical form of a second degree polynomial.

- canonical_form takes p, a second degree polynomial.
- canonical_form(p) returns the canonical form of p.

#### Examples

canonical_form(x^2-6*x+1)

| ⎛ ⎝ | x−3 | ⎞ ⎠ | 2−8

canonical_form(2*t^2+3*t+8)

2

⎛
⎜
⎜
⎝

t+

3
4

⎞
⎟
⎟
⎠

2

+

55
8