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.
Combine like terms
Type 2x + 3x.
2x+3xenter

5·xCancel a common factor
Type (x²−4) / (x²+4x+4).
(x^2▶−4)÷(x^2▶+4x+4)enter

(x-2)/(x+2)Add powers
Type x² × x³.
x^2▶×x^3▶enter

x^5Pythagorean identity
Type sin(x)² + cos(x)².
sin(x)^2▶+cos(x)^2▶enter

1simplify uses the identities
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

(cos(x))^2Add fractions with letters
Type x/2 + x/3 using the fraction template.
/x▼2▶+/x▼3▶enter

5·x/68.2Expand brackets#
expand( multiplies brackets out. You find it in the Algebra menu (3, 3).
Expand a cube
Type expand((x+1)^3).
expand((x+1)^3▶)enter

x^3+3·x^2+3·x+1Expand a product
Type expand((2x−3)(x+4)).
expand((2x−3)(x+4))enter

2·x^2+5·x-12Expand with two letters
Type expand((x+y)²).
expand((x+y)^2▶)enter

x^2+2·x·y+y^2A difference of squares of brackets
Type expand((x+1)²−(x−1)²).
expand((x+1)^2▶−(x−1)^2▶)enter

4·x8.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.
Factor a quadratic
Type factor(x²−5x+6).
factor(x^2▶−5x+6)enter

(x-2)·(x-3)Factor a fourth power
Type factor(x⁴−1).
factor(x^4▶−1)enter

(x-1)·(x+1)·(x^2+1)Sum of cubes
Type factor(x³+1).
factor(x^3▶+1)enter

(x+1)·(x^2-x+1)A leading coefficient
Type factor(6x²+5x+1).
factor(6x^2▶+5x+1)enter

(3·x+1)·(2·x+1)Difference of squares
Type factor(x²−y²).
factor(x^2▶−y^2▶)enter

(x-y)·(x+y)Factor with complex numbers
Type cFactor(x²+1).
cfactor(x^2▶+1)enter

(x+i)·(x-i)Factor with several letters
Type factor(x²y + xy² + x + y).
factor(x^2▶y+x×y^2▶+x+y)enter

(x+y)·(x·y+1)Factor with roots
Name the variable to allow square roots: factor(x⁴+1, x).
factor(x^4▶+1,x)enter

(x^2+√2·x+1)·(x^2-√2·x+1)8.4Common denominators and parts of a fraction#
Common denominator
Type comDenom(1/x + 1/y).
comdenom(1÷x+1÷y)enter

(x+y)/(x·y)Numerator of a fraction
Type getNum(3/4).
getnum(3÷4)enter

3Denominator of a fraction
Type getDenom(3/4).
getdenom(3÷4)enter

4Left side of an equation
Type left(x=3).
left(x=3)enter

xRight side of an equation
Type right(x=3).
right(x=3)enter

38.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).
Quotient
Type polyQuotient(x³−1, x−1, x).
polyquotient(x^3▶−1,x−1,x)enter

x^2+x+1Remainder
Type polyRemainder(x³+2, x−1, x).
polyremainder(x^3▶+2,x−1,x)enter

3Greatest common divisor
Type polyGcd(x²−1, x²−x, x).
polygcd(x^2▶−1,x^2▶−x,x)enter

x-1Degree
Type polyDegree(x³+x, x).
polydegree(x^3▶+x,x)enter

3Coefficients
Type polyCoeffs(x²+3x+2, x).
polycoeffs(x^2▶+3x+2,x)enter

{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).
Real roots
Press menu, 3, K for polyRoots(, then type x³−x, x.
menu3kx^3▶−x,x)enter

{-1,0,1}Roots from a coefficient list
Type polyRoots({1,−3,2}).
polyroots(shift{(1,(−)3,2shift}))enter

{1,2}Complex roots
Press menu, 3, L for cPolyRoots(, then type x⁴+4, x.
menu3lx^4▶+4,x)enter

{-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).
Expand a double angle
Press menu, 3, M for tExpand(, then type sin(2x).
menu3msin(2x))enter

2·cos(x)·sin(x)Expand an angle sum
Type tExpand(cos(x+y)).
texpand(cos(x+y))enter

cos(x)·cos(y)-sin(x)·sin(y)Collect a product
Press menu, 3, N for tCollect(, then type 2sin(x)cos(x).
menu3n2sin(x)×cos(x))enter

sin(2·x)Collect a power
Type tCollect(sin(x)²).
tcollect(sin(x)^2▶)enter

-cos(2·x)/2+1/2TI-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.