1)
I=\int x\sqrt{\left ( sin\frac{x}{2} +cos\frac{x}{2}\right )^2} dx
\int x{\left ( sin\frac{x}{2} +cos\frac{x}{2}\right )} dx
\int x\left sin\frac{x}{2}dx +\int xcos\frac{x}{2}\right dx
\texttt{using integration by parts we get }
\int x\left sin\frac{x}{2}dx =-2xcos\left (\frac{x}{2}\right )+ 4sin\left ( \frac{x}{2} \right )
\int x\left cos\frac{x}{2}dx =2xsin\left (\frac{x}{2}\right )+ 4cos\left ( \frac{x}{2} \right )
I =\int x\left cos\frac{x}{2}dx+\int x\left sin\frac{x}{2}dx=2xsin\left (\frac{x}{2}\right )+ 4cos\left ( \frac{x}{2} \right )-2xcos\left ( \frac{x}{2} \right )+4sin\left ( \frac{x}{2} \right )
\boxed{\boxed{I =2(x+2)sin\left (\frac{x}{2}\right ) -2(x-2)cos\left ( \frac{x}{2} \right )}}