Question is to find area of part of sphere of radius $a$ centered at origin that lies inside cylinder $x^2+y^2=ax$.
By drawing figure I thought it is exactly half part of sphere so answer must be $2\pi a^2$ but actual answer has one additional term $-4a^2$. From where this term come?

Look at the figure:
The request volume is less than an half sphere. This is a classical exercize an I think that you can solve it starting from this symilar ( a bit more general) example: Calculate the volume of the solid bounded laterally.