Skip to content

CAS Dialog

The CAS Dialog is a sidebar panel that provides Computer Algebra System (CAS) operations powered by SymPy. It lets you perform symbolic math operations — simplify, factor, differentiate, integrate, and more — directly on math expressions in your document.

The CAS Dialog is not open by default. To open it, type \cas-dialog in the suggestion box and select it from the list.

CAS Dialog suggestion box

Once opened, the CAS Dialog appears as a panel on the right side of the editor and stays visible for the rest of your session.

  1. Type a math expression in your document (using inline math $ or a math container).
  2. Place your cursor inside the math expression so the editor is in math mode.
  3. Click an action in the CAS Dialog panel (e.g., Factor, Simplify).
  4. Click the Run button that appears next to the action.
  5. The result replaces your current expression.

CAS Dialog how to use example

Your cursor must be inside a math expression (math mode) for CAS actions to work. If you see the warning “Current selection is not in math mode”, click back into your math expression first.

The panel has a search bar at the top to filter through all 33 available actions. Actions are organized into four categories.

ActionDescriptionParameters
SubstituteReplace one symbol or expression with anotherfrom, to
SimplifyReduce the expression to a simpler form
ExpandExpand products and powers
FactorFactor the expression
CancelCancel common factors in rational expressions
Partial FractionsDecompose a rational expression into partial fractions
TogetherCombine terms into a common denominator
Trig SimplifySimplify trigonometric expressions
Power SimplifyCombine powers with related bases or exponents
Radical SimplifySimplify radicals and rationalized denominators
Rational SimplifySimplify rational expressions into a canonical form
Combinatorial SimplifySimplify combinatorial expressions
Sign SimplifySimplify signs in expressions
Power DenestDenest powers where valid
Log CombineCombine logarithms where valid
Expand TrigExpand trigonometric functions
Expand LogExpand logarithms where valid
Expand Power BaseExpand powers over products where valid
CollectCollect terms with respect to a variablevar
SolveSolve an equation or expressionvar
ActionDescriptionParameters
DifferentiateDifferentiate with respect to a variablevar
IntegrateIntegrate with respect to a variablevar
LimitEvaluate a limitvar, to
SumCompute a symbolic sum with boundsvar, from, to
ProductCompute a symbolic product with boundsvar, from, to
ActionDescription
Matrix DetCompute the determinant of a matrix
Matrix InverseCompute the inverse of a matrix
Matrix TransposeTranspose a matrix
Matrix RREFCompute reduced row echelon form
Matrix EigenvaluesCompute matrix eigenvalues
Matrix EigenvectorsCompute matrix eigenvectors
ActionDescriptionParameters
Ask PredicateAsk SymPy whether a predicate is true for the expression
RefineRefine the expression under an assumptionassuming (e.g., positive(x))

Some actions have input fields that let you configure the operation:

  • var — the variable to operate with respect to (default: x). Used by Differentiate, Integrate, Limit, Collect, Solve, Sum, and Product.
  • from / to — bounds for Sum and Product (default: 1 to 10), or the substitution values for Substitute.
  • assuming — an assumption expression for Refine (e.g., positive(x)).

Use the search bar at the top of the CAS Dialog to quickly find an action by name. The counter (e.g., “33/33”) shows how many actions match the current search query.