Thanks for any help in advance.
I'm currently working on a question which is as follows:
Find the area of the part of the sphere of radius a at the origin which is above the square in the (x,y) plane bounded by: $$ x = \frac{a}{\sqrt{2}} , x = -\frac{a}{\sqrt{2}} , y = \frac{a}{\sqrt{2}} , y = -\frac{a}{\sqrt{2}} $$ Hint for evaluating the integral: change to polar coordinates and evaluate the $r$ integral first.
I have found the surface element in terms of spherical polar coordinates, $a^2\sin\theta$, where $\theta$ is the angle from the $z$ axis, but i am having difficulty projecting it onto the square in the $(x,y)$ plane which does not agree with spherical coordinates.

I would calculate it like this (and let $a=1$, just multiply the result be $a^2$ at the end): denote by $A_c$ the surface of the spherical cap over $z\ge 1/\sqrt{2}$. Then it is easy to calculate in spherical coordinates ($0\le\theta\le\pi/4$, $0\le\phi\le 2\pi$) that $$ A_c=2\pi\int_0^{\pi/4}\sin\theta\,d\theta=2\pi\Big(1-\frac{1}{\sqrt{2}}\Big). $$ Now the seeking area is simply $$ A=\frac{A_\text{sphere}-4A_c}{2}=2\pi(\sqrt{2}-1). $$