I'm having difficulty understanding how below integral is evaluated :
$$\int_0^1\frac{(1-y)^2}{2}+(1-y)y dy = \frac{-1(1-y)^3}{6}+\frac{y^2}{2}-\frac{y^3}{3}\bigg|^1_0$$
What are steps involved in this evaluation ?
For $\frac{(1-y)^2}{2}$ this appears to be evaluated as $\frac{(1-y)^{2+1}}{(3)2}$ but I'm how unsure - 1 is inserted ?
By the chain rule,
$$((ax+b)^k)'=(ax+b)'k(ax+b)^{k-1}=ak(ax+b)^k$$
and from this,
$$\int(ax+b)^kdx=\frac{(ax+b)^{k+1}}{a(k+1)}.$$
Try with $a=-1$.