R/MRatCalcpowered by RiX

RiX walkthrough 15 c

Course-level symbolic forms and integration

Normalize exact polynomials and inspect a bounded integration ladder with absolute-value, trigonometric, and quadratic cases.

Load one isolated CAS surface. Its dependencies remain ordinary focused RiX plugins rather than an external computer-algebra process.

Normalize without losing evidence

Runnable RiX

Integrate a specialized Polynomial directly

A collected Polynomial stores exact coefficients and its mathematical variable name. CAS can integrate that value directly, not just the original expression graph. The returned antiderivative is still a Calculus expression graph.

Runnable RiX

The primitive represents t^4/4+t^2, with the arbitrary additive constant omitted. CAS reads :t from the Polynomial even though Integrate defaults to :x for expression-graph inputs. Zero and constant Polynomial values use the same coefficient rule.

Walk the integration ladder

Runnable RiX

The logarithm row has a positive-argument obligation because Log(2*x+1) is the source function. A reciprocal uses a different, global real primitive:

Runnable RiX

Its result is a public Log(Abs(x)) graph with the exact obligation x != 0, not a false positivity restriction.

Add the common trigonometric and quadratic cases

Runnable RiX

The quadratic rule proves the negative discriminant condition exactly and retains the completed-square coefficients.

Reduce powers and products

The power rule lowers the exponent by two at each step. The product rule changes two factors into a sum/difference of harmonics. Neither needs a general identity-search engine.

Runnable RiX

For the last row, the difference frequency is zero. Its cosine term is a constant, so the primitive includes x/2; the implementation does not divide by a zero frequency. Compare this product route with Sin(x)^2 and differentiate both answers: primitives may look different and still differ only by a constant.

Runnable RiX

Nonnegative integer powers through degree 8 are supported. Mixed powers and nonaffine arguments remain explicit unsupported cases, not guessed answers.

Let exact partial fractions do the algebra

Runnable RiX

The RationalFunction service proves the decomposition; CAS integrates the polynomial and linear-factor terms. The log obligations retain the selected real branches.

Unsupported is a useful result

Runnable RiX

This integral has a closed form involving inverse hyperbolic functions, but it is outside the current course ladder. A visible unsupported record is safer and more educational than a guessed transformation.

Keep diagnostics separate from the successful computation

CAS uses ?_> both in helper prep lists and inside selected rule branches. You can use the same style when consuming its results. This helper propagates an unsupported record before attempting to differentiate a missing primitive:

Runnable RiX

The check describes what must hold to continue. Its diagnostic is evaluated only on failure, and returns from the function call. Inside a function body, the same check can follow intermediate work, including inside a branch block. Do not use it at tutorial top level: there is no function call to return from. ??> handles undecided checks; an explicit CAS :unsupported result is a decided status and uses ?_>, not ??>.

Further work

1. Differentiate each returned antiderivative and compare it with the source. 2. Try repeated linear factors such as 1/(x-1)^2 through .rf. 3. Compare the source-domain obligation for Log(x) with the reciprocal-domain obligation for 1/x. 4. Derive the completed-square formula used for (m*x+n)/(a*x^2+b*x+c) when 4*a*c-b^2 > 0. 5. Derive the two-degree power recurrence by integration by parts, then compare its answer for Sin(x)^2 with the product-to-sum route.

Bounded course continuation

See [the executable course calculus guide](../../documentation/eval/course-calculus.md) for mixed powers, radicals, definite integrals, local domain rewrites, and inert equation/declared-derivative records. It includes exact, bounded-failure and explicitly approximate examples.