Maple 2022 includes a very large number of improvements that strengthen the math engine, expanding Maple's abilities to handle new areas of mathematics and solve harder problems, faster.  In addition to the mathematical improvements described in more detail elsewhere, Maple 2022 enhances support for many areas of mathematics, and improves fundamental routines that are used regularly both by users and by other Maple commands.

Improvements to Core Mathematics Routines

Integration

For Maple 2022, we put a large focus on improving integration by correcting known weaknesses, and, as a result, Maple can solve more integration problems than ever.  The following are some examples.

int is now smarter about changes of variables that can avoid integrating term by term:

 > int(x*(x^2+1)^99,x);
 $\frac{{\left({{x}}^{{2}}{+}{1}\right)}^{{100}}}{{200}}$ (1.1.1)

Significant improvements to elliptic integration led to these new results:

 > VectorCalculus:-ArcLength(z-> , 1 .. 2);
 $\sqrt{{2}}{}{\mathrm{EllipticE}}{}\left(\frac{\sqrt{{2}}}{{2}}\right)$ (1.1.2)
 > int(sqrt((-5*x^2 + 81)/(-9*x^2 + 81)), x = 0 .. 3);
 ${3}{}{\mathrm{EllipticE}}{}\left(\frac{\sqrt{{5}}}{{3}}\right)$ (1.1.3)
 > int((1 - I*sqrt(1 - z^3))^4, z=-1..1);
 $\frac{{64}{}{I}{}\sqrt{{2}}}{{55}}{-}\frac{{12}{}{I}{}{{3}}^{{1}}{{4}}}{}\sqrt{{2}}{}{\mathrm{EllipticF}}{}\left(\frac{{I}}{{2}}{+}\frac{\sqrt{{3}}}{{2}}{,}\frac{\sqrt{{3}}}{{2}}{-}\frac{{I}}{{2}}\right)}{{55}}{-}\frac{{54}}{{7}}{+}\frac{{4}{}{I}{}{{3}}^{{3}}{{4}}}{}\sqrt{{2}}{}{\mathrm{EllipticF}}{}\left(\frac{{I}}{{2}}{+}\frac{\sqrt{{3}}}{{2}}{,}\frac{\sqrt{{3}}}{{2}}{-}\frac{{I}}{{2}}\right)}{{55}}{+}\frac{{12}{}\sqrt{{2}}{}\sqrt{{3}{-}{I}{}\sqrt{{3}}}{}{\mathrm{EllipticF}}{}\left(\frac{\sqrt{{2}}{}\sqrt{{3}{-}{I}{}\sqrt{{3}}}{}\sqrt{{3}}}{{6}}{,}\frac{\sqrt{{3}}}{{2}}{-}\frac{{I}}{{2}}\right)}{{55}}{+}\frac{{4}{}{I}{}\sqrt{{2}}{}\sqrt{{3}}{}\sqrt{{3}{-}{I}{}\sqrt{{3}}}{}{\mathrm{EllipticF}}{}\left(\frac{\sqrt{{2}}{}\sqrt{{3}{-}{I}{}\sqrt{{3}}}{}\sqrt{{3}}}{{6}}{,}\frac{\sqrt{{3}}}{{2}}{-}\frac{{I}}{{2}}\right)}{{55}}{-}\frac{{4}{}{{3}}^{{3}}{{4}}}{}\sqrt{{2}}{}{\mathrm{EllipticF}}{}\left(\frac{{I}}{{2}}{+}\frac{\sqrt{{3}}}{{2}}{,}\frac{\sqrt{{3}}}{{2}}{-}\frac{{I}}{{2}}\right)}{{55}}{-}\frac{{12}{}{{3}}^{{1}}{{4}}}{}\sqrt{{2}}{}{\mathrm{EllipticF}}{}\left(\frac{{I}}{{2}}{+}\frac{\sqrt{{3}}}{{2}}{,}\frac{\sqrt{{3}}}{{2}}{-}\frac{{I}}{{2}}\right)}{{55}}$ (1.1.4)
 > int((z^3 - I*sqrt(1 - z^4))^4, z=-1..1);
 $\frac{{42914}}{{45045}}$ (1.1.5)
 > int(1/(sqrt(z-1)*sqrt(z-2)*sqrt(3-z)),z=0..1);
 ${-}\sqrt{{2}}{}{\mathrm{EllipticK}}{}\left(\frac{\sqrt{{2}}}{{2}}\right){+}\sqrt{{2}}{}{\mathrm{EllipticF}}{}\left(\frac{\sqrt{{2}}{}\sqrt{{3}}}{{3}}{,}\frac{\sqrt{{2}}}{{2}}\right)$ (1.1.6)

This integral gives a new result:

 > int( sin(Pi*(x^2+y^2)), y = 0 .. (-x^2+1)^(1/2) ) assuming x>0, x<1;
 $\frac{\left({\mathrm{cos}}{}\left({\mathrm{\pi }}{}{{x}}^{{2}}\right){}{\mathrm{FresnelS}}{}\left(\sqrt{{-}{{x}}^{{2}}{+}{1}}{}\sqrt{{2}}\right){+}{\mathrm{sin}}{}\left({\mathrm{\pi }}{}{{x}}^{{2}}\right){}{\mathrm{FresnelC}}{}\left(\sqrt{{-}{{x}}^{{2}}{+}{1}}{}\sqrt{{2}}\right)\right){}\sqrt{{2}}}{{2}}$ (1.1.7)

Previously this gave an error:

 > int(1-abs(x)-abs(x-y)+abs(-1+abs(x)+abs(x-y)),x) assuming -1
 ${x}{-}\left(\left\{\begin{array}{cc}{-}\frac{{{x}}^{{2}}}{{2}}& {x}{\le }{0}\\ \frac{{{x}}^{{2}}}{{2}}& {0}{<}{x}\end{array}\right\\right){-}\left(\left\{\begin{array}{cc}{-}\frac{{1}}{{2}}{}{{x}}^{{2}}{+}{y}{}{x}& {x}{\le }{y}\\ \frac{{1}}{{2}}{}{{x}}^{{2}}{-}{y}{}{x}{+}{{y}}^{{2}}& {y}{<}{x}\end{array}\right\\right){+}\left(\left\{\begin{array}{cc}\left\{\begin{array}{cc}\left\{\begin{array}{cc}{-}{{x}}^{{2}}{+}{y}{}{x}{-}{x}& {x}{\le }{-}\frac{{1}}{{2}}{+}\frac{{y}}{{2}}\\ {{x}}^{{2}}{-}{y}{}{x}{+}{x}{+}\frac{{1}}{{2}}{}{{y}}^{{2}}{-}{y}{+}\frac{{1}}{{2}}& {x}{\le }{0}\\ {-}{y}{}{x}{+}{x}{+}\frac{{1}}{{2}}{}{{y}}^{{2}}{-}{y}{+}\frac{{1}}{{2}}& {x}{\le }{y}\\ {-}{{x}}^{{2}}{+}{y}{}{x}{+}{x}{-}\frac{{1}}{{2}}{}{{y}}^{{2}}{+}\frac{{1}}{{2}}{-}{y}& {x}{\le }\frac{{1}}{{2}}{+}\frac{{y}}{{2}}\\ {{x}}^{{2}}{-}{y}{}{x}{-}{x}{+}{1}& \frac{{1}}{{2}}{+}\frac{{y}}{{2}}{<}{x}\end{array}\right\& {y}{<}{1}\\ \left\{\begin{array}{cc}\left\{\begin{array}{cc}{-}{{x}}^{{2}}& {x}{\le }{0}\\ {0}& {0}{<}{x}\end{array}\right\& {-}{1}{+}{y}{=}{0}\\ \left\{\begin{array}{cc}{-}{{x}}^{{2}}{+}{y}{}{x}{-}{x}& {x}{\le }{0}\\ \left({-}{1}{+}{y}\right){}{x}& {0}{<}{x}\end{array}\right\& {\mathrm{otherwise}}\end{array}\right\& {\mathrm{otherwise}}\end{array}\right\& {0}{<}{y}\\ \left\{\begin{array}{cc}\left\{\begin{array}{cc}{-}{{x}}^{{2}}{+}{y}{}{x}{-}{x}& {x}{\le }{-}\frac{{1}}{{2}}{+}\frac{{y}}{{2}}\\ {{x}}^{{2}}{-}{y}{}{x}{+}{x}{+}\frac{{1}}{{2}}{}{{y}}^{{2}}{-}{y}{+}\frac{{1}}{{2}}& {x}{\le }{y}\\ {y}{}{x}{+}{x}{-}\frac{{1}}{{2}}{}{{y}}^{{2}}{+}\frac{{1}}{{2}}{-}{y}& {x}{\le }{0}\\ {-}{{x}}^{{2}}{+}{y}{}{x}{+}{x}{-}\frac{{1}}{{2}}{}{{y}}^{{2}}{+}\frac{{1}}{{2}}{-}{y}& {x}{\le }\frac{{1}}{{2}}{+}\frac{{y}}{{2}}\\ {{x}}^{{2}}{-}{y}{}{x}{-}{x}{+}{1}& \frac{{1}}{{2}}{+}\frac{{y}}{{2}}{<}{x}\end{array}\right\& {-}{y}{<}{1}\\ \left\{\begin{array}{cc}\left\{\begin{array}{cc}{0}& {x}{\le }{0}\\ {{x}}^{{2}}& {0}{<}{x}\end{array}\right\& {-}{1}{-}{y}{=}{0}\\ \left\{\begin{array}{cc}{-}\left({1}{+}{y}\right){}{x}& {x}{\le }{0}\\ {{x}}^{{2}}{-}{y}{}{x}{-}{x}& {0}{<}{x}\end{array}\right\& {\mathrm{otherwise}}\end{array}\right\& {\mathrm{otherwise}}\end{array}\right\& {\mathrm{otherwise}}\end{array}\right\\right)$ (1.1.8)

This was previously unevaluated:

 > int(1-abs(x)-abs(x-y)+abs(1-abs(x)-abs(x-y)),[x = -1 .. 1, y = -1 .. 1]);
 $\frac{{4}}{{3}}$ (1.1.9)

This integral gives a new result:

 > int(z^(1/5)/(z^2+1),z = -infinity .. infinity, method=FTOC);
 ${-}\frac{{\mathrm{\pi }}{}\left({-}\sqrt{{2}}{}\sqrt{{5}}{}\sqrt{{5}{-}\sqrt{{5}}}{+}{2}{}{I}{}\sqrt{{5}}{-}{5}{}\sqrt{{2}}{}\sqrt{{5}{-}\sqrt{{5}}}{-}{10}{}{I}\right)}{{2}{}\sqrt{{10}{-}{2}{}\sqrt{{5}}}{}\sqrt{{10}{+}{2}{}\sqrt{{5}}}}$ (1.1.10)

This was previously unevaluated:

 > int(((z-1)/(z+1)^(1/2))^(2*x+1), z=0..1);
 ${-}\frac{{\left({-1}\right)}^{{2}{}{x}}{}{{2}}^{{x}{+}\frac{{1}}{{2}}}{}\left({{2}}^{\frac{{3}}{{2}}{+}{x}}{}{\mathrm{hypergeom}}{}\left(\left[{-}{1}{-}{2}{}{x}{,}\frac{{1}}{{2}}{-}{x}\right]{,}\left[\frac{{3}}{{2}}{-}{x}\right]{,}\frac{{1}}{{2}}\right){}{\mathrm{\Gamma }}{}\left({x}{+}\frac{{1}}{{2}}\right){+}{4}{}{\mathrm{\Gamma }}{}\left({-}\frac{{3}}{{2}}{-}{x}\right){}{\mathrm{\Gamma }}{}\left({2}{}{x}{+}{2}\right){}{x}{-}{2}{}{\mathrm{\Gamma }}{}\left({-}\frac{{3}}{{2}}{-}{x}\right){}{\mathrm{\Gamma }}{}\left({2}{}{x}{+}{2}\right)\right)}{{\mathrm{\Gamma }}{}\left({x}{+}\frac{{1}}{{2}}\right){}\left({-}{1}{+}{2}{}{x}\right)}$ (1.1.11)

This was previously unevaluated:

 > int(Sum((-1)^x*((99/100*Pi*z-99/100*Pi)/(99/100*Pi*z+1/100*Pi)^(1/2))^(2*x+1)/(2*x+1)!,x = 0 .. infinity), z=0..1);
 ${-}\frac{\sqrt{{\mathrm{\pi }}}{}\left({\sum }_{{x}{=}{0}}^{{\mathrm{\infty }}}{}\frac{{\left({-1}\right)}^{{3}{}{x}}{}{{\mathrm{\pi }}}^{{x}}{}\left({{2}}^{{2}{}{x}{+}{2}}{}{{5}}^{{2}{}{x}{+}{1}}{}{\mathrm{hypergeom}}{}\left(\left[{-}{1}{-}{2}{}{x}{,}\frac{{1}}{{2}}{-}{x}\right]{,}\left[\frac{{3}}{{2}}{-}{x}\right]{,}\frac{{1}}{{100}}\right){}{\mathrm{\Gamma }}{}\left({x}{+}\frac{{1}}{{2}}\right){+}{200}{}{\mathrm{\Gamma }}{}\left({-}\frac{{3}}{{2}}{-}{x}\right){}{\mathrm{\Gamma }}{}\left({2}{}{x}{+}{2}\right){}{x}{-}{100}{}{\mathrm{\Gamma }}{}\left({-}\frac{{3}}{{2}}{-}{x}\right){}{\mathrm{\Gamma }}{}\left({2}{}{x}{+}{2}\right)\right)}{\left({2}{}{x}{+}{1}\right){!}{}{\mathrm{\Gamma }}{}\left({x}{+}\frac{{1}}{{2}}\right){}\left({-}{1}{+}{2}{}{x}\right)}\right)}{{99}}$ (1.1.12)

This was previously unevaluated:

 > int(int(f(y), y=a..b), y=a..b);
 $\left({b}{-}{a}\right){}\left({{\int }}_{{a}}^{{b}}{f}{}\left({y}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{y}\right)$ (1.1.13)

This was previously unevaluated:

 > int(((1/t)^(1 - 2*n)  - 1) / (t - 1), t=0..x);
 ${-}\frac{{2}{}{\mathrm{\pi }}{}{\left(\frac{{1}}{{x}}\right)}^{{-}{2}{}{n}}{}{\left({-}{x}\right)}^{{-}{2}{}{n}}{}{n}{+}{2}{}{\left(\frac{{1}}{{x}}\right)}^{{-}{2}{}{n}}{}{\mathrm{LerchPhi}}{}\left(\frac{{1}}{{x}}{,}{1}{,}{-}{2}{}{n}\right){}{n}{}{\mathrm{sin}}{}\left({2}{}{\mathrm{\pi }}{}{n}\right){+}{\left(\frac{{1}}{{x}}\right)}^{{-}{2}{}{n}}{}{\mathrm{sin}}{}\left({2}{}{\mathrm{\pi }}{}{n}\right){+}{2}{}{n}{}{\mathrm{ln}}{}\left({-}{x}\right){}{\mathrm{sin}}{}\left({2}{}{\mathrm{\pi }}{}{n}\right){+}{2}{}{n}{}{\mathrm{ln}}{}\left(\frac{{x}{-}{1}}{{x}}\right){}{\mathrm{sin}}{}\left({2}{}{\mathrm{\pi }}{}{n}\right)}{{2}{}{\mathrm{sin}}{}\left({2}{}{\mathrm{\pi }}{}{n}\right){}{n}}$ (1.1.14)

This was previously unevaluated:

 > int(exp(t^3),t=0..x);
 ${-}\frac{{\left({-}{{x}}^{{3}}\right)}^{{2}}{{3}}}{}\left({2}{}{\mathrm{\pi }}{}\sqrt{{3}}{-}{3}{}{\mathrm{\Gamma }}{}\left(\frac{{1}}{{3}}{,}{-}{{x}}^{{3}}\right){}{\mathrm{\Gamma }}{}\left(\frac{{2}}{{3}}\right)\right)}{{9}{}{{x}}^{{2}}{}{\mathrm{\Gamma }}{}\left(\frac{{2}}{{3}}\right)}$ (1.1.15)

This was previously unevaluated:

 > int(cos(x)^(1/3)*sin(x)^2,x=-Pi/2..Pi/2);
 $\frac{{9}{}{\mathrm{\Gamma }}{}\left(\frac{{2}}{{3}}\right){}{\mathrm{\Gamma }}{}\left(\frac{{5}}{{6}}\right)}{{7}{}\sqrt{{\mathrm{\pi }}}}$ (1.1.16)

This integral gives a new result:

 > int(arctan(z)*(z-1)^(1/3), z=0..1);
 ${-}\frac{{6}{}\left({-}{3}{}{I}{}{\left({-1}{+}{I}\right)}^{{2}}{{3}}}{}\sqrt{{3}}{+}{2}{}{\left({-1}{+}{I}\right)}^{{2}}{{3}}}{}\left({\sum }_{{\mathrm{_R}}{=}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{6}}{+}{2}{}{{\mathrm{_Z}}}^{{3}}{+}{2}\right)}{}\frac{{\mathrm{ln}}{}\left({I}{}\sqrt{{3}}{-}{2}{}{\mathrm{_R}}{+}{1}\right)}{{{\mathrm{_R}}}^{{2}}}\right){-}{2}{}{\left({-1}{+}{I}\right)}^{{2}}{{3}}}{}\left({\sum }_{{\mathrm{_R}}{=}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{6}}{+}{2}{}{{\mathrm{_Z}}}^{{3}}{+}{2}\right)}{}\frac{{\mathrm{ln}}{}\left({-}{\mathrm{_R}}\right)}{{{\mathrm{_R}}}^{{2}}}\right){-}{3}{}{\left({-1}{+}{I}\right)}^{{2}}{{3}}}{-}{4}{}{I}{}{\mathrm{\pi }}\right)}{{\left({I}{}\sqrt{{3}}{+}{1}\right)}^{{2}}{}{\left({I}{}\sqrt{{3}}{-}{1}\right)}^{{2}}{}{\left({-1}{+}{I}\right)}^{{2}}{{3}}}}$ (1.1.17)

Better handling of Dirac in int led to this improved result:

 > int(1/exp(I*q*a), q = -infinity .. infinity);
 ${2}{}{\mathrm{\pi }}{}{\mathrm{Dirac}}{}\left({a}\right)$ (1.1.18)

This new result is due to improved discontinuity handling in the presence of Heaviside:

 > int(Heaviside(-y^2+B)/(-y^2+B)^(1/2), y=-infinity .. infinity) assuming B>0;
 ${\mathrm{\pi }}$ (1.1.19)

This new result is due to an improvement in simplification of logarithms:

 > int(cos(x)^3*sin(x)^n,x);
 $\frac{{I}{}{\left({{ⅇ}}^{{I}{}{x}}\right)}^{{-}{n}}{}{\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)}^{{n}}{}{\left(\frac{{1}}{{2}}\right)}^{{n}}{}{{ⅇ}}^{\frac{{I}}{{2}}{}\left({\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{-}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{-}{6}{}{x}\right)}}{{8}{}\left({n}{+}{3}\right)}{+}\frac{{I}{}{\left(\frac{{1}}{{2}}\right)}^{{n}}{}{\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)}^{{n}}{}{\left({{ⅇ}}^{{I}{}{x}}\right)}^{{-}{n}}{}\left({n}{+}{9}\right){}{{ⅇ}}^{\frac{{I}}{{2}}{}\left({\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{-}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{-}{2}{}{x}\right)}}{{8}{}\left({n}{+}{3}\right){}\left({1}{+}{n}\right)}{-}\frac{{I}{}{\left(\frac{{1}}{{2}}\right)}^{{n}}{}{\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)}^{{n}}{}{\left({{ⅇ}}^{{I}{}{x}}\right)}^{{-}{n}}{}{{ⅇ}}^{\frac{{I}}{{2}}{}\left({\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{-}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{+}{6}{}{x}\right)}}{{8}{}\left({n}{+}{3}\right)}{-}\frac{{I}{}{\left(\frac{{1}}{{2}}\right)}^{{n}}{}{\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)}^{{n}}{}{\left({{ⅇ}}^{{I}{}{x}}\right)}^{{-}{n}}{}\left({n}{+}{9}\right){}{{ⅇ}}^{\frac{{I}}{{2}}{}\left({\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}\left({{ⅇ}}^{{2}{}{I}{}{x}}{-}{1}\right)\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({I}{}{{ⅇ}}^{{-I}{}{x}}\right){}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{-}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{3}}{+}{\mathrm{\pi }}{}{n}{}{\mathrm{csgn}}{}\left({\mathrm{sin}}{}\left({x}\right)\right){}{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right){+}{\mathrm{\pi }}{}{n}{}{{\mathrm{csgn}}{}\left({I}{}{\mathrm{sin}}{}\left({x}\right)\right)}^{{2}}{-}{\mathrm{\pi }}{}{n}{+}{2}{}{x}\right)}}{{8}{}\left({n}{+}{3}\right){}\left({1}{+}{n}\right)}$ (1.1.20)

There is a new result from inttrans:-fourier:

 > inttrans:-fourier(x^n*ln(x),x,s) assuming n::posint;
 ${\mathrm{ft}}{≔}{{I}}^{{n}}{}{\mathrm{\pi }}{}\left({I}{}{\mathrm{\pi }}{}{\mathrm{Dirac}}{}\left({n}{,}{s}\right){-}{2}{}\left({\sum }_{{\mathrm{_k1}}{=}{0}}^{{n}}{}\left(\genfrac{}{}{0}{}{{n}}{{\mathrm{_k1}}}\right){}\left(\frac{{{ⅆ}}^{{\mathrm{_k1}}}}{{ⅆ}{{s}}^{{\mathrm{_k1}}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\mathrm{Heaviside}}{}\left({s}\right)\right){}{\mathrm{pochhammer}}{}\left({-}{n}{+}{\mathrm{_k1}}{,}{n}{-}{\mathrm{_k1}}\right){}{{s}}^{{-}{1}{-}{n}{+}{\mathrm{_k1}}}\right)\right)$ (1.1.21)

Some improvements to IntegrationTools:-Change led to these new results:

 > IntegrationTools:-Change(Int((-3*x^2+x+2*Pi)*x, x=0..1), u = -3*x^2+x+2*Pi);
 ${-}\frac{\left({{\int }}_{{2}{}{\mathrm{\pi }}}^{\frac{{1}}{{12}}{+}{2}{}{\mathrm{\pi }}}\frac{\left({24}{}{\mathrm{\pi }}{-}{12}{}{u}{+}{1}{-}\sqrt{{1}{-}{12}{}{u}{+}{24}{}{\mathrm{\pi }}}\right){}{u}}{{1}{-}{12}{}{u}{+}{24}{}{\mathrm{\pi }}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{u}\right)}{{6}}{+}\frac{\left({{\int }}_{{-}{2}{+}{2}{}{\mathrm{\pi }}}^{\frac{{1}}{{12}}{+}{2}{}{\mathrm{\pi }}}\frac{\left({24}{}{\mathrm{\pi }}{-}{12}{}{u}{+}{1}{+}\sqrt{{1}{-}{12}{}{u}{+}{24}{}{\mathrm{\pi }}}\right){}{u}}{{1}{-}{12}{}{u}{+}{24}{}{\mathrm{\pi }}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{u}\right)}{{6}}$ (1.1.22)

Differential Equations

Improved solvers for partial differential equations enable Maple 2022 to solve problems it couldn't solve before. For example, pdsolve can now handle this problem:

 > pde[N3] := diff(u(r, theta, t), t, t) = (diff(u(r, theta, t), r)+r*(diff(u(r, theta, t), r, r))+(diff(u(r, theta, t), theta, theta))/r)/(4*r); iv[N3] := u(1, theta, t) = 0, (D[2](u))(r, 0, t) = 0, (D[2](u))(r, Pi, t) = 0, u(r, theta, 0) = r^2*cos(2*theta), (D[3](u))(r, theta, 0) = 0; pdsolve([pde[N3], iv[N3]], u(r, theta, t), HINT = boundedseries(r = [0])) assuming r >= 0, r <= 1, theta >= 0, theta <= Pi;
 ${{\mathrm{pde}}}_{{\mathrm{N3}}}{≔}\frac{{{\partial }}^{{2}}}{{\partial }{{t}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({r}{,}{\mathrm{\theta }}{,}{t}\right){=}\frac{\frac{{\partial }}{{\partial }{r}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({r}{,}{\mathrm{\theta }}{,}{t}\right){+}{r}{}\left(\frac{{{\partial }}^{{2}}}{{\partial }{{r}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({r}{,}{\mathrm{\theta }}{,}{t}\right)\right){+}\frac{\frac{{{\partial }}^{{2}}}{{\partial }{{\mathrm{\theta }}}^{{2}}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{u}{}\left({r}{,}{\mathrm{\theta }}{,}{t}\right)}{{r}}}{{4}{}{r}}$
 ${{\mathrm{iv}}}_{{\mathrm{N3}}}{≔}{u}{}\left({1}{,}{\mathrm{\theta }}{,}{t}\right){=}{0}{,}{{\mathrm{D}}}_{{2}}{}\left({u}\right){}\left({r}{,}{0}{,}{t}\right){=}{0}{,}{{\mathrm{D}}}_{{2}}{}\left({u}\right){}\left({r}{,}{\mathrm{\pi }}{,}{t}\right){=}{0}{,}{u}{}\left({r}{,}{\mathrm{\theta }}{,}{0}\right){=}{{r}}^{{2}}{}{\mathrm{cos}}{}\left({2}{}{\mathrm{\theta }}\right){,}{{\mathrm{D}}}_{{3}}{}\left({u}\right){}\left({r}{,}{\mathrm{\theta }}{,}{0}\right){=}{0}$
 ${u}{}\left({r}{,}{\mathrm{\theta }}{,}{t}\right){=}{\sum }_{{n}{=}{1}}^{{\mathrm{\infty }}}{}\left({{\mathrm{_C9}}}_{{0}{,}{n}}{}{{J}}_{{0}}{}\left({{\mathrm{\lambda }}}_{{n}}{}{r}\right){}{\mathrm{cos}}{}\left(\frac{{{\mathrm{\lambda }}}_{{n}}{}{t}}{{2}}\right){+}\frac{\left({-}{2}{}{{\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right)}^{{2}}{}{{J}}_{{1}}{}\left({\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right)\right){-}{8}{}{\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right){}{{J}}_{{0}}{}\left({\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right)\right){+}{16}{}{{J}}_{{1}}{}\left({\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right)\right)\right){}{{J}}_{{2}}{}\left({\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right){}{r}\right){}{\mathrm{cos}}{}\left({2}{}{\mathrm{\theta }}\right){}{\mathrm{cos}}{}\left(\frac{{{\mathrm{\lambda }}}_{{n}}{}{t}}{{2}}\right)}{{{{J}}_{{1}}{}\left({\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right)\right)}^{{2}}{}{{\mathrm{BesselJZeros}}{}\left({2}{,}{n}\right)}^{{3}}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{\mathbf{where}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\left\{{{\mathrm{\lambda }}}_{{n}}{=}{\mathrm{BesselJZeros}}{}\left({0}{,}{n}\right){\wedge }{0}{\le }{{\mathrm{\lambda }}}_{{n}}\right\}$ (1.2.1)

The FindODE command in the DEtools package has been improved. It has a few new options, and it is more efficient on many examples. The following examples took more than twice as long in earlier versions of Maple:

 > with(DEtools):
 > DE := CodeTools:-Usage(FindODE(arctan(z)^2+sin(z)^4+log(1+z)^5, y(z), 12)):
 memory used=86.33MiB, alloc change=32.00MiB, cpu time=870.00ms, real time=835.00ms, gc time=150.50ms
 > PDEtools:-difforder(DE,z);
 ${11}$ (1.2.2)
 > DE := CodeTools:-Usage(FindODE((3*z+5*z^7+11*z^13)*log(1+z^3+z^7)+arctanh(z)*cos(z)^5, y(z), 15)):
 memory used=1.01GiB, alloc change=50.23MiB, cpu time=8.86s, real time=8.23s, gc time=1.20s
 > PDEtools:-difforder(DE,z);
 ${14}$ (1.2.3)

Integral Equations

The intsolve command now has an option to specify if an approximate solution using collocation is to be determined numerically or symbolically. For example:

 > ie := f(x) + int( f(y) * piecewise( x < y, x * ( 5 - y ), y * ( 5 - x ) ), y = 0 .. 5 ) - x = 0;
 ${\mathrm{ie}}{≔}{f}{}\left({x}\right){+}{{\int }}_{{0}}^{{5}}{f}{}\left({y}\right){}\left(\left\{\begin{array}{cc}{x}{}\left({5}{-}{y}\right)& {x}{<}{y}\\ {y}{}\left({5}{-}{x}\right)& {\mathrm{otherwise}}\end{array}\right\\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{y}{-}{x}{=}{0}$ (1.3.1)
 > intsolve( ie, f(x), 'method' = 'collocation', 'order' = 5, 'numeric' = 'true' );
 ${f}{}\left({x}\right){=}{0.0249169435217379}{}{{x}}^{{5}}{-}{0.235304198570564}{}{{x}}^{{4}}{+}{0.791580191676118}{}{{x}}^{{3}}{-}{1.08998977144344}{}{{x}}^{{2}}{+}{0.500379185550479}{}{x}{+}{8.41923579640045}{×}{{10}}^{{-15}}$ (1.3.2)
 > intsolve( ie, f(x), 'method' = 'collocation', 'order' = 5, 'numeric' = 'false' );
 ${f}{}\left({x}\right){=}\frac{{15}}{{602}}{}{{x}}^{{5}}{-}\frac{{174375}}{{741062}}{}{{x}}^{{4}}{+}\frac{{293305}}{{370531}}{}{{x}}^{{3}}{-}\frac{{403875}}{{370531}}{}{{x}}^{{2}}{+}\frac{{185406}}{{370531}}{}{x}$ (1.3.3)

Simplification

Simplification has been improved in a number of areas.

The arctrig functions now perform some new automatic simplification by pulling out signs:

 > arccos(csgn(z)*z),arccot(csgn(z)*z),arcsec(csgn(z)*z);
 $\frac{{\mathrm{\pi }}}{{2}}{-}{\mathrm{csgn}}{}\left({z}\right){}{\mathrm{arcsin}}{}\left({z}\right){,}\frac{{\mathrm{\pi }}}{{2}}{-}{\mathrm{csgn}}{}\left({z}\right){}{\mathrm{arctan}}{}\left({z}\right){,}\frac{{\mathrm{\pi }}}{{2}}{-}{\mathrm{csgn}}{}\left({z}\right){}{\mathrm{arccsc}}{}\left({z}\right)$ (1.4.1)

The following inverse trigonometric identities are now recognized by simplify:

 > SA := () -> simplify(args, 'arctrig'):
 > SA(arcsin(z) + arccos(z)), SA(arcsec(z) + arccsc(z));
 $\frac{{\mathrm{\pi }}}{{2}}{,}\frac{{\mathrm{\pi }}}{{2}}$ (1.4.2)

simplify and combine now recognize the following identities:

 > SA(arccot(1)+arccot(2)+arccot(3)); combine(arccot(1)+arccot(2)+arccot(3));
 $\frac{{\mathrm{\pi }}}{{2}}$
 $\frac{{\mathrm{\pi }}}{{2}}$ (1.4.3)

simplify now recognizes when two simplifications can be combined:

 > SA(arctan(cos(2)/sin(2)));
 $\frac{{\mathrm{\pi }}}{{2}}{-}{2}$ (1.4.4)

When no cancellation is available, simplify converts to arctan, arcsin, or arccsc by default:

 > SA(arccos(x) + Pi/2), SA(arcsec(x) + Pi/2);
 ${\mathrm{\pi }}{-}{\mathrm{arcsin}}{}\left({x}\right){,}{\mathrm{\pi }}{-}{\mathrm{arccsc}}{}\left({x}\right)$ (1.4.5)

When one form is more compact, it uses that form instead of the default:
SA(Pi/2 - arctan(z)),
SA(Pi/2 - arcsin(z)),
SA(Pi/2 - arccos(z)),
SA(Pi/2 - arcsec(z)),
SA(Pi/2 - arccsc(z));

 ${\mathrm{arccot}}{}\left({z}\right){,}{\mathrm{arccos}}{}\left({z}\right){,}{\mathrm{arcsin}}{}\left({z}\right){,}{\mathrm{arccsc}}{}\left({z}\right){,}{\mathrm{arcsec}}{}\left({z}\right)$ (1.4.6)

Trigonometric simplification now makes use of formulae such as the following where applicable:

 > simplify(-1+1/2*sin(1/4*Pi+1)*(2+2*sin(2))^(1/2)-1/2*cos(1/4*Pi+1)*(2-2*sin(2))^(1/2));
 ${0}$ (1.4.7)

Improved simplification of nested integrals:

 > simplify(Int(((x-1)*(-Heaviside(y)*Heaviside(x)*Heaviside(y-x)+Heaviside(y)*Heaviside(x))+x*Heaviside(y)*Heaviside(x)*Heaviside(y-x))*((x-1)*(-Heaviside(y)*Heaviside(x)*Heaviside(y-x)+Heaviside(y)*Heaviside(x))+(x-1)*(-Heaviside(y+x)*Heaviside(y)*Heaviside(x)+Heaviside(y+x)*Heaviside(x))), x = -1 .. 1, y = -1 .. 1));
 ${\mathrm{Int}}{}\left({-}{\mathrm{Heaviside}}{}\left({y}\right){}{\mathrm{Heaviside}}{}\left({x}\right){}{\left({x}{-}{1}\right)}^{{2}}{}\left({\mathrm{Heaviside}}{}\left({y}{-}{x}\right){-}{1}\right){,}{x}{=}{-1}{..}{1}{,}{y}{=}{-1}{..}{1}\right)$ (1.4.8)

An improvement in combine regarding linear functions:

 > combine(Sum(Sum(a[u]*a[v], u = 1 .. n), v = 1 .. n) + Sum(Sum(a[u]*b[v], u = 1 .. n), v = 1 .. n) + Sum(Sum(a[u]*b[v], v = 1 .. n), u = 1 .. n));
 ${\sum }_{{v}{=}{1}}^{{n}}{}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{\sum }_{{u}{=}{1}}^{{n}}{}\left({{a}}_{{u}}{}{{a}}_{{v}}{+}{2}{}{{a}}_{{u}}{}{{b}}_{{v}}\right)$ (1.4.9)

Simplification of intat and Intat has been improved:

 > simplify(Intat(f(x),x=y)+Intat(-f(x),x=y));
 ${0}$ (1.4.10)

Repeated application of simplify with this input previously failed to converge. Now it does:

 > simplify(Intat(exp(Intat(g(_a),_a=_b)), _b=t)+Intat(h(_a),_a=t));
 ${{\int }}_{\phantom{{\mathrm{ }}}}^{{t}}{{ⅇ}}^{{{\int }}_{\phantom{{\mathrm{ }}}}^{{\mathrm{_b}}}{g}{}\left({\mathrm{_a}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{_a}}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{_b}}{+}{{\int }}_{\phantom{{\mathrm{ }}}}^{{t}}{h}{}\left({\mathrm{_a}}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{\mathrm{_a}}$ (1.4.11)

Simplification of logarithms is now more careful not to expand unnecessarily. This led to the following new result:

 > simplify(ln(csgn(I*(x^(3/2)+1)))) assuming x, real;
 ${\mathrm{ln}}{}\left({\mathrm{csgn}}{}\left({I}{+}{I}{}{{x}}^{{3}}{{2}}}\right)\right)$ (1.4.12)

There is a new formula in use when combining logarithms:
when $\mathrm{arg}\left(a\right)-\mathrm{arg}\left(b\right)\in \left(-\frac{\mathrm{\pi }}{2},\frac{\mathrm{\pi }}{2}\right]$

 > ans := combine(ln(1-exp(-t)) - ln(1-exp(t))) assuming t > 0;
 ${\mathrm{ans}}{≔}{-}{\mathrm{ln}}{}\left(\frac{{-}{1}{+}{{ⅇ}}^{{t}}}{{-}{1}{+}{{ⅇ}}^{{-}{t}}}\right)$ (1.4.13)

That led to an improved result from simplify as well:

 > simplify(ans) assuming t > 0;
 ${-}{t}{-}{I}{}{\mathrm{\pi }}$ (1.4.14)

Improvement in simplification of radicals led to this new result from solve:

 > solve(1-1/(1+203808*exp(-342569/506*t)*(1/131537))^(131537/203808)=44983/56599, t);
 ${-}\frac{{506}{}{\mathrm{ln}}{}\left(\frac{{7444862663}{}{{56599}}^{\frac{{72271}}{{131537}}}{}{{11616}}^{\frac{{59266}}{{131537}}}}{{27500110184448}}{-}\frac{{131537}}{{203808}}\right)}{{342569}}$ (1.4.15)

A weakness in simplification of piecewise functions regarding constant functions has been eliminated:

 > simplify(piecewise(Or(And(f(0)<0, f(0)<=0), f(0)>=0), 1, 0));
 ${1}$ (1.4.16)

simplify is now more careful when simplifying indexed piecewise functions:

 > p1 := piecewise[undefined](t >= 200 and t <= 300, 1, t > 300 and t <= 400, 2): p2 := simplify(p1, piecewise); eval([p1,p2], t=100);
 ${\mathrm{p2}}{≔}\left\{\begin{array}{cc}{\mathrm{undefined}}& {t}{<}{200}\\ {1}& {t}{\le }{300}\\ {2}& {t}{\le }{400}\\ {\mathrm{undefined}}& {400}{<}{t}\end{array}\right\$
 $\left[{\mathrm{undefined}}{,}{\mathrm{undefined}}\right]$ (1.4.17)

There has been an improvement in simplify when simplifying constants:

 > simplify((9*(20/(36+18*2^(1/2))^2+13/(36+18*2^(1/2))^2*2^(1/2))^(1/2)*x*2^(1/2)+9*(20/( 36+18*2^(1/2))^2+13/(36+18*2^(1/2))^2*2^(1/2))^(1/2)*x+9*(20/(36+18*2^(1/2))^2+ 13/(36+18*2^(1/2))^2*2^(1/2))^(1/2)*y-252*(20/(36+18*2^(1/2))^2+13/(36+18*2^(1/ 2))^2*2^(1/2))^(1/2)*z/(20+13*2^(1/2))-162*(20/(36+18*2^(1/2))^2+13/(36+18*2^(1 /2))^2*2^(1/2))^(1/2)*z/(20+13*2^(1/2))*2^(1/2)-31/9*(12*2^(1/2)+17)/(20/(36+18 *2^(1/2))^2+13/(36+18*2^(1/2))^2*2^(1/2))^(1/2)/(23*2^(1/2)+33)/(8+2^(1/2)))^2- 3844*(12*2^(1/2)+17)^2*(2+2^(1/2))^2/(20+13*2^(1/2))/(23*2^(1/2)+33)^2/(8+2^(1/ 2))^2+(9*(8/(36+18*2^(1/2))^2+1/(36+18*2^(1/2))^2*2^(1/2))^(1/2)*x-9*(8/(36+18* 2^(1/2))^2+1/(36+18*2^(1/2))^2*2^(1/2))^(1/2)*y*2^(1/2)-9*(8/(36+18*2^(1/2))^2+ 1/(36+18*2^(1/2))^2*2^(1/2))^(1/2)*y+144*(8/(36+18*2^(1/2))^2+1/(36+18*2^(1/2)) ^2*2^(1/2))^(1/2)*z/(8+2^(1/2))+126*(8/(36+18*2^(1/2))^2+1/(36+18*2^(1/2))^2*2^ (1/2))^(1/2)*z/(8+2^(1/2))*2^(1/2)+31/9*(1+2^(1/2))/(23*2^(1/2)+33)/(8/(36+18*2 ^(1/2))^2+1/(36+18*2^(1/2))^2*2^(1/2))^(1/2)/(8+2^(1/2)))^2-3844*(1+2^(1/2))^2* (2+2^(1/2))^2/(23*2^(1/2)+33)^2/(8+2^(1/2))^3-590*(3+2*2^(1/2))/(20+13*2^(1/2)) /(8+2^(1/2))*(z-41/1180*(20+13*2^(1/2))*(10+7*2^(1/2))/(3+2*2^(1/2))/(23*2^(1/2 )+33))^2+1681/2360*(20+13*2^(1/2))*(10+7*2^(1/2))^2/(3+2*2^(1/2))/(8+2^(1/2))/( 23*2^(1/2)+33)^2-2);
 ${5}{}{{x}}^{{2}}{+}\left({3}{}{y}{-}{4}{}{z}{-}{8}\right){}{x}{+}{2}{}{{y}}^{{2}}{+}\left({-}{6}{}{z}{-}{4}\right){}{y}{-}{5}{}{{z}}^{{2}}{+}{7}{}{z}{-}{2}$ (1.4.18)

Mathematical Logic

Maple 2022 includes improvements to the the use of assume and is:

These all returned FAIL previously:

 > is(x^2+x+1, odd) assuming x::integer;
 ${\mathrm{true}}$ (1.5.1)
 > is(sec(x),real) assuming x::real, (x/Pi-1/2)::Non(integer);
 ${\mathrm{true}}$ (1.5.2)
 > is(csc(x),real) assuming x::real, (x/Pi)::Non(integer);
 ${\mathrm{true}}$ (1.5.3)

Smarter handling of inequalities led to this new result from coulditbe:

 > coulditbe(And(r^2=0,r*s<>0));
 ${\mathrm{false}}$ (1.5.4)

Some improvements in is relating to indexed variables resulted in this new result from signum:

 > signum(r) assuming r>low[r],low[r]>0;
 ${1}$ (1.5.5)

is and coulditbe can now handle more complicated RootOf functions:

 > map(is, [=, <, >](RootOf (exp(_Z) - exp (1/5), 0.21), 100000));
 $\left[{\mathrm{false}}{,}{\mathrm{true}}{,}{\mathrm{false}}\right]$ (1.5.6)

This led to the following new result from solve:

 > solve({(sqrt(1+1/x)-ln(sqrt(1+x)+sqrt(x)))/sqrt(x)>1,x>0},{x});
 $\left\{{0}{<}{x}{,}{x}{<}\frac{{\left({{ⅇ}}^{{2}{}{\mathrm{RootOf}}{}\left({\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{4}}{+}{2}{}{\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{3}}{}{\mathrm{_Z}}{-}{2}{}{\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{3}}{-}{2}{}{\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{2}}{-}{2}{}{\mathrm{_Z}}{}{{ⅇ}}^{{\mathrm{_Z}}}{-}{2}{}{{ⅇ}}^{{\mathrm{_Z}}}{+}{1}{,}{0.7505612007}\right)}{-}{1}\right)}^{{2}}}{{4}{}{\left({{ⅇ}}^{{\mathrm{RootOf}}{}\left({\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{4}}{+}{2}{}{\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{3}}{}{\mathrm{_Z}}{-}{2}{}{\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{3}}{-}{2}{}{\left({{ⅇ}}^{{\mathrm{_Z}}}\right)}^{{2}}{-}{2}{}{\mathrm{_Z}}{}{{ⅇ}}^{{\mathrm{_Z}}}{-}{2}{}{{ⅇ}}^{{\mathrm{_Z}}}{+}{1}{,}{0.7505612007}\right)}\right)}^{{2}}}\right\}$ (1.5.7)

And also an improved result from Student:-Calculus1:-InflectionPoints:

 > Student:-Calculus1:-InflectionPoints((1+sin(x))^cos(x), x = 0 .. 2*Pi);
 $\left[{0}{,}{1.374838238}{,}{3.780861806}{,}\frac{{3}{}{\mathrm{\pi }}}{{2}}{,}{2}{}{\mathrm{\pi }}\right]$ (1.5.8)

This new result from expand is due to an improvement in is:

 > expand(exp((sin(x + arctan(x*sqrt(2)/sqrt(-2*x^2 + 1)))^2)/4)) assuming x > 0;
 ${\left({{ⅇ}}^{\frac{{{\mathrm{sin}}{}\left({x}\right)}^{{2}}}{{1}{+}\frac{{2}{}{{x}}^{{2}}}{{-}{2}{}{{x}}^{{2}}{+}{1}}}}\right)}^{{1}}{{4}}}{}{{ⅇ}}^{\frac{{\mathrm{sin}}{}\left({x}\right){}{\mathrm{cos}}{}\left({x}\right){}{x}{}\sqrt{{2}}}{{2}{}\left({1}{+}\frac{{2}{}{{x}}^{{2}}}{{-}{2}{}{{x}}^{{2}}{+}{1}}\right){}\sqrt{{-}{2}{}{{x}}^{{2}}{+}{1}}}}{}\sqrt{{{ⅇ}}^{\frac{{{\mathrm{cos}}{}\left({x}\right)}^{{2}}{}{{x}}^{{2}}}{\left({-}{2}{}{{x}}^{{2}}{+}{1}\right){}\left({1}{+}\frac{{2}{}{{x}}^{{2}}}{{-}{2}{}{{x}}^{{2}}{+}{1}}\right)}}}$ (1.5.9)

There is now more consistent error handling in assume:

 > assume(Not(true), n=0); assume(false, n=0); assume(n=0, false);

Miscellaneous

This new result from minimize was due to improvement in min and max:

 > alias(alpha=RootOf(2*_Z^2-2*RootOf(2*_Z^3-1,index = 1)-2*_Z+1,1.237360513)): minimize((x^2+y^2)^2+1/(x^2+y^2)+(x^2-2*x+1+y^2)^2+1/(x^2-2*x+1+y^2)); alias(alpha=alpha):
 $\frac{{8}{}{{\mathrm{\alpha }}}^{{6}}{-}{24}{}{{\mathrm{\alpha }}}^{{5}}{+}{36}{}{{\mathrm{\alpha }}}^{{4}}{-}{32}{}{{\mathrm{\alpha }}}^{{3}}{+}{18}{}{{\mathrm{\alpha }}}^{{2}}{-}{6}{}{\mathrm{\alpha }}{+}{9}}{{2}{}\left({2}{}{{\mathrm{\alpha }}}^{{2}}{-}{2}{}{\mathrm{\alpha }}{+}{1}\right)}$ (1.6.1)

An improvement in allvalues led to a new result:

 > {allvalues(RootOf(product(f(r, _Z), r=RootOf(_Z^2-1))))};
 $\left\{{\mathrm{RootOf}}{}\left({f}{}\left({-1}{,}{\mathrm{_Z}}\right)\right){,}{\mathrm{RootOf}}{}\left({f}{}\left({1}{,}{\mathrm{_Z}}\right)\right)\right\}$ (1.6.2)

Improved handling of dummy variables by depends:

 > depends(sum(f[x], x=0..infinity), f[x]); depends(Product(f(x,a),x = 6 .. 5),a); depends(Product(f(x,a),x = 5 .. 5),a);
 ${\mathrm{false}}$
 ${\mathrm{false}}$
 ${\mathrm{true}}$ (1.6.3)

Introduction of Ball Arithmetic

Maple 2022 includes new facilities for ball arithmetic in the form of RealBox and ComplexBox objects that provide an interface to the arblib package.

 • The RealBox and ComplexBox objects represent boxes on the real line and in the complex plane, respectively.
 • A RealBox object is defined by a center and radius. Thus, it represents a closed and bounded interval on the line, unless it is the entire real line.
 • A ComplexBox object is defined as a pair of RealBox objects representing its real and imaginary parts. This represents either a closed and bounded box in the complex plane, the entire plane, or a doubly infinite strip in the direction of either the real or imaginary axis.
 • Unlike the extant facilities in Maple for interval arithmetic, there is no need for you to use a special evaluator like evalr, since the arithmetic and function evaluations are built in to the real and complex box objects.
 • The accuracy of box calculations is controlled by a precision option that is available for most operations, including the creation of real and complex boxes. This also affects the conversion of numeric quantities (centers and radii) in the construction of box objects.
 > Radius( RealBox( 2/3 ) );
 ${5.820766113350852282417152}{×}{{10}}^{{-11}}$ (2.1)

Note that the radius for an inexactly representable quantity is smaller with greater precision, as directed by the precision=80 option.

 > Radius( RealBox( 2/3, 'precision' = 80 ) );
 ${8.2718061697}{×}{{10}}^{{-25}}$ (2.2)
 > Radius( RealBox( 3/2 ) );
 ${0.}$ (2.3)

Arithmetic operations on RealBox objects are built-in. You can operate with RealBox objects in many respects as though they were numeric quantities.

 > p := randpoly( x );
 ${p}{≔}{-}{7}{}{{x}}^{{5}}{+}{22}{}{{x}}^{{4}}{-}{55}{}{{x}}^{{3}}{-}{94}{}{{x}}^{{2}}{+}{87}{}{x}{-}{56}$ (2.4)
 > eval( p, x = RealBox( Zeta( 3 ) ) );
 ${⟨}{\text{RealBox:}}{-154.41}{±}{1.71822ⅇ-07}{⟩}$ (2.5)
 > b := RealBox( 0.42, 1e-5 );
 ${b}{≔}{⟨}{\text{RealBox:}}{0.42}{±}{1.00000ⅇ-05}{⟩}$ (2.6)

Many mathematical functions are defined for RealBox objects.

 > sin( b );
 ${⟨}{\text{RealBox:}}{0.40776}{±}{9.13188ⅇ-06}{⟩}$ (2.7)
 > Chi( b^2 );
 ${⟨}{\text{RealBox:}}{-1.15}{±}{4.83663ⅇ-05}{⟩}$ (2.8)

A ComplexBox object can be constructed from a complex numeric input.

 > b := ComplexBox( 2.3 + 7.77*I, 'precision' = 50 );
 ${b}{≔}{⟨}{\text{ComplexBox:}}{\text{[2.3 +/- 3.55271e-15]}}{+}{\text{[7.77 +/- 7.10543e-15]}}{\cdot }{I}{⟩}$ (2.9)

The result is an object with two RealBox components representing the real and imaginary parts.

 > Re( b );
 ${⟨}{\text{RealBox:}}{2.3}{±}{3.55271ⅇ-15}{⟩}$ (2.10)
 > Im( b );
 ${⟨}{\text{RealBox:}}{7.77}{±}{7.10543ⅇ-15}{⟩}$ (2.11)

As with RealBox objects, ComplexBox objects can be manipulated using ordinary arithmetic operations.

 > eval( p, x = b );
 ${⟨}{\text{ComplexBox:}}{\text{[-176235 +/- 0.000143251]}}{+}{\text{[-102440 +/- 7.15837e-05]}}{\cdot }{I}{⟩}$ (2.12)
 > 1/b^10 - I;
 ${⟨}{\text{ComplexBox:}}{\text{[7.90907e-10 +/- 1.20159e-19]}}{+}{\text{[-1 +/- 1.16415e-10]}}{\cdot }{I}{⟩}$ (2.13)

Apart from cases where the output of an operation is necessarily real, the result of a function applied to a ComplexBox is again a ComplexBox object.

 > Li( b );
 ${⟨}{\text{ComplexBox:}}{\text{[3.76298 +/- 7.32189e-09]}}{+}{\text{[4.33322 +/- 6.45855e-09]}}{\cdot }{I}{⟩}$ (2.14)
 > exp( b );
 ${⟨}{\text{ComplexBox:}}{\text{[0.836664 +/- 2.13816e-10]}}{+}{\text{[9.93903 +/- 2.44814e-09]}}{\cdot }{I}{⟩}$ (2.15)

Note that the magnitude of b is evaluated as a RealBox object.

 > abs( b );
 ${⟨}{\text{RealBox:}}{8.10326}{±}{9.76226ⅇ-10}{⟩}$ (2.16)

Certain specific constants, such as $\mathrm{\pi }$, can be computed to high accuracy by using the precision option for the RealBox or ComplexBox constructor.

 > RealBox( Pi );
 ${⟨}{\text{RealBox:}}{3.14159}{±}{1.16415ⅇ-10}{⟩}$ (2.17)
 > RealBox( Pi, 'precision' = 100000 );
 ${⟨}{\text{RealBox:}}{3.14159}{±}{2.00495ⅇ-3010}{⟩}$ (2.18)
 Formal Power Series The convert(...,FormalPowerSeries) command has been completely rewritten for Maple 2022. It is now able to find both closed form solutions and recurrence relations for many more examples than in previous versions.

Graph Theory

Several new commands were added to the GraphTheory package.

 • IsChordal tests if a graph is chordal.
 • IsComparabilityGraph tests if a graph is a comparability graph.
 • IsIntervalGraph tests if a graph is an interval graph.
 • IsOriented tests if a directed graph is oriented, i.e. if it contains no pair of symmetric arcs.
 • IsPerfectGraph tests if a graph is a perfect graph.
 • IsSimplicial tests if a graph vertex is simplicial, i.e. if its neighborhood forms a clique.
 • RichClubCoefficients computes the rich club coefficients for a graph. These are intended to measure the extent to which well-connected vertices also connect to each other.
 • Traverse returns either a vertex list corresponding to a breadth-first or depth-first traversal of the graph, or an Iterator which can perform such a traversal interactively.

 • CompleteKaryArborescence computes the compute k-ary arborescence to a given depth. An arborescence is a directed analog of a tree with arcs leading away from the source.
 • CompleteKaryAntiArborescence computes the compute k-ary anti-arborescence to a given depth. An anti-arborescence is a directed analog of a tree with arcs leading towards the sink.

Linear Recurrence Relations

A new command, mhypergeomsols, was added to the LREtools package, which can find m-fold (also called m-interlacing) solutions of linear recurrence equations with polynomial coefficients for arbitrary positive integers $m$.

 > with(LREtools);
 $\left[{\mathrm{AnalyticityConditions}}{,}{\mathrm{GCRD}}{,}{\mathrm{GeneralizedExponents}}{,}{\mathrm{GuessRecurrence}}{,}{\mathrm{HypergeometricTerm}}{,}{\mathrm{IsDesingularizable}}{,}{\mathrm{LCLM}}{,}{\mathrm{MinimalRecurrence}}{,}{\mathrm{MultiplyOperators}}{,}{\mathrm{OperatorToRecurrence}}{,}{\mathrm{REcontent}}{,}{\mathrm{REcreate}}{,}{\mathrm{REplot}}{,}{\mathrm{REprimpart}}{,}{\mathrm{REreduceorder}}{,}{\mathrm{REtoDE}}{,}{\mathrm{REtodelta}}{,}{\mathrm{REtoproc}}{,}{\mathrm{RecurrenceToOperator}}{,}{\mathrm{RightDivision}}{,}{\mathrm{RightFactors}}{,}{\mathrm{SumDecompose}}{,}{\mathrm{ValuesAtPoint}}{,}{\mathrm{autodispersion}}{,}{\mathrm{constcoeffsol}}{,}{\mathrm{dAlembertiansols}}{,}{\mathrm{\delta }}{,}{\mathrm{dispersion}}{,}{\mathrm{divconq}}{,}{\mathrm{firstlin}}{,}{\mathrm{hypergeomsols}}{,}{\mathrm{mhypergeomsols}}{,}{\mathrm{polysols}}{,}{\mathrm{ratpolysols}}{,}{\mathrm{riccati}}{,}{\mathrm{shift}}\right]$ (5.1)
 > RE := (n+1)*(n+2)*(n+3)*(n+4)*a(n+4) + 10*(n+1)*(n+2)*a(n+2) + 9*a(n) = 0;
 ${\mathrm{RE}}{≔}\left({n}{+}{1}\right){}\left({n}{+}{2}\right){}\left({n}{+}{3}\right){}\left({n}{+}{4}\right){}{a}{}\left({n}{+}{4}\right){+}{10}{}\left({n}{+}{1}\right){}\left({n}{+}{2}\right){}{a}{}\left({n}{+}{2}\right){+}{9}{}{a}{}\left({n}\right){=}{0}$ (5.2)
 > hypergeomsols(RE, a(n), {}, output=basis);
 $\left[\frac{{{I}}^{{n}}}{{\mathrm{\Gamma }}{}\left({n}{+}{1}\right)}{,}\frac{{\left({-I}\right)}^{{n}}}{{\mathrm{\Gamma }}{}\left({n}{+}{1}\right)}{,}\frac{{\left({-}{3}{}{I}\right)}^{{n}}}{{\mathrm{\Gamma }}{}\left({n}{+}{1}\right)}{,}\frac{{\left({3}{}{I}\right)}^{{n}}}{{\mathrm{\Gamma }}{}\left({n}{+}{1}\right)}\right]$ (5.3)
 > msols := mhypergeomsols(RE, a(n), complex);
 ${\mathrm{msols}}{≔}\left[\left[{1}{,}\left\{\frac{{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{+}{1}\right)}^{{n}}}{{n}{!}}{,}\frac{{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{+}{9}\right)}^{{n}}}{{n}{!}}\right\}\right]{,}\left[{2}{,}\left\{\frac{{\left({-9}\right)}^{{n}}}{\left({2}{}{n}\right){!}}{,}\frac{{\left({-1}\right)}^{{n}}}{\left({2}{}{n}\right){!}}\right\}\right]\right]$ (5.4)

$\mathrm{msols}\left[1\right]$ is equivalent to the solutions returned by hypergeomsols, while $\mathrm{msols}\left[2\right]$ gives all 2-fold hypergeometric solutions, which cannot be found by hypergeomsols.

 > allvalues(msols[1,2,1]), allvalues(msols[1,2,2]);
 $\frac{{{I}}^{{n}}}{{n}{!}}{,}\frac{{\left({-I}\right)}^{{n}}}{{n}{!}}{,}\frac{{\left({3}{}{I}\right)}^{{n}}}{{n}{!}}{,}\frac{{\left({-}{3}{}{I}\right)}^{{n}}}{{n}{!}}$ (5.5)
 > sol1 := unapply(eval(op([2,2,1],msols),n=n/2),n);
 ${\mathrm{sol1}}{≔}{n}{↦}\frac{{\left({-9}\right)}^{\frac{{n}}{{2}}}}{{n}{!}}$ (5.6)
 > normal(expand(eval(RE,a=sol1)));
 ${0}{=}{0}$ (5.7)
 > sol2 := unapply(eval(op([2,2,2],msols),n=n/2),n);
 ${\mathrm{sol2}}{≔}{n}{↦}\frac{{\left({-1}\right)}^{\frac{{n}}{{2}}}}{{n}{!}}$ (5.8)
 > normal(expand(eval(RE,a=sol2)));
 ${0}{=}{0}$ (5.9)

Polyhedral Sets

A new command, IntegerHull, was added to the PolyhedralSets package. It computes the integer hulls of 2-D (bounded or unbound) and 3-D (bounded) polyhedral sets.

The integer hull of a convex polyhedral set is the smallest polyhedral set that contains all the integer points in the input set.

 >
 >
 > $\mathrm{poly2d}≔\mathrm{PolyhedralSet}\left(\mathrm{ineqs},\left[x,y\right]\right);$
 ${\mathrm{poly2d}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{x}{,}{y}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{x}{-}\frac{{5}{}{y}}{{7}}{\le }{-}\frac{{20}}{{7}}{,}{x}{-}{2}{}{y}{\le }{-}\frac{{7}}{{3}}{,}{x}{+}\frac{{5}{}{y}}{{2}}{\le }{32}\right]\end{array}$ (6.1)

The input to the command is a PolyhedralSet object. By default, the command returns the integer hull in the form [vertices, rays].

 >
 $\left[\left[\left[{12}{,}{8}\right]{,}\left[{-8}{,}{16}\right]{,}\left[{-7}{,}{14}\right]{,}\left[{-5}{,}{11}\right]{,}\left[{0}{,}{4}\right]{,}\left[{1}{,}{3}\right]{,}\left[{3}{,}{3}\right]{,}\left[{11}{,}{7}\right]\right]{,}\left[\right]\right]$ (6.2)

The command also has the option to return the integer hull in the PolyhedralSet object format.

 >
 ${\mathrm{intpoly2d}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{x}{,}{y}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{y}{\le }{-3}{,}{-}{x}{-}{y}{\le }{-4}{,}{-}{x}{-}\frac{{5}{}{y}}{{7}}{\le }{-}\frac{{20}}{{7}}{,}{-}{x}{-}\frac{{2}{}{y}}{{3}}{\le }{-}\frac{{7}}{{3}}{,}{-}{x}{-}\frac{{y}}{{2}}{\le }{0}{,}{x}{-}{2}{}{y}{\le }{-3}{,}{x}{-}{y}{\le }{4}{,}{x}{+}\frac{{5}{}{y}}{{2}}{\le }{32}\right]\end{array}$ (6.3)

In this example, the white triangle is the input polyhedral set, and the red polygon is the output integer hull.

 >

The input 2-D polyhedral set can be unbounded.

 >
 ${\mathrm{inset}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{x}{,}{y}\right]\\ {\mathrm{Relations}}& {:}& \left[{y}{\le }{0}{,}{-}{x}{\le }\frac{{5}}{{3}}{,}{-}{x}{+}\frac{{4}{}{y}}{{15}}{\le }\frac{{7}}{{5}}{,}{x}{\le }\frac{{13}}{{4}}\right]\end{array}$ (6.4)
 >
 ${\mathrm{vert}}{≔}\left[\left[\left[{-1}{,}{0}\right]{,}\left[{3}{,}{0}\right]\right]{,}\left[\left[{0}{,}{-1}\right]\right]\right]$ (6.5)
 >
 ${\mathrm{intpoly}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{x}{,}{y}\right]\\ {\mathrm{Relations}}& {:}& \left[{y}{\le }{0}{,}{-}{x}{\le }{1}{,}{x}{\le }{3}\right]\end{array}$ (6.6)
 >

The following is a bounded 3-D example.

 >
 >
 >
 ${\mathrm{poly}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{\mathrm{x1}}{-}\frac{{73}{}{\mathrm{x2}}}{{91}}{-}\frac{{6}{}{\mathrm{x3}}}{{7}}{\le }\frac{{79}}{{182}}{,}{-}{\mathrm{x1}}{+}\frac{{3}{}{\mathrm{x2}}}{{5}}{+}\frac{{4}{}{\mathrm{x3}}}{{5}}{\le }\frac{{19}}{{10}}{,}{\mathrm{x1}}{-}\frac{{3}{}{\mathrm{x2}}}{{5}}{+}\frac{{6}{}{\mathrm{x3}}}{{7}}{\le }\frac{{43}}{{14}}{,}{\mathrm{x1}}{+}\frac{{41}{}{\mathrm{x2}}}{{38}}{-}\frac{{13}{}{\mathrm{x3}}}{{38}}{\le }\frac{{279}}{{76}}\right]\end{array}$ (6.7)
 >
 ${\mathrm{intpoly}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{\mathrm{x3}}{\le }{2}{,}{-}{\mathrm{x2}}{\le }{2}{,}{\mathrm{x2}}{\le }{3}{,}{\mathrm{x2}}{+}\frac{{\mathrm{x3}}}{{2}}{\le }{3}{,}{-}{\mathrm{x1}}{-}{\mathrm{x2}}{-}{\mathrm{x3}}{\le }{1}{,}{-}{\mathrm{x1}}{-}\frac{{7}{}{\mathrm{x2}}}{{8}}{-}\frac{{3}{}{\mathrm{x3}}}{{4}}{\le }\frac{{1}}{{4}}{,}{-}{\mathrm{x1}}{-}\frac{{4}{}{\mathrm{x2}}}{{5}}{-}\frac{{4}{}{\mathrm{x3}}}{{5}}{\le }\frac{{1}}{{5}}{,}{-}{\mathrm{x1}}{+}{\mathrm{x3}}{\le }{2}{,}{-}{\mathrm{x1}}{+}\frac{{\mathrm{x2}}}{{2}}{+}\frac{{\mathrm{x3}}}{{2}}{\le }\frac{{3}}{{2}}{,}{-}{\mathrm{x1}}{+}\frac{{\mathrm{x2}}}{{2}}{+}{\mathrm{x3}}{\le }{2}{,}{\mathrm{and 9 more constraints}}\right]\end{array}$ (6.8)

In this example, the white transparent tetrahedron is the input polyhedral set, and the red polyhedron is the output integer hull.

 >

The following shows a more complex example, with a higher number of vertices in the output.

 >
 >
 ${\mathrm{poly}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{\mathrm{x1}}{-}\frac{{1581}{}{\mathrm{x2}}}{{2498}}{-}\frac{{1107}{}{\mathrm{x3}}}{{2498}}{\le }{-}\frac{{732}}{{1249}}{,}{-}{\mathrm{x1}}{-}\frac{{903}{}{\mathrm{x2}}}{{1724}}{-}\frac{{783}{}{\mathrm{x3}}}{{3448}}{\le }{-}\frac{{747}}{{1724}}{,}{-}{\mathrm{x1}}{+}\frac{{33}{}{\mathrm{x2}}}{{34}}{+}\frac{{3}{}{\mathrm{x3}}}{{4}}{\le }\frac{{281}}{{34}}{,}{\mathrm{x1}}{-}\frac{{21}{}{\mathrm{x2}}}{{430}}{+}\frac{{239}{}{\mathrm{x3}}}{{430}}{\le }\frac{{1493}}{{215}}{,}{\mathrm{x1}}{-}\frac{{33}{}{\mathrm{x2}}}{{898}}{+}\frac{{160}{}{\mathrm{x3}}}{{449}}{\le }\frac{{2624}}{{449}}{,}{\mathrm{x1}}{+}\frac{{63}{}{\mathrm{x2}}}{{92}}{-}\frac{{3}{}{\mathrm{x3}}}{{4}}{\le }\frac{{229}}{{46}}\right]\end{array}$ (6.9)
 >
 ${\mathrm{vert}}{≔}\left[\left[\left[{-2}{,}{3}{,}{4}\right]{,}\left[{-2}{,}{4}{,}{3}\right]{,}\left[{-2}{,}{6}{,}{-2}\right]{,}\left[{-2}{,}{8}{,}{-2}\right]{,}\left[{-1}{,}{-2}{,}{11}\right]{,}\left[{-1}{,}{-2}{,}{12}\right]{,}\left[{-1}{,}{4}{,}{-2}\right]{,}\left[{-1}{,}{5}{,}{-3}\right]{,}\left[{0}{,}{-4}{,}{12}\right]{,}\left[{0}{,}{-1}{,}{12}\right]{,}\left[{0}{,}{0}{,}{2}\right]{,}\left[{0}{,}{0}{,}{11}\right]{,}\left[{0}{,}{1}{,}{0}\right]{,}\left[{2}{,}{-6}{,}{7}\right]{,}\left[{2}{,}{0}{,}{-3}\right]{,}\left[{2}{,}{1}{,}{-3}\right]{,}\left[{3}{,}{-7}{,}{5}\right]{,}\left[{3}{,}{-1}{,}{7}\right]{,}\left[{4}{,}{-8}{,}{4}\right]{,}\left[{4}{,}{-6}{,}{1}\right]{,}\left[{4}{,}{-1}{,}{5}\right]{,}\left[{4}{,}{8}{,}{6}\right]{,}\left[{5}{,}{1}{,}{1}\right]{,}\left[{6}{,}{-7}{,}{-2}\right]{,}\left[{6}{,}{-6}{,}{-3}\right]{,}\left[{6}{,}{-5}{,}{-3}\right]{,}\left[{6}{,}{-5}{,}{-1}\right]{,}\left[{6}{,}{-3}{,}{-1}\right]\right]{,}\left[\right]\right]$ (6.10)
 >
 ${\mathrm{intpoly}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{\mathrm{x1}}{,}{\mathrm{x2}}{,}{\mathrm{x3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{\mathrm{x3}}{\le }{3}{,}{\mathrm{x3}}{\le }{12}{,}{-}{\mathrm{x2}}{-}{\mathrm{x1}}{\le }{4}{,}{-}{\mathrm{x1}}{-}\frac{{2}{}{\mathrm{x2}}}{{3}}{-}\frac{{2}{}{\mathrm{x3}}}{{3}}{\le }{0}{,}{-}{\mathrm{x1}}{-}\frac{{2}{}{\mathrm{x2}}}{{3}}{-}\frac{{4}{}{\mathrm{x3}}}{{9}}{\le }{-}\frac{{4}}{{9}}{,}{-}{\mathrm{x1}}{-}\frac{{7}{}{\mathrm{x2}}}{{11}}{-}\frac{{5}{}{\mathrm{x3}}}{{11}}{\le }{-}\frac{{7}}{{11}}{,}{-}{\mathrm{x1}}{-}\frac{{12}{}{\mathrm{x2}}}{{19}}{-}\frac{{8}{}{\mathrm{x3}}}{{19}}{\le }{-}\frac{{12}}{{19}}{,}{-}{\mathrm{x1}}{-}\frac{{8}{}{\mathrm{x2}}}{{13}}{-}\frac{{5}{}{\mathrm{x3}}}{{13}}{\le }{-}\frac{{8}}{{13}}{,}{-}{\mathrm{x1}}{-}\frac{{3}{}{\mathrm{x2}}}{{5}}{-}\frac{{3}{}{\mathrm{x3}}}{{5}}{\le }{-}\frac{{1}}{{5}}{,}{-}{\mathrm{x1}}{-}\frac{{7}{}{\mathrm{x2}}}{{12}}{-}\frac{{\mathrm{x3}}}{{6}}{\le }\frac{{1}}{{3}}{,}{\mathrm{and 29 more constraints}}\right]\end{array}$ (6.11)
 >

The following tables are benchmarks of the new algorithm.

Integer hulls of triangles (2-D)
 Volume 27.95 111.79 11179.3 Time(s) 0.172 0.244 0.159 Number of vertices in the output 4 8 10

Integer hulls of hexagons (2-D)
 Volume 58.21 5820.95 23283.8 Time(s) 0.303 0.275 0.304 Number of vertices in the output 8 20 25

Integer hulls of tetrahedrons (3-D)
 Volume 447.48 6991.89 55935.2 Time(s) 0.977 1.223 1.378 Number of vertices in the output 27 33 39

Real Root Finding

Two new commands were added to the RootFinding package.

 • RefineRoot refines an isolating box for a real root of a polynomial system to arbitrary precision.
 • EvaluateAtRoot evaluates a number of polynomials or constraints at such an isolating box, to arbitrary precision, or to ensure signs or truth values, respectively.

These two commands offer new ways of working with real roots for real polynomials at specified precisions.

 > $\mathrm{with}\left(\mathrm{RootFinding}\right):$

RefineRoot allows for refinement of a real root:

 > $p≔{x}^{3}-x-2:$
 >
 ${\mathrm{rt}}{≔}\left[\frac{{449032033445746112207}}{{295147905179352825856}}{,}\frac{{224516016722873056117}}{{147573952589676412928}}\right]$ (7.1)
 > $\mathrm{evalf}\left(\mathrm{rt},20\right)$
 $\left[{1.5213797068045675696}{,}{1.5213797068045675697}\right]$ (7.2)
 > $\mathrm{refined}≔\mathrm{RefineRoot}\left(\mathrm{rt},p,x,'\mathrm{digits}'=40\right)$
 ${\mathrm{refined}}{≔}\left[\frac{{2120493824478992964488004125412730020651311}}{{1393796574908163946345982392040522594123776}}{,}\frac{{1060246912239496482244002062706365010325669}}{{696898287454081973172991196020261297061888}}\right]$ (7.3)
 > $\mathrm{evalf}\left(\mathrm{refined},45\right)$
 $\left[{1.52137970680456756960408083225443851442837514}{,}{1.52137970680456756960408083225443851442839451}\right]$ (7.4)

RefineRoot is compatible with syntaxes previously and widely used within RootFinding, as well as real algebraic numbers represented by RootOfs:

 > $\mathrm{RefineRoot}\left(\mathrm{RootOf}\left({\mathrm{_Z}}^{2}-2\mathrm{RootOf}\left({\mathrm{_Z}}^{3}-9,2..3\right),1..2\right)\right)$
 ${\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{2}}{-}{2}{}{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{3}}{-}{9}{,}\frac{{4911459063769832938769}}{{2361183241434822606848}}{..}\frac{{19645836255079331755077}}{{9444732965739290427392}}\right){,}\frac{{9631969614722211425099}}{{4722366482869645213696}}{..}\frac{{19263939229444422850199}}{{9444732965739290427392}}\right)$ (7.5)

EvaluateAtRoot allows for evaluation of polynomials or relations on such at a real root. In particular, in taking in specific information about the real root, the routine provides robust evaluation of polynomial expressions in lieu of other evaluation methods involving $\mathrm{evalf}$ or similar.

EvaluateAtRoot offers a wide range of overloads to support various use cases amongst evaluation of constraints or polynomials.

In the case of relations, the main available output is a truth value:

 >
 > $\mathrm{sys}≔\left[{x}^{2}-2\right]:\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{vars}≔\left[x\right]:\phantom{\rule[-0.0ex]{0.0em}{0.0ex}}\mathrm{box}≔\left[1..2\right]:$
 >
 $\left[{\mathrm{true}}{,}{\mathrm{false}}{,}{\mathrm{FAIL}}\right]$ (7.6)

If the constraints are given as polynomials, the main available output is a list of signs:

 > $\mathrm{polys}≔\mathrm{map}\left(\mathrm{lhs}-\mathrm{rhs},\mathrm{constraints}\right)$
 ${\mathrm{polys}}{≔}\left[{{x}}^{{2}}{-}{3}{,}{-}{{x}}^{{2}}{+}{2}{,}{-}{4}{-}{x}\right]$ (7.7)
 > $\mathrm{RootFinding}:-\mathrm{EvaluateAtRoot}\left(\mathrm{polys},\mathrm{box},\mathrm{sys},\mathrm{vars}\right)$
 $\left[{-1}{,}{0}{,}{-1}\right]$ (7.8)

A multivariate example:

 > $\mathrm{sys}≔\left[{x}^{2}+y+z-1,{y}^{2}+x+z-1,{z}^{2}+x+y-1\right]:$
 > $\mathrm{vars}≔\left[x,y,z\right]:$
 > $\mathrm{box}≔{\mathrm{Isolate}\left(\mathrm{sys},\mathrm{vars},'\mathrm{output}=\mathrm{interval}','\mathrm{digits}'=20\right)}_{}$
 ${\mathrm{box}}{≔}\left[\left[{x}{=}\left[{-}\frac{{729651277404161901210817}}{{302231454903657293676544}}{,}{-}\frac{{2918605109616647604843253}}{{1208925819614629174706176}}\right]{,}{y}{=}\left[{-}\frac{{2918605109616647604843263}}{{1208925819614629174706176}}{,}{-}\frac{{2918605109616647604843255}}{{1208925819614629174706176}}\right]{,}{z}{=}\left[{-}\frac{{1459302554808323802421631}}{{604462909807314587353088}}{,}{-}\frac{{2918605109616647604843257}}{{1208925819614629174706176}}\right]\right]{,}\left[{x}{=}\left[{1}{,}{1}\right]{,}{y}{=}\left[{0}{,}{0}\right]{,}{z}{=}\left[{0}{,}{0}\right]\right]{,}\left[{x}{=}\left[{0}{,}{0}\right]{,}{y}{=}\left[{1}{,}{1}\right]{,}{z}{=}\left[{0}{,}{0}\right]\right]{,}\left[{x}{=}\left[\frac{{4006027763099114043447247}}{{9671406556917033397649408}}{,}\frac{{2003013881549557021723633}}{{4835703278458516698824704}}\right]{,}{y}{=}\left[\frac{{1001506940774778510861813}}{{2417851639229258349412352}}{,}\frac{{2003013881549557021723633}}{{4835703278458516698824704}}\right]{,}{z}{=}\left[\frac{{1001506940774778510861813}}{{2417851639229258349412352}}{,}\frac{{2003013881549557021723629}}{{4835703278458516698824704}}\right]\right]{,}\left[{x}{=}\left[{0}{,}{0}\right]{,}{y}{=}\left[{0}{,}{0}\right]{,}{z}{=}\left[{1}{,}{1}\right]\right]\right]$ (7.9)
 > $\mathrm{evalf}\left(\mathrm{box}\left[1\right],25\right)$
 $\left[{x}{=}\left[{-2.414213562373095048801696}{,}{-2.414213562373095048801684}\right]{,}{y}{=}\left[{-2.414213562373095048801692}{,}{-2.414213562373095048801685}\right]{,}{z}{=}\left[{-2.414213562373095048801691}{,}{-2.414213562373095048801687}\right]\right]$ (7.10)
 >
 > $\mathrm{EvaluateAtRoot}\left(\mathrm{map}\left(\mathrm{lhs}-\mathrm{rhs},\mathrm{constraints}\right),\mathrm{box}\left[1\right],\mathrm{sys}\right)$
 $\left[{-1}{,}{1}{,}{-1}\right]$ (7.11)
 > $\mathrm{EvaluateAtRoot}\left(\mathrm{constraints},\mathrm{box}\left[1\right],\mathrm{sys}\right)$
 $\left[{\mathrm{true}}{,}{\mathrm{false}}{,}{\mathrm{FAIL}}\right]$ (7.12)
 >
 > $\mathrm{values}$
 $\left[\left[{-}\frac{{4506467062523519726920791998043029943085529802413393}}{{365375409332725729550921208179070754913983135744}}{,}{-}\frac{{4506467062523519726920791998043029943085529802413333}}{{365375409332725729550921208179070754913983135744}}\right]{,}\left[\frac{{5031029366959953335471150253290716055268453618081681}}{{2923003274661805836407369665432566039311865085952}}{,}\frac{{5031029366959953335471150253290716055268453618082149}}{{2923003274661805836407369665432566039311865085952}}\right]{,}\left[{-}\frac{{1865078863459351682758176993701453346185745101771859}}{{730750818665451459101842416358141509827966271488}}{,}{-}\frac{{3730157726918703365516353987402906692371490203543559}}{{1461501637330902918203684832716283019655932542976}}\right]\right]$ (7.13)
 > $\mathrm{evalf}\left(\mathrm{values},45\right)$
 $\left[\left[{-12333.7995590714406028729662150027030187209087}{,}{-12333.7995590714406028729662150027030187209087}\right]{,}\left[{1721.18499167334940947621998942265763945608181}{,}{1721.18499167334940947621998942265763945608181}\right]{,}\left[{-2552.27748751002411421432998413398645918412272}{,}{-2552.27748751002411421432998413398645918412272}\right]\right]$ (7.14)
 > $\mathrm{refinedbox}$
 $\left[{x}{=}\left[{-}\frac{{14452232496229377357973232847790457004687879122145601}}{{5986310706507378352962293074805895248510699696029696}}{,}{-}\frac{{14452232496229377357973232847790457004687879122145551}}{{5986310706507378352962293074805895248510699696029696}}\right]{,}{y}{=}\left[{-}\frac{{3613058124057344339493308211947614251171969780536395}}{{1496577676626844588240573268701473812127674924007424}}{,}{-}\frac{{14452232496229377357973232847790457004687879122145571}}{{5986310706507378352962293074805895248510699696029696}}\right]{,}{z}{=}\left[{-}\frac{{14452232496229377357973232847790457004687879122145579}}{{5986310706507378352962293074805895248510699696029696}}{,}{-}\frac{{14452232496229377357973232847790457004687879122145573}}{{5986310706507378352962293074805895248510699696029696}}\right]\right]$ (7.15)
 > $\mathrm{evalf}\left(\mathrm{refinedbox},45\right)$
 $\left[{x}{=}\left[{-2.41421356237309504880168872420969807856967188}{,}{-2.41421356237309504880168872420969807856967188}\right]{,}{y}{=}\left[{-2.41421356237309504880168872420969807856967188}{,}{-2.41421356237309504880168872420969807856967188}\right]{,}{z}{=}\left[{-2.41421356237309504880168872420969807856967188}{,}{-2.41421356237309504880168872420969807856967188}\right]\right]$ (7.16)

Intersection Multiplicities

A new algorithm has been implemented in the IntersectionMultiplicity command in the RegularChains package. It can handle cases that the previous version was unable to solve, and it is much faster in many cases.

Summary

 • With Maple 2022 comes a redesigned, more powerful version of the IntersectionMultiplicity command in the AlgebraicGeometryTools subpackage of the RegularChains package.
 • The new command exceeds the previous version in both computational power and sheer performance. Using a newly designed algorithm, the new version of the IntersectionMultiplicity command can compute far more examples than previously possible. Moreover, the new version can compute these examples in a matter of seconds, far faster than the previous counterpart.
 • The new algorithm incorporated into the IntersectionMultiplicity command no longer requires at least one polynomial to be non-singular at the point of interest. Hence, the intersection multiplicity command can now handle cases where all inputs are singular at the point of study.
 • If the intersection multiplicity is required only at a single point, this can now be done directly, without having to encode the point as a regular chain.

Examples

Here we see the polynomials in $F$ are all singular at the origin.

 > $\mathrm{with}\left(\mathrm{RegularChains}\right):$$\mathrm{with}\left(\mathrm{ChainTools}\right):$$\mathrm{with}\left(\mathrm{AlgebraicGeometryTools}\right)$
 $\left[{\mathrm{Cylindrify}}{,}{\mathrm{IntersectionMultiplicity}}{,}{\mathrm{IsTransverse}}{,}{\mathrm{LimitPoints}}{,}{\mathrm{RationalFunctionLimit}}{,}{\mathrm{RegularChainBranches}}{,}{\mathrm{TangentCone}}{,}{\mathrm{TangentPlane}}{,}{\mathrm{TriangularizeWithMultiplicity}}{,}{\mathrm{consolidateTangentCones}}{,}{\mathrm{partialTangentCone}}\right]$ (8.2.1)
 > $F≔\left[zy,{y}^{5}-{z}^{2},{x}^{5}-{y}^{2}\right]$
 ${F}{≔}\left[{z}{}{y}{,}{{y}}^{{5}}{-}{{z}}^{{2}}{,}{{x}}^{{5}}{-}{{y}}^{{2}}\right]$ (8.2.2)
 > $\mathrm{plots}:-\mathrm{implicitplot3d}\left(F,x=-1..1,y=-1..1,z=-1..1,\mathrm{numpoints}=10000,\mathrm{style}=\mathrm{surface},\mathrm{color}=\left["red","yellow","blue"\right]\right)$

Using the new version of the IntersectionMultiplicity command, we can compute the intersection multiplicity of this previously inaccessible example.

 > $\mathrm{IntersectionMultiplicity}\left(\left[0,0,0\right],F,\left[x,y,z\right]\right)$
 ${35}$ (8.2.3)

The previous version of the IntersectionMultiplicity command returns an error on this example. That version can still be accessed by passing method=tangentcone.

 > $R≔\mathrm{PolynomialRing}\left(\left[x,y,z\right]\right):$
 > $\mathrm{IntersectionMultiplicity}\left(\mathrm{Chain}\left(\left[z,y,x\right],R\right),F,R,'\mathrm{method}=\mathrm{tangentcone}'\right)$

The new command is also easier to call when the input is a regular chain. It is no longer necessary to call Triangularize first and then map the IntersectionMultiplicity command to the output; the IntersectionMultiplicity command can now be called directly on regular chains encoding multiple points.

 > $F≔\left[z,y,{\left(x\left(x+1\right)\right)}^{2}\right]$
 ${F}{≔}\left[{z}{,}{y}{,}{{x}}^{{2}}{}{\left({x}{+}{1}\right)}^{{2}}\right]$ (8.2.4)
 > $\mathrm{rc}≔\mathrm{Chain}\left(F,R\right):$
 > $\mathrm{res}≔\mathrm{IntersectionMultiplicity}\left(\mathrm{rc},F,R\right)$
 ${\mathrm{res}}{≔}\left[\left[{2}{,}{\mathrm{regular_chain}}\right]{,}\left[{2}{,}{\mathrm{regular_chain}}\right]\right]$ (8.2.5)
 > $\mathrm{Display}\left(\mathrm{res},R\right)$
 $\left[\left[{2}{,}\left\{\begin{array}{cc}{x}{=}{0}& {}\\ {y}{=}{0}& {}\\ {z}{=}{0}& {}\end{array}\right\\right]{,}\left[{2}{,}\left\{\begin{array}{cc}{x}{+}{1}{=}{0}& {}\\ {y}{=}{0}& {}\\ {z}{=}{0}& {}\end{array}\right\\right]\right]$ (8.2.6)

The previous version of the IntersectionMultiplicity command returns a different error on this example.

 > $\mathrm{IntersectionMultiplicity}\left(\mathrm{rc},F,R,'\mathrm{method}=\mathrm{tangentcone}'\right)$

This error can be avoided by first calling Triangularize on $F$ and then mapping IntersectionMultiplicity to the output. This extra step is inconvenient, and hence, the need for it has been eliminated in the updated command.

 > $\mathrm{dec}≔\mathrm{Triangularize}\left(F,R\right)$
 ${\mathrm{dec}}{≔}\left[{\mathrm{regular_chain}}{,}{\mathrm{regular_chain}}\right]$ (8.2.7)
 > $\mathrm{res}≔\mathrm{map}\left(\mathrm{chain}↦\mathrm{IntersectionMultiplicity}\left(\mathrm{chain},F,R,'\mathrm{method}=\mathrm{tangentcone}'\right)\left[\right],\mathrm{dec}\right)$
 ${\mathrm{res}}{≔}\left[\left[{2}{,}{\mathrm{regular_chain}}\right]{,}\left[{2}{,}\right]\right]$