Find $\int_0^{\sqrt{R^2-1}}g(x)-f(x)\,\mathrm dx$

121 Views Asked by At

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$$

2

There are 2 best solutions below

0
On BEST ANSWER

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}$$

4
On

Trick: Split the integral into three parts.

$$\begin{align}\int_0^{\sqrt{R^2-1}}g(x)-f(x)\,\mathrm dx&=\int_0^{\sqrt{R^2-1}}\sqrt{R^2-x^2}-1\,\mathrm dx\\&=\left(\int_0^{\sqrt{R^2-1}}\frac{\sqrt{R^2-x^2}}2-\frac{x^2}{\sqrt{R^2-x^2}}+\frac{a^2}{\sqrt{R^2-x^2}}\,\mathrm dx\right)-\sqrt{R^2-1}\\&=\left(\int_0^{\sqrt{R^2-1}}\left(\frac x2\right)'\sqrt{R^2-x^2}+\frac x2\left(\sqrt{R^2-x^2}\right)'+\frac{R^2}2\left(\sin^{-1}\frac xR\right)'\,\mathrm dx\right)-\sqrt{R^2-1}\\&=\left[\frac x2\sqrt{R^2-x^2}+\frac{R^2}2\sin^{-1}\frac xR\right]_0^{\sqrt{R^2-1}}-\sqrt{R^2-1}\\&=\frac{\sqrt{R^2-1}}2+\frac{R^2}2\sin^{-1}\left(\frac{\sqrt{R^2-1}}R\right)-\sqrt{R^2-1}\\&=\boxed{\frac{R^2}2\cos^{-1}\left(\frac1R\right)-\frac{\sqrt{R^2-1}}2}\end{align}$$