I want to integrate one piecewise functions as following,
Assuming[ {t1 ∈ Reals && t1 > 0, t ∈ Reals && t > 0},
Integrate[
Piecewise[{{1, x > 0 && x < t1},
{-1, x > t1 && x < 2*t1},
{1, x > 2*t1 && x < 3*t1},
{1 - 1, x > 3*t1 && x < 4*t1},
{0, True}}, x], {x, 0, t}]]
I have assumed t1>0 and why the output is as the picture shown?
Comments
Post a Comment