Skip to main content

Characteristic Polynomial Calculator

Our free linear algebra calculator solves characteristic polynomial problems. Get worked examples, visual aids, and downloadable results.

Skip to calculator
Mathematics

Characteristic Polynomial Calculator

Calculate the characteristic polynomial, eigenvalues, eigenvectors, and verify the Cayley-Hamilton theorem for a 2x2 matrix.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Characteristic Polynomial
p(x) = x^2 - 7.0000x + 10.0000
Type: General
Eigenvalue 1
5.0000
Eigenvalue 2
2.0000
Real and Distinct
Discriminant: 9.0000
Trace (sum of eigenvalues)
7.0000
Determinant (product)
10.0000
Discriminant
9.0000
Eigenvectors
For eigenvalue 5.0000
[-1, -1]
For eigenvalue 2.0000
[-1, 2]
Cayley-Hamilton Verification: A^2 - tr(A)*A + det(A)*I = 0?
0
0
0
0
All entries should be 0 (confirming Cayley-Hamilton theorem)
Note: The eigenvalues are the roots of the characteristic polynomial. The trace equals the sum of eigenvalues and the determinant equals the product. The Cayley-Hamilton theorem guarantees A satisfies its own characteristic polynomial.
Your Result
p(x) = x^2 - 7.0000x + 10.0000 | Eigenvalues: 5.0000, 2.0000 (Real and Distinct)
Share Your Result
Understand the Math

Formula

p(x) = det(A - xI) = x^2 - tr(A)x + det(A)

For a 2x2 matrix A, the characteristic polynomial is p(x) = x^2 - tr(A)*x + det(A), where tr(A) is the trace (sum of diagonal entries) and det(A) is the determinant. The eigenvalues are the roots of p(x) = 0.

Last reviewed: December 2025

Worked Examples

Example 1: 2x2 Matrix with Real Eigenvalues

Find the characteristic polynomial and eigenvalues of A = [[4, 1], [2, 3]].
Solution:
Trace = 4 + 3 = 7 Determinant = 4*3 - 1*2 = 10 Characteristic polynomial: p(x) = x^2 - 7x + 10 Discriminant: 49 - 40 = 9 > 0 (real distinct eigenvalues) Eigenvalues: x = (7 +/- sqrt(9)) / 2 = (7 +/- 3) / 2 lambda_1 = 5, lambda_2 = 2 Verification: 5 + 2 = 7 = trace, 5 * 2 = 10 = det
Result: p(x) = x^2 - 7x + 10 | Eigenvalues: 5 and 2

Example 2: 2x2 Matrix with Complex Eigenvalues

Find the characteristic polynomial and eigenvalues of A = [[1, -2], [3, 1]].
Solution:
Trace = 1 + 1 = 2 Determinant = 1*1 - (-2)*3 = 1 + 6 = 7 Characteristic polynomial: p(x) = x^2 - 2x + 7 Discriminant: 4 - 28 = -24 < 0 (complex eigenvalues) Eigenvalues: x = (2 +/- sqrt(-24)) / 2 = 1 +/- i*sqrt(6) lambda_1 = 1 + 2.449i, lambda_2 = 1 - 2.449i Modulus = sqrt(1 + 6) = sqrt(7) = 2.646
Result: p(x) = x^2 - 2x + 7 | Eigenvalues: 1 + 2.449i and 1 - 2.449i
Expert Insights

Background & Theory

The Characteristic Polynomial Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.

History

The history behind the Characteristic Polynomial Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.

Key Features

  • Solves linear, quadratic, and higher-degree polynomial equations step by step, returning all real and complex roots with full working shown.
  • Simplifies fractions to lowest terms and computes ratios and proportions, including cross-multiplication checks and equivalent fraction generation.
  • Performs complete prime factorization of any integer and computes the Greatest Common Divisor and Least Common Multiple for sets of numbers.
  • Handles matrix operations including addition, scalar multiplication, matrix multiplication, determinant calculation, and full matrix inversion for square matrices.
  • Evaluates all standard trigonometric functions and their inverses in degrees or radians, and verifies common trigonometric identities symbolically.
  • Calculates permutations, combinations, and binomial coefficients for combinatorics problems, supporting both formula display and step-by-step breakdown.
  • Converts integers between binary, octal, decimal, and hexadecimal bases instantly, with optional display of the positional value expansion.
  • Computes the sum of arithmetic and geometric sequences given the first term, common difference or ratio, and number of terms, with formula derivation.

Share this calculator

Explore More

Frequently Asked Questions

The characteristic polynomial of a square matrix A is defined as p(x) = det(A - xI), where I is the identity matrix and x (often written as lambda) is a variable. For a 2x2 matrix, this produces a quadratic polynomial: p(x) = x^2 - tr(A)x + det(A), where tr(A) is the trace (sum of diagonal elements) and det(A) is the determinant. For an n x n matrix, the characteristic polynomial is a degree-n polynomial. The roots of the characteristic polynomial are the eigenvalues of the matrix, making it one of the most important polynomials in linear algebra and matrix theory.
Eigenvalues are found by setting the characteristic polynomial equal to zero and solving for x. For a 2x2 matrix with characteristic polynomial p(x) = x^2 - tr(A)x + det(A) = 0, apply the quadratic formula: x = (tr(A) plus or minus sqrt(tr(A)^2 - 4*det(A))) / 2. The discriminant D = tr(A)^2 - 4*det(A) determines the nature of eigenvalues. If D > 0, there are two distinct real eigenvalues. If D = 0, there is one repeated real eigenvalue. If D < 0, the eigenvalues are complex conjugates. For larger matrices, numerical methods like the QR algorithm are used since polynomials of degree 5 or higher have no general closed-form solution.
The discriminant D = tr(A)^2 - 4*det(A) of a 2x2 characteristic polynomial reveals the geometric nature of the linear transformation. When D > 0, the matrix has two distinct real eigenvalues, meaning it stretches space differently in two independent directions. When D = 0, the repeated eigenvalue indicates the matrix might be a scaling (if diagonalizable) or has a Jordan block structure. When D < 0, the complex eigenvalues indicate the transformation involves rotation combined with scaling. In dynamical systems, the sign of the discriminant determines whether trajectories are nodes, spirals, or degenerate cases.
In control theory and dynamical systems, the characteristic polynomial determines system stability. For a linear system dx/dt = Ax, the system is asymptotically stable if and only if all roots (eigenvalues) of the characteristic polynomial have negative real parts. For discrete systems x(k+1) = Ax(k), stability requires all eigenvalues to have magnitude less than 1. The Routh-Hurwitz criterion provides a method to determine stability directly from the characteristic polynomial coefficients without computing eigenvalues. This makes the characteristic polynomial the central object in classical control theory, feedback design, and stability certification.
Yes, matrices with the same characteristic polynomial are called isospectral matrices, meaning they share the same eigenvalues with the same multiplicities. However, they may not be similar (related by a change of basis). For example, the 2x2 identity matrix and any matrix with trace 2 and determinant 1 share the same characteristic polynomial p(x) = x^2 - 2x + 1, but they could have different eigenvector structures. The Jordan normal form provides additional information beyond the characteristic polynomial that fully classifies matrices up to similarity. The minimum polynomial, which divides the characteristic polynomial, helps distinguish between isospectral matrices.
For an n x n matrix, the characteristic polynomial is a degree-n polynomial whose coefficients are related to the principal minors of the matrix. The coefficient of x^(n-1) is always -tr(A), the constant term is (-1)^n * det(A), and intermediate coefficients involve sums of principal minors of various sizes. Computing the characteristic polynomial of large matrices is done using methods like the Faddeev-LeVerrier algorithm, which recursively computes the coefficients in O(n^4) operations, or the more efficient Berkowitz algorithm. For sparse matrices, iterative methods can find individual eigenvalues without explicitly forming the characteristic polynomial.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

p(x) = det(A - xI) = x^2 - tr(A)x + det(A)

For a 2x2 matrix A, the characteristic polynomial is p(x) = x^2 - tr(A)*x + det(A), where tr(A) is the trace (sum of diagonal entries) and det(A) is the determinant. The eigenvalues are the roots of p(x) = 0.

Worked Examples

Example 1: 2x2 Matrix with Real Eigenvalues

Problem: Find the characteristic polynomial and eigenvalues of A = [[4, 1], [2, 3]].

Solution: Trace = 4 + 3 = 7\nDeterminant = 4*3 - 1*2 = 10\nCharacteristic polynomial: p(x) = x^2 - 7x + 10\nDiscriminant: 49 - 40 = 9 > 0 (real distinct eigenvalues)\nEigenvalues: x = (7 +/- sqrt(9)) / 2 = (7 +/- 3) / 2\nlambda_1 = 5, lambda_2 = 2\nVerification: 5 + 2 = 7 = trace, 5 * 2 = 10 = det

Result: p(x) = x^2 - 7x + 10 | Eigenvalues: 5 and 2

Example 2: 2x2 Matrix with Complex Eigenvalues

Problem: Find the characteristic polynomial and eigenvalues of A = [[1, -2], [3, 1]].

Solution: Trace = 1 + 1 = 2\nDeterminant = 1*1 - (-2)*3 = 1 + 6 = 7\nCharacteristic polynomial: p(x) = x^2 - 2x + 7\nDiscriminant: 4 - 28 = -24 < 0 (complex eigenvalues)\nEigenvalues: x = (2 +/- sqrt(-24)) / 2 = 1 +/- i*sqrt(6)\nlambda_1 = 1 + 2.449i, lambda_2 = 1 - 2.449i\nModulus = sqrt(1 + 6) = sqrt(7) = 2.646

Result: p(x) = x^2 - 2x + 7 | Eigenvalues: 1 + 2.449i and 1 - 2.449i

Frequently Asked Questions

What is a characteristic polynomial of a matrix?

The characteristic polynomial of a square matrix A is defined as p(x) = det(A - xI), where I is the identity matrix and x (often written as lambda) is a variable. For a 2x2 matrix, this produces a quadratic polynomial: p(x) = x^2 - tr(A)x + det(A), where tr(A) is the trace (sum of diagonal elements) and det(A) is the determinant. For an n x n matrix, the characteristic polynomial is a degree-n polynomial. The roots of the characteristic polynomial are the eigenvalues of the matrix, making it one of the most important polynomials in linear algebra and matrix theory.

How do you find eigenvalues from the characteristic polynomial?

Eigenvalues are found by setting the characteristic polynomial equal to zero and solving for x. For a 2x2 matrix with characteristic polynomial p(x) = x^2 - tr(A)x + det(A) = 0, apply the quadratic formula: x = (tr(A) plus or minus sqrt(tr(A)^2 - 4*det(A))) / 2. The discriminant D = tr(A)^2 - 4*det(A) determines the nature of eigenvalues. If D > 0, there are two distinct real eigenvalues. If D = 0, there is one repeated real eigenvalue. If D < 0, the eigenvalues are complex conjugates. For larger matrices, numerical methods like the QR algorithm are used since polynomials of degree 5 or higher have no general closed-form solution.

What does the discriminant of the characteristic polynomial tell us?

The discriminant D = tr(A)^2 - 4*det(A) of a 2x2 characteristic polynomial reveals the geometric nature of the linear transformation. When D > 0, the matrix has two distinct real eigenvalues, meaning it stretches space differently in two independent directions. When D = 0, the repeated eigenvalue indicates the matrix might be a scaling (if diagonalizable) or has a Jordan block structure. When D < 0, the complex eigenvalues indicate the transformation involves rotation combined with scaling. In dynamical systems, the sign of the discriminant determines whether trajectories are nodes, spirals, or degenerate cases.

What is the significance of the characteristic polynomial in stability analysis?

In control theory and dynamical systems, the characteristic polynomial determines system stability. For a linear system dx/dt = Ax, the system is asymptotically stable if and only if all roots (eigenvalues) of the characteristic polynomial have negative real parts. For discrete systems x(k+1) = Ax(k), stability requires all eigenvalues to have magnitude less than 1. The Routh-Hurwitz criterion provides a method to determine stability directly from the characteristic polynomial coefficients without computing eigenvalues. This makes the characteristic polynomial the central object in classical control theory, feedback design, and stability certification.

Can two different matrices have the same characteristic polynomial?

Yes, matrices with the same characteristic polynomial are called isospectral matrices, meaning they share the same eigenvalues with the same multiplicities. However, they may not be similar (related by a change of basis). For example, the 2x2 identity matrix and any matrix with trace 2 and determinant 1 share the same characteristic polynomial p(x) = x^2 - 2x + 1, but they could have different eigenvector structures. The Jordan normal form provides additional information beyond the characteristic polynomial that fully classifies matrices up to similarity. The minimum polynomial, which divides the characteristic polynomial, helps distinguish between isospectral matrices.

How does the characteristic polynomial generalize to larger matrices?

For an n x n matrix, the characteristic polynomial is a degree-n polynomial whose coefficients are related to the principal minors of the matrix. The coefficient of x^(n-1) is always -tr(A), the constant term is (-1)^n * det(A), and intermediate coefficients involve sums of principal minors of various sizes. Computing the characteristic polynomial of large matrices is done using methods like the Faddeev-LeVerrier algorithm, which recursively computes the coefficients in O(n^4) operations, or the more efficient Berkowitz algorithm. For sparse matrices, iterative methods can find individual eigenvalues without explicitly forming the characteristic polynomial.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy