Step-by-step derivation
S001 · implies
Before
explicit real polynomial moment or constant integrand model
After
oriented I(a,b)=H(b)−H(a);do not sort endpoints
Conditions: none
Real polynomials are continuous and integrable;use termwise primitive endpoint differences for exact oriented integrals,not absolute area or a finite sum.
Step identifiers and dependencies
Rule: polynomial_moment_scope · Uses: G001
S002 · calculation
Before
interval width := sub(3, -2)
After
interval width = 5
Conditions: none
Compute the nonnegative interval width,allowing zero width.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
partition step := div(5, 5)
After
partition step = 1
Conditions: none
Divide by positive integer N to get the exact step.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
left sample0 offset := mul(0, 1)
After
left sample0 offset = 0
Conditions: none
Left samples use i=0,...,N−1,not the final right endpoint.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
left sample0 x := sum(-2, 0)
After
left sample0 x = -2
Conditions: none
Add the indexed offset to the start.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
left sample0 mx := mul(5, -2)
After
left sample0 mx = -10
Conditions: none
Evaluate the product term of the affine integrand.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
left sample0 value := sum(-10, -8)
After
left sample0 value = -18
Conditions: none
Add c to obtain this sample value.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · calculation
Before
left sample0 rectangle := mul(-18, 1)
After
left sample0 rectangle = -18
Conditions: none
Multiply by the step to get the signed rectangle contribution,without absolute values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · implies
Before
[-2, -18, -18]
After
finite left-sum term index=0
Conditions: none
List exactly one left term per subinterval;these are finite-sum data,not a claimed limit proof.
Step identifiers and dependencies
Rule: left_partition_term · Uses: G001, S008
S010 · calculation
Before
left sample1 offset := mul(1, 1)
After
left sample1 offset = 1
Conditions: none
Left samples use i=0,...,N−1,not the final right endpoint.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
left sample1 x := sum(-2, 1)
After
left sample1 x = -1
Conditions: none
Add the indexed offset to the start.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
left sample1 mx := mul(5, -1)
After
left sample1 mx = -5
Conditions: none
Evaluate the product term of the affine integrand.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
left sample1 value := sum(-5, -8)
After
left sample1 value = -13
Conditions: none
Add c to obtain this sample value.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · calculation
Before
left sample1 rectangle := mul(-13, 1)
After
left sample1 rectangle = -13
Conditions: none
Multiply by the step to get the signed rectangle contribution,without absolute values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · implies
Before
[-1, -13, -13]
After
finite left-sum term index=1
Conditions: none
List exactly one left term per subinterval;these are finite-sum data,not a claimed limit proof.
Step identifiers and dependencies
Rule: left_partition_term · Uses: G001, S014
S016 · calculation
Before
left sample2 offset := mul(2, 1)
After
left sample2 offset = 2
Conditions: none
Left samples use i=0,...,N−1,not the final right endpoint.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
left sample2 x := sum(-2, 2)
After
left sample2 x = 0
Conditions: none
Add the indexed offset to the start.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
left sample2 mx := mul(5, 0)
After
left sample2 mx = 0
Conditions: none
Evaluate the product term of the affine integrand.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · calculation
Before
left sample2 value := sum(0, -8)
After
left sample2 value = -8
Conditions: none
Add c to obtain this sample value.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · calculation
Before
left sample2 rectangle := mul(-8, 1)
After
left sample2 rectangle = -8
Conditions: none
Multiply by the step to get the signed rectangle contribution,without absolute values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · implies
Before
[0, -8, -8]
After
finite left-sum term index=2
Conditions: none
List exactly one left term per subinterval;these are finite-sum data,not a claimed limit proof.
Step identifiers and dependencies
Rule: left_partition_term · Uses: G001, S020
S022 · calculation
Before
left sample3 offset := mul(3, 1)
After
left sample3 offset = 3
Conditions: none
Left samples use i=0,...,N−1,not the final right endpoint.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · calculation
Before
left sample3 x := sum(-2, 3)
After
left sample3 x = 1
Conditions: none
Add the indexed offset to the start.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · calculation
Before
left sample3 mx := mul(5, 1)
After
left sample3 mx = 5
Conditions: none
Evaluate the product term of the affine integrand.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S023
S025 · calculation
Before
left sample3 value := sum(5, -8)
After
left sample3 value = -3
Conditions: none
Add c to obtain this sample value.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
left sample3 rectangle := mul(-3, 1)
After
left sample3 rectangle = -3
Conditions: none
Multiply by the step to get the signed rectangle contribution,without absolute values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · implies
Before
[1, -3, -3]
After
finite left-sum term index=3
Conditions: none
List exactly one left term per subinterval;these are finite-sum data,not a claimed limit proof.
Step identifiers and dependencies
Rule: left_partition_term · Uses: G001, S026
S028 · calculation
Before
left sample4 offset := mul(4, 1)
After
left sample4 offset = 4
Conditions: none
Left samples use i=0,...,N−1,not the final right endpoint.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · calculation
Before
left sample4 x := sum(-2, 4)
After
left sample4 x = 2
Conditions: none
Add the indexed offset to the start.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S028
S030 · calculation
Before
left sample4 mx := mul(5, 2)
After
left sample4 mx = 10
Conditions: none
Evaluate the product term of the affine integrand.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S029
S031 · calculation
Before
left sample4 value := sum(10, -8)
After
left sample4 value = 2
Conditions: none
Add c to obtain this sample value.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S030
S032 · calculation
Before
left sample4 rectangle := mul(2, 1)
After
left sample4 rectangle = 2
Conditions: none
Multiply by the step to get the signed rectangle contribution,without absolute values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S031
S033 · implies
Before
[2, 2, 2]
After
finite left-sum term index=4
Conditions: none
List exactly one left term per subinterval;these are finite-sum data,not a claimed limit proof.
Step identifiers and dependencies
Rule: left_partition_term · Uses: G001, S032
S034 · calculation
Before
finite left sum := sum(-18, -13, -8, -3, 2)
After
finite left sum = -40
Conditions: none
Add all N contributions.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S033
S035 · calculation
Before
affine integral primitive coefficient1 := div(-8, 1)
After
affine integral primitive coefficient1 = -8
Conditions: none
The primitive coefficient for c·x^k is c/(k+1),with positive nonzero k+1.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S034
S036 · calculation
Before
affine integral primitive coefficient2 := div(5, 2)
After
affine integral primitive coefficient2 = 5/2
Conditions: none
The primitive coefficient for c·x^k is c/(k+1),with positive nonzero k+1.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S035
S037 · implies
Before
[0, -8, 5/2]
After
H′=the supplied polynomial;integrate from -2 to 3
Conditions: none
Termwise differentiation recovers the original coefficients;the integration constant cancels in the endpoint difference.
Step identifiers and dependencies
Rule: polynomial_primitive_identity · Uses: G001, S036
S038 · implies
Before
affine integral H(b) ascending coefficients=[0, -8, 5/2]
After
evaluate at x=3
Conditions: none
Evaluate ascending coefficients by Horner from the highest nonzero term down;ignoring redundant top zero terms changes neither the function nor the retained original list.
Step identifiers and dependencies
Rule: polynomial_evaluation_order · Uses: G001, S037
S039 · calculation
Before
affine integral H(b) Horner multiply before degree1 := mul(5/2, 3)
After
affine integral H(b) Horner multiply before degree1 = 15/2
Conditions: none
Multiply by the same evaluation point first.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S038
S040 · calculation
Before
affine integral H(b) Horner add degree1 := sum(15/2, -8)
After
affine integral H(b) Horner add degree1 = -1/2
Conditions: none
Then add the full coefficient at this position.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S039
S041 · calculation
Before
affine integral H(b) Horner multiply before degree0 := mul(-1/2, 3)
After
affine integral H(b) Horner multiply before degree0 = -3/2
Conditions: none
Multiply by the same evaluation point first.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S040
S042 · calculation
Before
affine integral H(b) Horner add degree0 := sum(-3/2, 0)
After
affine integral H(b) Horner add degree0 = -3/2
Conditions: none
Then add the full coefficient at this position.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S041
S043 · implies
Before
affine integral H(a) ascending coefficients=[0, -8, 5/2]
After
evaluate at x=-2
Conditions: none
Evaluate ascending coefficients by Horner from the highest nonzero term down;ignoring redundant top zero terms changes neither the function nor the retained original list.
Step identifiers and dependencies
Rule: polynomial_evaluation_order · Uses: G001, S042
S044 · calculation
Before
affine integral H(a) Horner multiply before degree1 := mul(5/2, -2)
After
affine integral H(a) Horner multiply before degree1 = -5
Conditions: none
Multiply by the same evaluation point first.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S043
S045 · calculation
Before
affine integral H(a) Horner add degree1 := sum(-5, -8)
After
affine integral H(a) Horner add degree1 = -13
Conditions: none
Then add the full coefficient at this position.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S044
S046 · calculation
Before
affine integral H(a) Horner multiply before degree0 := mul(-13, -2)
After
affine integral H(a) Horner multiply before degree0 = 26
Conditions: none
Multiply by the same evaluation point first.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S045
S047 · calculation
Before
affine integral H(a) Horner add degree0 := sum(26, 0)
After
affine integral H(a) Horner add degree0 = 26
Conditions: none
Then add the full coefficient at this position.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S046
S048 · calculation
Before
affine integral oriented moment := sub(-3/2, 26)
After
affine integral oriented moment = -55/2
Conditions: none
Subtract the starting primitive value from the ending value;reversing endpoints naturally reverses the sign.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S047
S049 · calculation
Before
integral minus left sum := sub(-55/2, -40)
After
integral minus left sum = 25/2
Conditions: none
The requested direction is I−S_N;a negative slope may give a negative difference,not absolute error.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S048
S050 · implies
Before
I=-55/2;S_N=-40;N=5
After
signed finite-sum difference=25/2
Conditions: none
This is the exact difference for finite N,not evidence of a general convergence rate or integrability of arbitrary functions.
Step identifiers and dependencies
Rule: finite_sum_vs_integral · Uses: G001, S049