Consider the assumptions
$Assumptions = 1 > v > 0 && y1 \[Element] Reals && y2 \[Element] Reals && k > 0 && 1 > t1 > 0
and define
y[t_, y1_, y2_, t1_] =
Piecewise[{{y1, 0 <= t <= t1}, {y2, t1 < t <= 1}}, 0];
and two different formulations of the same integral,
Assuming[t1 + v < 1,
Integrate[
Assuming[{0 <= t <= 1, t1 + v < 1},
Integrate[(1 +
Exp[-2 Integrate[y[s, y1, y2, t1]^2, {s, t - u - v, t - v}]])/
2, {u, 0, t}]], {t, v, t1 + v}]] // Simplify
and
Assuming[t1 + v < 1,
Integrate[
Assuming[{0 <= t <= 1, t1 + v < 1},
Integrate[(1 +
Exp[-2 Integrate[
y[s, y1, y2, t1]^2, {s, t - u - v, t - v}]])/2, {u, 0,
t - v}]], {t, v, t1 + v}]] +
Assuming[t1 + v < 1,
Integrate[
Assuming[{0 <= t <= 1, t1 + v < 1},
Integrate[(1 +
Exp[-2 Integrate[
y[s, y1, y2, t1]^2, {s, t - u - v, t - v}]])/2, {u, t - v,
t}]], {t, v, t1 + v}]] // Simplify
The two formulations differ for the region of integration, that in the second case is splitted in two parts, because the interval in u between 0 and t is splitted in [0,t-v]+[t-v,t],and then the integrals summed. Why Mathematica give me back two different expressions?
Assumingfunctions? Can't you combine them? – Sjoerd C. de Vries Jan 16 at 20:11Dyou use as a variable is a reserved word. – Sjoerd C. de Vries Jan 16 at 20:13Assuming. I changed the variable from D to u (in my code I use greek symbols, but to be more clear I changed in D the variable symbol without checking). Also I've added some necessary $Assumptions. The main point is still there. – Nicola Jan 16 at 21:07k>0which seems not needed. – b.gatessucks Jan 17 at 9:48