Trident Help

Classic CAS manual · Chapter 8 of 16

Algebra: expand, factor and simplify

Automatic simplification, expand, factor, common denominators and polynomial tools.

8.1Automatic simplification#

Every answer is simplified for you: like terms are combined, powers are merged and common factors cancel.

Example 8.1

Combine like terms

  1. Type 2x + 3x.

    2x+3xenter
Result of the example "Combine like terms" The display shows: 2x+3x / 5·x.
You should see5·x
Example 8.2

Cancel a common factor

  1. Type (x²−4) / (x²+4x+4).

    (x^2▶−4)÷(x^2▶+4x+4)enter
Result of the example "Cancel a common factor" The display shows: (x^2−4)/(x^2+4x+4) / (x-2)/(x+2).
You should see(x-2)/(x+2)
Example 8.3

Add powers

  1. Type x² × x³.

    x^2▶×x^3▶enter
Result of the example "Add powers" The display shows: x^2·x^3 / x^5.
You should seex^5
Example 8.4

Pythagorean identity

sin⁡2x+cos⁡2x=1\sin^{2}x+\cos^{2}x=1
  1. Type sin(x)² + cos(x)².

    sin(x)^2▶+cos(x)^2▶enter
Result of the example "Pythagorean identity" The display shows: sin(x)^2+cos(x)^2 / 1.
You should see1
Example 8.5

simplify uses the identities

  1. Type simplify(1 − sin(x)²) to get cos(x)²; tan, sec and the hyperbolic functions work the same way.

    simplify(1−sin(x)^2▶)enter
Result of the example "simplify uses the identities" The display shows: simplify(1−sin(x)^2) / (cos(x))^2.
You should see(cos(x))^2
Example 8.6

Add fractions with letters

  1. Type x/2 + x/3 using the fraction template.

    /x▼2▶+/x▼3▶enter
Result of the example "Add fractions with letters" The display shows: x/2+x/3 / 5·x/6.
You should see5·x/6

8.2Expand brackets#

expand( multiplies brackets out. You find it in the Algebra menu (3, 3).

(x+1)3=x3+3x2+3x+1(x+1)^3=x^3+3x^2+3x+1
The binomial cube.
Example 8.7

Expand a cube

  1. Type expand((x+1)^3).

    expand((x+1)^3▶)enter
Result of the example "Expand a cube" The display shows: expand((x+1)^3) / x^3+3·x^2+3·x+1.
You should seex^3+3·x^2+3·x+1
Example 8.8

Expand a product

  1. Type expand((2x−3)(x+4)).

    expand((2x−3)(x+4))enter
Result of the example "Expand a product" The display shows: expand((2x−3)(x+4)) / 2·x^2+5·x-12.
You should see2·x^2+5·x-12
Example 8.9

Expand with two letters

  1. Type expand((x+y)²).

    expand((x+y)^2▶)enter
Result of the example "Expand with two letters" The display shows: expand((x+y)^2) / x^2+2·x·y+y^2.
You should seex^2+2·x·y+y^2
Example 8.10

A difference of squares of brackets

  1. Type expand((x+1)²−(x−1)²).

    expand((x+1)^2▶−(x−1)^2▶)enter
Result of the example "A difference of squares of brackets" The display shows: expand((x+1)^2−(x−1)^2) / 4·x.
You should see4·x

8.3Factor polynomials and numbers#

factor( breaks a polynomial into factors over the rationals, and a whole number into primes. The result is exact; if nothing factors, you get the same expression back. cFactor( also uses complex numbers.

Example 8.11

Factor a quadratic

x2−5x+6=(x−2)(x−3)x^{2}-5x+6=(x-2)(x-3)
  1. Type factor(x²−5x+6).

    factor(x^2▶−5x+6)enter
Result of the example "Factor a quadratic" The display shows: factor(x^2−5x+6) / (x-2)·(x-3).
You should see(x-2)·(x-3)
Example 8.12

Factor a fourth power

  1. Type factor(x⁴−1).

    factor(x^4▶−1)enter
Result of the example "Factor a fourth power" The display shows: factor(x^4−1) / (x-1)·(x+1)·(x^2+1).
You should see(x-1)·(x+1)·(x^2+1)
Example 8.13

Sum of cubes

  1. Type factor(x³+1).

    factor(x^3▶+1)enter
Result of the example "Sum of cubes" The display shows: factor(x^3+1) / (x+1)·(x^2-x+1).
You should see(x+1)·(x^2-x+1)
Example 8.14

A leading coefficient

  1. Type factor(6x²+5x+1).

    factor(6x^2▶+5x+1)enter
Result of the example "A leading coefficient" The display shows: factor(6x^2+5x+1) / (3·x+1)·(2·x+1).
You should see(3·x+1)·(2·x+1)
Example 8.15

Difference of squares

  1. Type factor(x²−y²).

    factor(x^2▶−y^2▶)enter
Result of the example "Difference of squares" The display shows: factor(x^2−y^2) / (x-y)·(x+y).
You should see(x-y)·(x+y)
Example 8.16

Factor with complex numbers

  1. Type cFactor(x²+1).

    cfactor(x^2▶+1)enter
Result of the example "Factor with complex numbers" The display shows: cfactor(x^2+1) / (x+i)·(x-i).
You should see(x+i)·(x-i)
Example 8.17

Factor with several letters

  1. Type factor(x²y + xy² + x + y).

    factor(x^2▶y+x×y^2▶+x+y)enter
Result of the example "Factor with several letters" The display shows: factor(x^2y+x·y^2+x+y) / (x+y)·(x·y+1).
You should see(x+y)·(x·y+1)
Example 8.18

Factor with roots

  1. Name the variable to allow square roots: factor(x⁴+1, x).

    factor(x^4▶+1,x)enter
Result of the example "Factor with roots" The display shows: factor(x^4+1,x) / (x^2+√2·x+1)·(x^2-√2·x+1).
You should see(x^2+√2·x+1)·(x^2-√2·x+1)

8.4Common denominators and parts of a fraction#

Example 8.19

Common denominator

1x+1y=x+yxy\frac{1}{x}+\frac{1}{y}=\frac{x+y}{xy}
  1. Type comDenom(1/x + 1/y).

    comdenom(1÷x+1÷y)enter
Result of the example "Common denominator" The display shows: comdenom(1/x+1/y) / (x+y)/(x·y).
You should see(x+y)/(x·y)
Example 8.20

Numerator of a fraction

  1. Type getNum(3/4).

    getnum(3÷4)enter
Result of the example "Numerator of a fraction" The display shows: getnum(3/4) / 3.
You should see3
Example 8.21

Denominator of a fraction

  1. Type getDenom(3/4).

    getdenom(3÷4)enter
Result of the example "Denominator of a fraction" The display shows: getdenom(3/4) / 4.
You should see4
Example 8.22

Left side of an equation

  1. Type left(x=3).

    left(x=3)enter
Result of the example "Left side of an equation" The display shows: left(x=3) / x.
You should seex
Example 8.23

Right side of an equation

  1. Type right(x=3).

    right(x=3)enter
Result of the example "Right side of an equation" The display shows: right(x=3) / 3.
You should see3

8.5Polynomial division and coefficients#

These functions take a polynomial and the variable: polyQuotient(p, q, x), polyRemainder(p, q, x), polyGcd(p, q, x), polyDegree(p, x), polyCoeffs(p, x).

x3−1=(x−1)(x2+x+1)+0x^3-1=(x-1)(x^2+x+1)+0
Dividing x³−1 by x−1.
Example 8.24

Quotient

  1. Type polyQuotient(x³−1, x−1, x).

    polyquotient(x^3▶−1,x−1,x)enter
Result of the example "Quotient" The display shows: polyquotient(x^3−1,x−1,x) / x^2+x+1.
You should seex^2+x+1
Example 8.25

Remainder

  1. Type polyRemainder(x³+2, x−1, x).

    polyremainder(x^3▶+2,x−1,x)enter
Result of the example "Remainder" The display shows: polyremainder(x^3+2,x−1,x) / 3.
You should see3
Example 8.26

Greatest common divisor

  1. Type polyGcd(x²−1, x²−x, x).

    polygcd(x^2▶−1,x^2▶−x,x)enter
Result of the example "Greatest common divisor" The display shows: polygcd(x^2−1,x^2−x,x) / x-1.
You should seex-1
Example 8.27

Degree

  1. Type polyDegree(x³+x, x).

    polydegree(x^3▶+x,x)enter
Result of the example "Degree" The display shows: polydegree(x^3+x,x) / 3.
You should see3
Example 8.28

Coefficients

  1. Type polyCoeffs(x²+3x+2, x).

    polycoeffs(x^2▶+3x+2,x)enter
Result of the example "Coefficients" The display shows: polycoeffs(x^2+3x+2,x) / {1,3,2}.
You should see{1,3,2}

polyRoots(p, x) lists the real roots of a polynomial and cPolyRoots(p, x) all of its complex roots. Instead of a polynomial you can give the list of coefficients, highest power first: polyRoots({1,−3,2}). Both are at the end of the Algebra menu (K and L).

Example 8.29

Real roots

  1. Press menu, 3, K for polyRoots(, then type x³−x, x.

    menu3kx^3▶−x,x)enter
Result of the example "Real roots" The display shows: polyRoots(x^3−x,x) / {-1,0,1}.
You should see{-1,0,1}
Example 8.30

Roots from a coefficient list

  1. Type polyRoots({1,−3,2}).

    polyroots(shift{(1,(−)3,2shift}))enter
Result of the example "Roots from a coefficient list" The display shows: polyroots({1,-3,2}) / {1,2}.
You should see{1,2}
Example 8.31

Complex roots

  1. Press menu, 3, L for cPolyRoots(, then type x⁴+4, x.

    menu3lx^4▶+4,x)enter
Result of the example "Complex roots" The display shows: cPolyRoots(x^4+4,x) / {-1-i,-1+i,1-i,1+i}.
You should see{-1-i,-1+i,1-i,1+i}

8.6Expand and collect trig expressions#

tExpand rewrites sines and cosines of sums and multiples (such as sin(x+y) or cos(2x)) in terms of sin and cos of the single angles. tCollect does the opposite: it turns products and powers of sines and cosines into sines and cosines of multiple angles. Both are in the Algebra menu (M and N).

sin2x=2sinxcosx,qquadcos2x−sin2x=cos2xsin 2x=2sin xcos x,qquad cos^{2}x-sin^{2}x=cos 2x
A double angle expanded, and a difference of squares collected.
Example 8.32

Expand a double angle

  1. Press menu, 3, M for tExpand(, then type sin(2x).

    menu3msin(2x))enter
Result of the example "Expand a double angle" The display shows: tExpand(sin(2x)) / 2·cos(x)·sin(x).
You should see2·cos(x)·sin(x)
Example 8.33

Expand an angle sum

  1. Type tExpand(cos(x+y)).

    texpand(cos(x+y))enter
Result of the example "Expand an angle sum" The display shows: texpand(cos(x+y)) / cos(x)·cos(y)-sin(x)·sin(y).
You should seecos(x)·cos(y)-sin(x)·sin(y)
Example 8.34

Collect a product

  1. Press menu, 3, N for tCollect(, then type 2sin(x)cos(x).

    menu3n2sin(x)×cos(x))enter
Result of the example "Collect a product" The display shows: tCollect(2sin(x)·cos(x)) / sin(2·x).
You should seesin(2·x)
Example 8.35

Collect a power

  1. Type tCollect(sin(x)²).

    tcollect(sin(x)^2▶)enter
Result of the example "Collect a power" The display shows: tcollect(sin(x)^2) / -cos(2·x)/2+1/2.
You should see-cos(2·x)/2+1/2

TI-Nspire CX CAS is a trademark of Texas Instruments Incorporated. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by Texas Instruments. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.