Source: Integration at 605cbc581c27.

Rubi 4.17.3.0 derivative rules#

Both pinned editions use identical source bytes for section 9.1 (SHA-256 2087d3e21da88eaccb5d73b44d63c9071a56405df7fd0bbe320cc839213774df). The table reviews the 15 source cells outside the original six-rule export. Cell numbers refer to the upstream notebook. Source

Using the results#

Cells 9 and 12 are loaded with their original guards. Their local IDs are 9 and 12 in the release and 7 and 8 in the compatibility manifest. For the other 13, read files[].omitted[] for section 9.1 in the release ledger. Each source_rule preserves the complete pattern, ordered constraints and result. The enclosing record retains the original source text. The provenance gives the Git revision and cell locator. order_and_divisor_guards lists proposed additional predicates for the stated real interpretation. real_interpretation.source links to the Lean declaration with the analytic assumptions, including positivity and the derivative of the residual primitive. The guard list alone is insufficient to enable a rule. Cells 1 and 8 are enabled through errata records with action enable (issue #13): each carries the source rule with IGtQ[n, 0] appended, a free local ID (1 and 8 in the release, 9 and 10 in the compatibility manifest), the shipped rule it precedes in source order (insert_before) and the Lean declaration of its real interpretation (OSR.Rubi.predecessorDeriv, OSR.Rubi.primitiveSubstitution). With the guard, cell 1 is the fundamental theorem of calculus for f^(n-1) and cell 8 the substitution v = f^(n-1)(x). All 21 source cells are checked against the parsed upstream expressions, including repeated bindings, orders, coefficients and the variable in each nested application. Run python3 scripts/test_derivative_examples.py to differentiate the transcribed results numerically. The 33 regular examples use f(t)=t⁵, g(t)=t⁴ and a known multiplier K(s)=s² for substitution. For negative orders they use primitives vanishing at zero. Three examples use p=−1 in cells 12, 13 and 15, where no division by p+1 occurs. Three further cases exercise the singular source divisors at b=0.

Reading the real theorems#

Write F and G for the indicated functions at the original variable, with their indicated derivatives F′ and G′. In substitutions let Z be the new variable, assume the source multiplier u factors as K(Z) on the branch of interest, and let P be a primitive of K at Z(x). The proofs differentiate the proposed multiple of P(Z(x)). They use the actual coefficients, signs and powers from the source. They require differentiability at the evaluation point and, for arbitrary real powers, positivity of the bases used there. A CAS must justify the factorization and the chosen branch on its domain. Rubi’s FunctionOfQ[Z,u,x] tests functional dependence, SubstFor[Z,u,x] constructs the new integrand, SimplifyIntegrand processes it, and Subst returns to the original variable after integration. Their evaluation order and variable binding are part of the transcription. Pinned Rubi utilities

CellSource operationReal interpretation and conditions beyond matchingLean theorem in OSR.Rubi
1Integrate order n to order n−1For positive integer n and f locally of class Cⁿ. The source only tests independence of n from x.predecessorDeriv
3Exponential integration by parts for negative nV is the chosen order-n primitive, V′ is its successor. Positive c,F and nonzero b p log(F) suffice.exponentialPrimitiveParts
6Sine integration by parts for negative nA compatible primitive pair and b ≠ 0. Cosine residual has a plus sign.sinePrimitiveParts
7Cosine integration by parts for negative nA compatible primitive pair and b ≠ 0. Sine residual has a minus sign.cosinePrimitiveParts
8Substitute Z = Dⁿ⁻¹fPositive integer n gives Z′ = Dⁿf for sufficiently smooth f.primitiveSubstitution, predecessorDeriv
9Z = fgOrdinary first derivatives. The primitive is a P(Z).productSubstitution
10Z = (Dᵐ⁻¹f)gPositive integer m suffices. Retain the equality m1 = m−1.productSubstitution, predecessorDeriv
11Z = (Dᵐ⁻¹f)(Dⁿ⁻¹g)Positive integers m,n suffice. Both predecessor equalities are required.productSubstitution, predecessorDeriv
12Z = f^(p+1) gf(x) > 0 is sufficient for real powers. With a = b(p+1) the outside coefficient is b, including at p = −1.leftPowerSubstitution
13Z = F^(p+1) g, F = Dᵐ⁻¹fAs cell 12 with positive integer m, F(x) > 0, and the source predecessor equality.leftPowerSubstitution, predecessorDeriv
14Z = F g^(q+1), F = Dᵐ⁻¹fPositive integer m, g(x) > 0, b = a(q+1). The outside coefficient is a.rightPowerSubstitution, predecessorDeriv
15Z = F^(p+1) G, F = Dᵐ⁻¹f, G = Dⁿ⁻¹gAs cell 13 with both predecessor orders and F(x) > 0.leftPowerSubstitution, predecessorDeriv
16Z = f^(p+1) g^(q+1)Both bases positive, a(q+1) = b(p+1), and p+1 ≠ 0.twoPowerSubstitution
17Same two powers with F = Dᵐ⁻¹fCell 16 conditions, positive integer m and its predecessor equality.twoPowerSubstitution, predecessorDeriv
18Same two powers with F = Dᵐ⁻¹f, G = Dⁿ⁻¹gCell 16 conditions, positive integer m,n and both predecessor equalities.twoPowerSubstitution, predecessorDeriv

For a negative order n, a CAS needs a convention for repeated integration and the constants of integration. For example a tower V₀=f, V₁,V₂,… may be chosen on an interval with V′ⱼ₊₁=Vⱼ. At n=−1 this gives V′₁=f. Cells 3, 6 and 7 need this adjacent-member relationship and a primitive of the residual integrand. Their proofs work for any such choices. The source ILtQ[n,0] establishes a negative integer. It supplies neither the tower nor the required nonzero divisor. A real theorem about this interpretation does not assign an OpenMath iterated-derivative meaning to arbitrary negative or symbolic Wolfram orders. Wolfram Derivative · OpenMath calculus1

Two failures of the published guards#

  • Cells 3, 6 and 7 admit n = −1 and b = 0 under their listed scalar guards. Take V(t)=t, V′=1 and x=1. The sine weight at a=π/2, the cosine weight at a=0, and the exponential weight at c=1,F=2,p=1,a=0 all give a finite integrand there. The right sides request 1/b or 1/(b p log(F)). primitiveSlopeCounterexample proves the nonexistence of those reciprocals at that specialization. A CAS may simplify a constant weight before matching.
  • In cells 16–18 take a=b=1 and p=q=−1. The coefficient equality holds while the quotient a/(p+1) has no real value. The source guard and input integrand are evaluated in the existing witness. substitutionCoefficientCounterexample checks the denominator obstruction.

The proofs are local real statements. Formal verification of Rubi’s matcher, the implementation of its substitution helpers and a complex branch model remain separate tasks. Recurrences · Substitutions · Counterexamples