Get the FREE Ultimate OpenClaw Setup Guide →

eigenvalues

npx machina-cli add skill parcadei/Continuous-Claude-v3/eigenvalues --openclaw
Files (1)
SKILL.md
1.2 KB

Eigenvalues

When to Use

Use this skill when working on eigenvalues problems in linear algebra.

Decision Tree

  1. Compute Characteristic Polynomial

    • det(A - lambda*I) = 0
    • sympy_compute.py charpoly "[[a,b],[c,d]]" --var lam
  2. Find Eigenvalues

    • Solve characteristic polynomial
    • sympy_compute.py eigenvalues "[[1,2],[3,4]]"
  3. Find Eigenvectors

    • For each eigenvalue lambda: solve (A - lambda*I)v = 0
    • sympy_compute.py eigenvectors "[[1,2],[3,4]]"
  4. Verify

    • Check Av = lambda*v with z3_solve.py prove
    • Verify algebraic/geometric multiplicity

Tool Commands

Sympy_Eigenvalues

uv run python -m runtime.harness scripts/sympy_compute.py eigenvalues "[[1,2],[3,4]]"

Sympy_Charpoly

uv run python -m runtime.harness scripts/sympy_compute.py charpoly "[[a,b],[c,d]]" --var lam

Z3_Verify

uv run python -m runtime.harness scripts/z3_solve.py sat "det(A - lambda*I) == 0"

Cognitive Tools Reference

See .claude/skills/math-mode/SKILL.md for full tool documentation.

Source

git clone https://github.com/parcadei/Continuous-Claude-v3/blob/main/.claude/skills/math/linear-algebra/eigenvalues/SKILL.mdView on GitHub

Overview

Learn to solve eigenvalue problems by moving from the characteristic polynomial to eigenvectors and verification. This skill guides you through det(A - λI) = 0, finding eigenvalues, computing eigenvectors, and validating results with algebraic multiplicities.

How This Skill Works

Compute the characteristic polynomial det(A - λI) = 0 to extract eigenvalues. For each eigenvalue, solve (A - λI)v = 0 to obtain eigenvectors, then verify by checking Av = λv and examining algebraic vs geometric multiplicities. Use the provided tool commands (Sympy_Eigenvalues, Sympy_Charpoly, Z3_Verify) to compute and confirm results.

When to Use It

  • Determining eigenvalues of a matrix to understand its action.
  • Diagonalizing a matrix by finding eigenvalues and eigenvectors.
  • Analyzing stability in a linear dynamical system via eigenvalues.
  • Verifying candidate eigenpairs using an algebraic check (Av = λv).
  • Working with simple matrices (e.g., [[1,2],[3,4]]) to illustrate methods.

Quick Start

  1. Step 1: Compute the characteristic polynomial det(A - λI) = 0.
  2. Step 2: Solve for eigenvalues λ.
  3. Step 3: For each λ, solve (A - λI)v = 0 to get eigenvectors and verify Av = λv.

Best Practices

  • Start with computing the characteristic polynomial det(A - λI) = 0.
  • Use symbolic tools (e.g., Sympy) to find eigenvalues for accuracy.
  • For each eigenvalue, solve (A - λI)v = 0 to obtain eigenvectors.
  • Verify eigenpairs by checking Av = λv and inspect algebraic vs geometric multiplicity.
  • Cross-check results with a secondary method (e.g., Z3 verification).

Example Use Cases

  • Find eigenvalues of A = [[1,2],[3,4]] and compute corresponding eigenvectors.
  • Diagonalize a 2x2 matrix and verify Av = λv for each eigenpair.
  • Perform stability analysis in a linearized system using eigenvalues.
  • Determine if a matrix is diagonalizable from its eigenpairs.
  • Compute eigenvalues of a generic 2x2 matrix A = [[a,b],[c,d]].

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers