a)\(\int \sin ^2\left (\frac{x}{2}\right)dx=\int \frac{1-\cos x }{2}dx=\frac{x}{2}-\frac{\sin x}{2}+c\)
b)\(\int \cos ^2 \left (\frac{x}{2}\right)dx=\int \frac{1+\cos x}{2}dx=\frac{x}{2}+\frac{\sin x}{2}+c\)
c) \(\int \frac{(2x+1)dx}{x^2+x+5}=\int \frac{d(x^2+x+5)}{x^2+x+5}=ln(x^2+x+5)+c\)
d)\(\int (2\tan x+ \cot x)^2dx=4\int \tan ^2 x+\int \cot^2 x+4\int dx=4\int \frac{1-\cos^2 x}{\cos^2 x}dx+\int \frac{1-\sin^2 x}{\sin^2 x}dx+4\int dx \)\( =4\int d(\tan x)-\int d(\cot x)-\int dx=4\tan x-\cot x-x+c\)