You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb520e2
Browse filesBrowse the repository at this point in the historyBrowse files
The integral over the root of a square quadratic is its modulus's, not the table's (#1672)
* The integral over the root of a square quadratic is its modulus's, not the table's
The table's entry for k/sqrt(Q) and sqrt(Q) takes a quadratic apart by
the sign of its leading coefficient. The arcsine arm divides by the root
of the discriminant, and the logarithm arm takes ln|2ax + b + 2 sqrt(a)
sqrt(Q)|, which is ln(0) on one side of the root when Q is a square:
1/sqrt(x^2 + 2x + 1) was ln(0) for every x below -1, and
1/sqrt(-a^2 - 2abx - b^2 x^2) NaN at every x. A linear beside the root
writes Q in t = 1/(x - p), still a square, and asked the same entry.
- The entry does not read a quadratic whose discriminant vanishes. Its
root is the modulus of a linear, which the rule for a root of a
perfect square writes.
- That rule takes a leading coefficient negative for a real parameter
too, since sqrt(a (x + h)^2) is sqrt(a) |x + h| for either sign:
-a^2 - 2abx - b^2 x^2 is answered with sqrt(-b^2) and b^2 > 0.
- The discriminant is tested with its symbols pinned first, and
simplified only where it is zero there.
Closes#1670.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
* A breaking-changes entry for the root of a square quadratic
Measured on the 2.5.0 tag and on this branch.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2128,6 +2128,24 @@ here that writes one does: left inside, a rule below differentiated it, and
2128
2128
| `"sqrt(a^2+2*a*b*x+b^2*x^2)*sqrt(c+pe*x+d*x^2)".Integrate("x")` | left unevaluated | the antiderivative |
2129
2129
| `"(a^2+2*a*b*x+b^2*x^2)^(5/2)".Integrate("x")` | the antiderivative, through the substitution search | `sgn(a + b x) (a + b x)^6 |b|^5/(6 b)` up to the form |
2130
2130
2131
+
### The root of a quadratic that is a square is the modulus of a linear, and was read as any quadratic
2132
+
2133
+
**Wrong answers, silent.** The table's entry for `k/sqrt(Q)` and `sqrt(Q)` reads a quadratic by the
2134
+
sign of its leading coefficient: an arcsine over the root of the discriminant, or the logarithm of
2135
+
`2 a x + b + 2 sqrt(a) sqrt(Q)`. Where `Q` is a square the discriminant is zero, and that logarithm
2136
+
is of zero beyond the root. So `1/sqrt(x^2 + 2x + 1)` had no value for any `x < -1`, where it is
2137
+
`1/|x + 1|`, and with a negative leading coefficient there was no value anywhere. The root of a
2138
+
square is now the modulus of its linear, `sqrt(a (x + h)^2) = sqrt(a) |x + h|`, for a leading
2139
+
coefficient of either sign ([#1670](https://github.com/asc-community/AngouriMath/issues/1670)).
2140
+
2141
+
| Input | Was (2.5.0) | Now |
2142
+
|---|---|---|
2143
+
| `"1/sqrt(x^2+2*x+1)".Integrate("x")` | `ln(2 x + 2 + 2 sqrt(x^2 + 2 x + 1))`, `ln(0)` for every `x < -1` | `sgn(x + 1) ln(x + 1)` |
2144
+
| `"sqrt(x^2+2*x+1)".Integrate("x")` | `(2 x + 2) sqrt(x^2 + 2 x + 1)/4 provided not 2 x + 2 + 2 sqrt(x^2 + 2 x + 1) = 0`, which says nothing for `x <= -1` | `sgn(x + 1) (x^2/2 + x)` |
2145
+
| `"1/sqrt(-4-4*x-x^2)".Integrate("x")`, and `sqrt(-4 - 4 x - x^2)` | `NaN` | `sgn(x + 2) ln(i x + 2 i)/i`, and `i sgn(x + 2) (x^2/2 + 2 x)` |
2146
+
| `"1/sqrt(-a^2-2*a*b*x-b^2*x^2)".Integrate("x")` | a piecewise whose arcsine divides by `sqrt(0)`, `NaN` for every real `b` but zero | a logarithm over `sqrt(-b^2)`, `provided b^2 > 0` |
2147
+
| `"1/(x*sqrt(a^2+2*a*b*x+b^2*x^2))".Integrate("x")`, the same with `-a^2 - 2 a b x - b^2 x^2`, or with `d + e x` for `x` | left unevaluated | the antiderivative, `provided b^2 > 0` |
2148
+
2131
2149
### A power of the variable times a sine or cosine of a logarithm, and a power of a monomial
2132
2150
2133
2151
`x^2 sin(a + b ln(c x^n))` and `(c x^n)^b` were both left as written. Two rules, each exact:
0 commit comments