Команда Математики 13.2
Код:
j = Integrate[Log[RealAbs[x - y]], {x, a, b}, {y, c, d}, Assumptions -> a < b && c < d && a > 0 && c > 0] // InputForm
производит
Код:
Piecewise[{{(6*b*c - 3*c^2 - 6*b*d + 3*d^2 + 2*b^2*Log[b - c] - 4*b*c*Log[b - c] + 2*c^2*Log[b - c] -
2*b^2*Log[b - d] + 4*b*d*Log[b - d] - 2*d^2*Log[b - d])/4,
(a > 0 && a - b < 0 && a - c == 0 && c - d < 0 && b - d >= 0 && a > 0 && a - b < 0 && c > 0 && a - c > 0 &&
a - d == 0) || ( !(a > 0 && b > a && c == a && d > b) &&
!(a > 0 && b > a && c == a && Inequality[c, Less, d, LessEqual, b]) && !(a > 0 && b > a && c == b && d > c) &&
!(a > 0 && b > a && c > b && d > c) && !(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, LessEqual, b]) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && Inequality[c, Less, d, LessEqual, b]) && a > 0 &&
a - b < 0 && a - c <= 0 && b - c > 0 && c - d < 0 && b - d > 0)},
{(-3*a*c + 3*b*c + 3*a*d - 3*b*d - a^2*Log[a - c] + 2*a*c*Log[a - c] - c^2*Log[a - c] + b^2*Log[b - c] -
2*b*c*Log[b - c] + c^2*Log[b - c] + a^2*Log[a - d] - 2*a*d*Log[a - d] + d^2*Log[a - d] - b^2*Log[b - d] +
2*b*d*Log[b - d] - d^2*Log[b - d])/2, !(a > 0 && b > a && c == a && d > b) &&
!(a > 0 && b > a && c == a && Inequality[c, Less, d, LessEqual, b]) && !(a > 0 && b > a && c == b && d > c) &&
!(a > 0 && b > a && c > b && d > c) && !(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, LessEqual, b]) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && Inequality[c, Less, d, LessEqual, b]) && a > 0 &&
a - b < 0 && c > 0 && a - c > 0 && c - d < 0 && a - d > 0}, {((a - d)^2*(-3 + 2*Log[-a + d]))/4,
a > 0 && a - b < 0 && c > 0 && a - c > 0 && a - d < 0 && b - d >= 0 &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == a) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b])},
{(-3*a*c + 3*b*c + 3*a*d - 3*b*d - a^2*Log[a - c] + 2*a*c*Log[a - c] - c^2*Log[a - c] + b^2*Log[b - c] -
2*b*c*Log[b - c] + c^2*Log[b - c] - b^2*Log[b - d] + 2*b*d*Log[b - d] - d^2*Log[b - d] + a^2*Log[-a + d] -
2*a*d*Log[-a + d] + d^2*Log[-a + d])/2, a - b < 0 && a - d < 0 && b - d > 0 && a > 0 && a - c > 0 && c > 0},
{(-3*a*c + 3*b*c + 3*a*d - 3*b*d + b^2*Log[b - c] - 2*b*c*Log[b - c] + c^2*Log[b - c] - a^2*Log[-a + c] +
2*a*c*Log[-a + c] - c^2*Log[-a + c] - b^2*Log[b - d] + 2*b*d*Log[b - d] - d^2*Log[b - d] + a^2*Log[-a + d] -
2*a*d*Log[-a + d] + d^2*Log[-a + d])/2, a - b < 0 && a - c < 0 && b - d > 0 && c - d < 0 && a > 0 && b - c > 0},
{(-6*a*c + 3*c^2 + 6*a*d - 3*d^2 - 2*a^2*Log[-a + c] + 4*a*c*Log[-a + c] - 2*c^2*Log[-a + c] + 2*a^2*Log[-a + d] -
4*a*d*Log[-a + d] + 2*d^2*Log[-a + d])/4, (a > 0 && a - b < 0 && b - c == 0 && c - d < 0 && a > 0 &&
a - b < 0 && a - c <= 0 && b - c > 0 && b - d == 0) || (a > 0 && a - b < 0 && a - c < 0 && b - c > 0 &&
c - d < 0 && b - d >= 0 && !(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == a) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b]))},
{(3*b^2 - 6*a*c + 3*c^2 + 6*a*d - 6*b*d - 2*a^2*Log[-a + c] + 4*a*c*Log[-a + c] - 2*c^2*Log[-a + c] +
2*a^2*Log[-a + d] - 4*a*d*Log[-a + d] + 2*d^2*Log[-a + d] - 2*b^2*Log[-b + d] + 4*b*d*Log[-b + d] -
2*d^2*Log[-b + d])/4, a > 0 && a - b < 0 && a - c < 0 && b - c > 0 && b - d < 0 &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == a) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b])},
{(-3*a*c + 3*b*c + 3*a*d - 3*b*d + c^2*Log[(b - c)/(a - c)] + 2*a*c*Log[-a + c] + b^2*Log[-b + c] -
2*b*c*Log[-b + c] + a^2*Log[(a - d)/(a - c)] - 2*a*d*Log[-a + d] + d^2*Log[-a + d] - b^2*Log[-b + d] +
2*b*d*Log[-b + d] - d^2*Log[-b + d])/2, a > 0 && a - b < 0 && b - c < 0 && c - d < 0 &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == a) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b])},
{(-3*a*c + 3*b*c + 3*a*d - 3*b*d - a^2*Log[a - c] + 2*a*c*Log[a - c] - c^2*Log[a - c] + b^2*Log[b - c] -
2*b*c*Log[b - c] + c^2*Log[b - c] + a^2*Log[-a + d] - 2*a*d*Log[-a + d] + d^2*Log[-a + d] - b^2*Log[-b + d] +
2*b*d*Log[-b + d] - d^2*Log[-b + d])/2, a > 0 && a - b < 0 && c > 0 && a - c > 0 && b - d < 0},
{(-3*a*c + 3*b*c + 3*a*d - 3*b*d + b^2*Log[b - c] - 2*b*c*Log[b - c] + c^2*Log[b - c] - a^2*Log[-a + c] +
2*a*c*Log[-a + c] - c^2*Log[-a + c] + a^2*Log[-a + d] - 2*a*d*Log[-a + d] + d^2*Log[-a + d] - b^2*Log[-b + d] +
2*b*d*Log[-b + d] - d^2*Log[-b + d])/2, a - b < 0 && a - c < 0 && b - d < 0 && a > 0 && b - c > 0},
{((c - d)^2*(-3 + 2*Log[-c + d]))/4, (a > 0 && a - b < 0 && a - c == 0 && c - d < 0 && b - d >= 0 &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == a) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b])) ||
( !(a > 0 && b > a && c == a && d > b) && !(a > 0 && b > a && c == a && Inequality[c, Less, d, LessEqual, b]) &&
!(a > 0 && b > a && c == b && d > c) && !(a > 0 && b > a && c > b && d > c) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, LessEqual, b]) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && Inequality[c, Less, d, LessEqual, b]) && a > 0 &&
a - b < 0 && a - c <= 0 && b - c > 0 && b - d == 0)}, {((c - d)^2*(-3 + 2*Log[-c + d]))/2,
a - c == 0 && b - d == 0 && a - b < 0 && c - d < 0 && a > 0 && b - c > 0},
{(3*b*c - 3*b*d - 3*c*d + 3*d^2 + b^2*Log[b - c] - 2*b*c*Log[b - c] + c^2*Log[b - c] - b^2*Log[b - d] +
2*b*d*Log[b - d] - d^2*Log[b - d] - c^2*Log[-c + d] + 2*c*d*Log[-c + d] - d^2*Log[-c + d])/2,
!(a > 0 && b > a && c == a && d > b) && !(a > 0 && b > a && c == a && Inequality[c, Less, d, LessEqual, b]) &&
!(a > 0 && b > a && c == b && d > c) && !(a > 0 && b > a && c > b && d > c) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, LessEqual, b]) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, Less, c, Less, b] && Inequality[c, Less, d, LessEqual, b]) && a > 0 &&
a - b < 0 && c > 0 && a - c > 0 && a - d == 0},
{(-3*a*c + 3*c^2 + 3*a*d - 3*c*d - a^2*Log[-a + c] + 2*a*c*Log[-a + c] - c^2*Log[-a + c] + a^2*Log[-a + d] -
2*a*d*Log[-a + d] + d^2*Log[-a + d] - c^2*Log[-c + d] + 2*c*d*Log[-c + d] - d^2*Log[-c + d])/2,
a > 0 && a - b < 0 && b - c == 0 && c - d < 0 && !(a > 0 && b > a && Inequality[0, Less, c, Less, a] &&
d == a) && !(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b])},
{(3*b*c - 3*c^2 - 3*b*d + 3*c*d + b^2*Log[b - c] - 2*b*c*Log[b - c] + c^2*Log[b - c] - b^2*Log[b - d] +
2*b*d*Log[b - d] - d^2*Log[b - d] + c^2*Log[-c + d] - 2*c*d*Log[-c + d] + d^2*Log[-c + d])/2,
a - c == 0 && a - b < 0 && b - d > 0 && c - d < 0 && a > 0 && b - c > 0},
{(-3*a*c + 3*a*d + 3*c*d - 3*d^2 - a^2*Log[a - c] + 2*a*c*Log[a - c] - c^2*Log[a - c] + a^2*Log[-a + d] -
2*a*d*Log[-a + d] + d^2*Log[-a + d] + c^2*Log[-c + d] - 2*c*d*Log[-c + d] + d^2*Log[-c + d])/2,
b - d == 0 && a - b < 0 && a - d < 0 && a > 0 && a - c > 0 && c > 0},
{(-3*a*c + 3*a*d + 3*c*d - 3*d^2 - a^2*Log[-a + c] + 2*a*c*Log[-a + c] - c^2*Log[-a + c] + a^2*Log[-a + d] -
2*a*d*Log[-a + d] + d^2*Log[-a + d] + c^2*Log[-c + d] - 2*c*d*Log[-c + d] + d^2*Log[-c + d])/2,
b - d == 0 && a - b < 0 && a - c < 0 && c - d < 0 && a > 0 && b - c > 0},
{(3*b*c - 3*c^2 - 3*b*d + 3*c*d + b^2*Log[b - c] - 2*b*c*Log[b - c] + c^2*Log[b - c] - b^2*Log[-b + d] +
2*b*d*Log[-b + d] - d^2*Log[-b + d] + c^2*Log[-c + d] - 2*c*d*Log[-c + d] + d^2*Log[-c + d])/2,
a - c == 0 && a - b < 0 && b - d < 0 && a > 0 && b - c > 0},
{(3*b^2 - 3*c^2 - 6*b*d + 6*c*d - 2*b^2*Log[-b + d] + 4*b*d*Log[-b + d] - 2*d^2*Log[-b + d] + 2*c^2*Log[-c + d] -
4*c*d*Log[-c + d] + 2*d^2*Log[-c + d])/4, a > 0 && a - b < 0 && a - c == 0 && b - d < 0 &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == a) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d == b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && d > b) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[a, Less, d, Less, b]) &&
!(a > 0 && b > a && Inequality[0, Less, c, Less, a] && Inequality[c, Less, d, Less, a]) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d == b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && d > b) &&
!(a > 0 && b > a && Inequality[a, LessEqual, c, Less, b] && Inequality[c, Less, d, Less, b])}}, 0]
-- 14.03.2023, 19:41 --Далее, выполняя команду
Код:
Limit [j, b -> a, Direction -> "FromAbove",
Assumptions -> c < d && a > 0 && c > 0]
мой слабый комп сталкивается с проблемами.
-- 14.03.2023, 19:50 --Нет проблем с конкретными числовыми значениями, например,
Код:
Integrate[Log[RealAbs[x - y]], {x, 0, 1}, {y, 0, 1}]
-3/2
Integrate[Log[RealAbs[x - y]], {x, 0, 1/100}, {y, 0, 1}]
(-300 + 19602 ArcCoth[199] - Log[100])/20000
N[%]
-0.0103051