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 07d3df5
Browse filesBrowse the repository at this point in the historyBrowse files
Answer an odd number of secant roots where the cosine is negative too (#1967)
The half-angle rule beside a half-odd power of 1 ± sec writes each root of a
constant times the secant or cosine apart in t = tan(y/2). For N roots, n of
them of the cosine, with s the sign of the product of their constants: where
the cosine is negative the turns multiply to (-1)^(N+n) s, the integrand is real
there exactly where (-1)^N s > 0, and there the turns are (-1)^n. #1959 used
this for an even N. For an odd N the root of 1 - t^2 stays in the answer in t,
which is kept beyond t^2 < 1 only where its derivative holds there at sampled
points of both signs. With the cosine's sign in front where n is odd, it holds
on the whole real domain. Where s is not known the condition is now
`provided <product> < 0 or cos(y) >= 0`. The cosecant takes the same path
through the complement, with sgn(sin(y)).
sqrt(-1 - sec(x)) sqrt(sec(x)) sqrt(cos(x)), real only where the cosine is
negative, had no value anywhere it is real. No Rubi row has an odd root count
above one, and the answers to every fair row of Rubi's 4.5 and 4.6 (2,966 rows,
1,317 of them with roots) are byte-identical.
Part of #233.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
`provided a > 0 or cos(y) >= 0` where the product's sign is not known. Three are in the entry
4240
+
after this one ([#718](https://github.com/asc-community/AngouriMath/issues/718)).
4241
4241
4242
4242
| Input | Was (2.5.0) | Now |
4243
4243
|---|---|---|
@@ -4249,6 +4249,26 @@ with `sgn(cos(y))` in front for an odd number of roots of the cosine, and says
4249
4249
| `"cos(x)^(3/2)/sqrt(1 + sec(x))".ToEntity().Integrate("x")` | `integral(...)` | a logarithm and a power in `tan(x/2)`, times `sgn(cos(x))` |
4250
4250
| `"cos(c+d*x)^(3/2)*(A+C*sec(c+d*x)^2)/sqrt(a+a*sec(c+d*x))".ToEntity().Integrate("x")` | `integral(...)` | the same, times `sgn(cos(c + d x))`, `provided a > 0 or cos(c + d x) >= 0` |
4251
4251
4252
+
### An odd number of roots of `a ± a sec` and the secant or cosine holds where the cosine is negative
4253
+
4254
+
**Answers where there were none.** Three half-odd powers, as in
4255
+
`sqrt(a + a sec(x)) sqrt(sec(x)) sqrt(cos(x))`, leave a root of `1 - tan(x/2)^2` in the answer, and
4256
+
the answer said `provided cos(x) >= 0`. An odd number of roots makes the integrand real on one side
4257
+
of the cosine's sign change at most, and on the negative one just where the product of the roots'
4258
+
constants is negative, so `sqrt(-1 - sec(x)) sqrt(sec(x)) sqrt(cos(x))` had no value anywhere it is
4259
+
real. There each root turns its sign by its constant's, as two do, and the turns are as many as the
4260
+
roots of the cosine. The answer is kept beyond the condition where the antiderivative in the
4261
+
half-angle tangent differentiates back there, and says `provided a < 0 or cos(y) >= 0` where the
4262
+
product's sign is not known. The cosecant's the same way through the complement
| `"sqrt(-1 - sec(x))*sqrt(sec(x))*sqrt(cos(x))".ToEntity().Integrate("x")` | `integral(...)` | an arctangent in `tan(x/2)`, times `sgn(cos(x))` |
4268
+
| `"sqrt(1 - sec(x))*sqrt(sec(x))*sqrt(cos(x))".ToEntity().Integrate("x")` | `integral(...)` | a logarithm in `tan(x/2)`, times `sgn(cos(x)) sgn(tan(x/2))` |
4269
+
| `"sqrt(a + a*sec(x))*sqrt(sec(x))*sqrt(cos(x))".ToEntity().Integrate("x")` | `integral(...)` | an arctangent in `tan(x/2)`, times `sgn(cos(x))`, `provided a < 0 or cos(x) >= 0` |
4270
+
| `"sqrt(a + a*csc(x))*sqrt(csc(x))*sqrt(sin(x))".ToEntity().Integrate("x")` | `integral(...)` | an arctangent in `tan(pi/4 - x/2)`, times `sgn(sin(x))`, `provided a < 0 or sin(x) >= 0` |
4271
+
4252
4272
### An even power of the secant or the cosecant under a root is written in the tangent
4253
4273
4254
4274
**Answers where there were none.** `sqrt(a + b csc(x)^2)`, `(a + b sec(x)^2)^(3/2)` and their kin,
0 commit comments