How do you evaluate this integral? $$\int_0^{\sqrt{R^2-1}}g(x)-f(x)\,\mathrm dx$$ where $f(x)=1$ and $g(x)=\sqrt{R^2-x^2}$.
Wolfram tells me I exceeded my computational limit. Mathematica gives me a long answer which is very difficult to read (for me).
EDIT: I was told to consider instead $x=f(y)$, so: $$\int_0^{1}\sqrt{R^2-y^2}\,\mathrm dy$$
Using linearity, you can split the integral $$\begin{align*}\int_{0}^{\sqrt{R^2 - 1}} g(x) - f(x)~\mathrm{d}x &= \int_{0}^{\sqrt{R^2 - 1}} \sqrt{R^2 - x^2} - 1~\mathrm{d}x \\ &= \int_{0}^{\sqrt{R^2 - 1}} \sqrt{R^2 - x^2}~\mathrm{d}x - \int_{0}^{\sqrt{R^2 - 1}} 1~\mathrm{d}x\tag{1}\end{align*}$$ Let's first solve the first part of the integral using the substituion $$x = R\cdot\sin(u) \implies \mathrm{d}x = R\cdot\cos(u)~\mathrm{d}u$$ The limits change as follows $$0 = R\cdot\sin(u)\implies u = 0$$ and $$\sqrt{R^2 - 1} = R\cdot\sin(u)\implies u = \arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)$$ $$\begin{align*}\int_{0}^{\sqrt{R^2 - 1}} \sqrt{R^2 - x^2}~\mathrm{d}x &= \int_{0}^{\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)} R\cdot\cos(u)\sqrt{R^2 - R^2\cdot\sin^2(u)}~\mathrm{d}u \\ &= \int_{0}^{\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)} R\cdot\cos(u)\sqrt{R^2\cdot\cos^2(u)}~\mathrm{d}u \\ &= R^2\int_{0}^{\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)} \cos^2(u)~\mathrm{d}u \\ &= R^2\left(\frac{\cos(u)\cdot\sin(u)}{2} + \frac{u}{2}\right)\Bigg|_{0}^{\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)} \\ &=\frac{R^2}{2}\left(\left[\cos\Big({\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)\Big)}\cdot\sin\Big({\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)\Big)} \\ + \arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)\right]\right) \\ &= \frac{\sqrt{R^2 - 1}}{2} + \frac{R^2}{2}\cdot\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right)\tag{2}\end{align*}$$ And secondly, $$\int_{0}^{\sqrt{R^2 - 1}} 1~\mathrm{d}x = \sqrt{R^2 - 1}\tag{3}$$ Substitute $(2)$ and $(3)$ in $(1),$ $$\int_{0}^{\sqrt{R^2 - 1}} \sqrt{R^2 - x^2}~\mathrm{d}x - \int_{0}^{\sqrt{R^2 - 1}} 1~\mathrm{d}x = \frac{R^2}{2}\cdot\arcsin\left(\frac{\sqrt{R^2 - 1}}{R}\right) - \frac{\sqrt{R^2 - 1}}{2}$$