Polynomials

## Description

Sage can be used to multiply and factor polynomials. Suppose that $p(x)= x^2 -4x +3$ and $q(x) = 3x^2 - x + 5$.

## Sage Cell

#### Code

```
p(x) = x^2 -4*x + 3
q(x) = 3*x^2 - x + 5
g(x) = p(x)*q(x)
g(x)
```

## Options

#### Option

Products of polynomials can be expanded.

#### Code

```
p(x) = x^2 -4*x + 3
q(x) = 3*x^2 - x + 5
g(x) = p(x)*q(x)
g.expand()
```

#### Option

Polynomials can be factored.

#### Code

```
g(x) = 3*x^4 - 13*x^3 + 18*x^2 - 23*x + 15
g.factor()
```

## Tags

Primary Tags: Precalculus: Operations on polynomial and rational expressions, Precalculus: Factoring.

Secondary Tags: Operations on polynomial and rational expressions: Polynomials: multiply.

## Related Cells

- Solving Equations
- Solving Equations for One Variable in Terms of Others
- Solving Equations Numerically

## Attribute

Permalink:

Author: T. W. Judson

Date: 09 Apr 2018 15:27

Submitted by: Tom Judson