Mathwords logoMathwords

Computer Algebra System — Definition & Example

A computer algebra system (CAS) is software that works with mathematical symbols the way you do on paper. It factors, expands, solves, differentiates, and integrates, and it returns exact answers such as 3/3\sqrt{3}/3 instead of decimals like 0.577.

A computer algebra system is a program that represents mathematical objects (polynomials, rational functions, radicals, matrices, symbolic expressions) as exact data structures. It applies algorithmic transformations to them, such as simplification, polynomial factorization, symbolic differentiation and integration, and equation solving, using exact integer and rational arithmetic rather than floating-point approximation. Examples include Mathematica, Maple, SymPy, Maxima, and the CAS built into calculators such as the TI-Nspire CX CAS.

Worked Example

Problem: You enter f(x)=x3−6x2+11x−6f(x) = x^3 - 6x^2 + 11x - 6 into a CAS. Use it to factor f(x)f(x), find f′(x)f'(x), and solve f′(x)=0f'(x) = 0 exactly.
Step 1: The factor command returns the complete factorization over the integers. The output shows that the zeros are 1, 2, and 3.
x3−6x2+11x−6=(x−1)(x−2)(x−3)x^3 - 6x^2 + 11x - 6 = (x-1)(x-2)(x-3)
Step 2: The derivative command differentiates term by term, symbolically.
f′(x)=3x2−12x+11f'(x) = 3x^2 - 12x + 11
Step 3: The solve command applies the quadratic formula and simplifies the radical. It keeps the answers exact. A numerical calculator would show only the decimals.
x=12±126=2±33≈1.423, 2.577x = \frac{12 \pm \sqrt{12}}{6} = 2 \pm \frac{\sqrt{3}}{3} \approx 1.423,\ 2.577
Answer: f(x)=(x−1)(x−2)(x−3)f(x) = (x-1)(x-2)(x-3), f′(x)=3x2−12x+11f'(x) = 3x^2 - 12x + 11, and f′(x)=0f'(x) = 0 at x=2±33x = 2 \pm \frac{\sqrt{3}}{3} (about 1.423 and 2.577).

Why It Matters

Engineers and physicists use Mathematica and Maple to simplify equations too long to handle by hand. Some college calculus and differential equations courses include computer labs that use a CAS such as Maple, Mathematica, or SymPy. Tests treat CAS calculators differently. AP Calculus exams allow approved CAS graphing calculators such as the TI-89 and TI-Nspire CX CAS, while the ACT and the SAT do not allow calculators with CAS functionality. Check the current calculator policy before test day.

Common Mistakes

Mistake: Assuming the CAS is broken when it will not simplify x2\sqrt{x^2} to xx.
Correction: For real xx, x2=∣x∣\sqrt{x^2} = |x|, which equals xx only when x≥0x \ge 0. A CAS treats xx as possibly negative or complex unless you tell it otherwise. State your assumptions, for example that xx is positive. Then check whether the output matches the domain of your problem.

Related Terms

  • Algebra — The symbolic mathematics a CAS carries out for you
  • Differentiation — Symbolic operation a CAS performs on functions
  • Integration — Symbolic operation a CAS performs to find integrals