lunes, 31 de julio de 2023

Another Identity on Triangle Areas Arising from Reflection

In a previous post, we proved an identity about triangle areas arising from reflection. In this occasion, we prove another interesting identity associated with triangle areas.

Theorem. Let $ABC$ be a triangle. Denote $D$, $E$ and $F$ arbitrary points on sides $BC$, $AC$ and $AB$, respectively. Let $A'$ be the reflection of $A$ with respect to $D$. Define $B'$ and $C'$ similarly. Denote $A''$ the reflection of $A'$ with respect to the midpoint of $BC$. Define $B''$ and $C''$ similarly. Then 

$$[A'B'C']-[A''B''C''] = 3[ABC].$$

The brackets $[\, ]$ represent the area of the enclosed figure.

Lemma 1. $[A'B'C]=[ABA''B'']$, $[A'C'B]=[ACA''C'']$ and $[B'C'A]=[BCB''C'']$.

Proof. Observe that the diagonals of $BCB'C'$ and $BCEF$ are in a 2:1 ratio, and the angle between them remains unchanged. Hence, $[BCB'C']=4[BCEF]$. This is easily deduced from the formula for the area of a quadrilateral $K=\frac12pq\sin{\theta}$, where the lengths of the diagonals are $p$ and $q$, and the angle between them is $\theta$.

Also, observe that $AF$ and $BF$ are medians of triangles $\triangle{ACC'}$ and $\triangle{BCC'}$, respectively. It follows that $[ACF]=[AC'F]$ and $[BCF]=[BC'F]$, and then $[ABC]=[ABC']$. Analogously, $[ABC]=[ACB']=[BCA']$. Now, it turns out that

$$[AB'C']=[BCB'C']-3[ABC]=4[BCEF]-3[ABC]=4[ABC]-4[AEF]-3[ABC]=[ABC]-4[AEF].\tag{1}$$

Let $H$ and $I$ be the midpoints of $AC$ and $AB$, respectively. Then

$$[ABC]=4[AHI]=4[AEF]+4[HEFI].\tag{2}$$

From $(1)$ and $(2)$ follows that $[AB'C']=4[HEFI]$. Now, observe that $BC$, $BB''$, and $CC''$ are the homothetic images with a scale factor of 2 of $IH$, $EH$, and $FI$ with respect to $A$, $B'$, and $C'$, respectively. It follows that $BCC''B''$ and $HEFI$ are homothetic with $[BCC''B'']=4[HEFI]$, therefore,

$$[AB'C']=[BCC''B''].$$

$\square$

A similar reasoning must show that $[A'B'C]=[ABB''A'']$, and for the case of $\triangle{A'C'B}$ and $ACA''C''$ where $F$ and $D$ are on opposite sides of the line $GI$, where $G$ is the midpoint of the side $BC$, only a minor adjustment will be required.

$\color{blue}{[A'B'C]=[ABA''B'']}$, $\color{red}{[A'C'B]=[ACA''C'']}$ and $\color{green}{[B'C'A]=[BCB''C'']}$.

Remark. Notice lemma 1 gives us an alternative way to construct a triangle with an area equal to a given quadrilateral, as long as it is not a rectangle or a square.

Back to the main problem

Notice that 

$$[A'B'C']=[A'C'B'C]-[A'B'C]=4[ABC]+[AB'C']+[BA'C']-[A'B'C].$$

But $[AB'C']=[ABC]-4[AEF]$ and similarly $[BA'C']=[ABC]-4[BDF]$ and $[A'B'C]=4[CDE]-[ABC]$, so

$$[A'B'C']= 7[ABC]-4[AEF]-4[BDF]-4[CDE].\tag{3}$$

As $HIFE$ and $BCC''B''$ are inversely homothetic with scale factor $-2$, then so are segments $EF$ and $B''C''$ and similarly for $ED$ and $A''C''$ and $FD$ and $A''C''$, meaning that triangles $\triangle{DEF}$ and $\triangle{A''B''C''}$ are also inversely homothetic with factor $-2$ and then

$$[A''B''C'']=4[DEF]=4[ABC]-4[AEF]-4[BDF]-4[CDE].\tag{4}$$

Substracting $(4)$ from $(3)$ we get 

$$[A'B'C']-[A''B''C'']=3[ABC].$$

$\square$

martes, 18 de julio de 2023

A curious family of integrals that give rational multiples of $\pi$

 I have noticed experimentally that:

$$\int_0^1 \frac{\color{red}{x}}{x^4+2x^3+2x^2-2x+1} \,dx=\color{blue}{\frac{\pi}{8}},\tag{1}$$

$$\int_0^1 \frac{\color{red}{1-x^2}}{x^4+2x^3+2x^2-2x+1} \, dx=\color{blue}{\frac{\pi}{4}},\tag{2}$$

$$\int_0^1 \frac{\color{red}{1+x-x^2}}{x^4+2x^3+2x^2-2x+1} \, dx =\color{blue}{\frac{3\pi}{8}}.\tag{3}$$

So slight variations in the numerator always seem to produce something like $n\pi$, where $n$ is a rational number.

At MathSE I have asked what the exact relationship is between $n$ and the numerator of the integrand, to which Quanto has responded with a general formula:

$$\int_{0}^{1} \frac{ax^2 +b x + c}{x^4+2x^3+2x^2-2x+1} \, dx=\frac\pi8\color{green}{(c+b-a)}+\frac\pi{3\sqrt3}\color{green}{(a+c)}.\tag{4}$$

However, is it necessary for the denominator to remain fixed? Not really. The following integral is formula $(34)$ in this list of $\pi$ formulas:

$$\int_0^1 \frac{\color{red}{16x-16}}{x^4-2x^3+4x-4}\,dx=\color{blue}{\pi}.\tag{5}$$

Notice that the denominator is different. But again, a slight variation in the numerator and it still produces something like $n\pi$:

$$\int_0^1 \frac{\color{red}{x^2-x-1}}{x^4-2x^3+4x-4}\,dx=\color{blue}{\frac{3\pi}{16}}.\tag{6}$$

More generally, 

$$\int_{0}^{1} \frac{ax^2+bx+c}{x^4-2x^3+4x-4}\,dx=\frac{\pi}{16}\color{green}{(2a-c)}+\frac{\ln{(3-\sqrt8)}}{\sqrt32}\color{green}{(b+c)}+\frac{\ln{(3-\sqrt8)}}{\sqrt8}\color{green}{a}.\tag{7}$$

From $(7)$, we can deduce that the integral will yield rational multiples of $\pi$ when $b$ and $c$ are opposite to each other and $a=0$. However, this formula is still far from being the ultimate generalization since it does not take into account the coefficients of the denominator. The fact that the denominator is not the same in $(4)$ and $(7)$ suggests that a further generalization is possible.

A more intimidating integral
Doing some arithmetic with the integrands, we can obtain more intimidating integrands that still yield $\pi$. The following one comes from adding integrands (2) and (5) with different denominators:

$$\int_{0}^{1} \frac{2(1-x)(x^5-5x^4-10x^3-4x^2+8x-8)}{x^8-2x^6-2x^5+9x^4-2x^3-16x^2+12x-4}=\pi.$$

Addendum. I wonder if it is possible to characterize the integrand $\frac{P(x)}{Q(x)}$ in such a way that by simple inspection we can say $I=n\pi$? Or in other words, what should be the relationship between the coefficients of the numerator and the denominator for the integral to yield $n\pi$?

jueves, 13 de julio de 2023

An integral involving the golden ratio

 Several interesting integrals involving the golden ratio can be found at MathSE. Here I present another one that I haven't seen anywhere else on the web. I'm referring to this one:

$$\int_\frac{\pi}{2}^{\pi} \frac{\sqrt{5}}{\sin{x}-\cot{x}}\,dx=4\ln\phi.\tag{1}$$

I discovered $(1)$ serendipitously while exploring the advantages of using the sine half-angle substitution

Proof. Let's start by evaluating the indefinite integral:

$$\int \frac{1}{\sin{x}-\cot{x}}\,dx=\int \frac{\sin{x}}{\sin^2{x}-\cos{x}}\,dx=\int -\frac{\sin{x}}{\cos^2{x}+\cos{x}-1}\,dx.$$

Substitute $u=\cos{x} \rightarrow du=-\sin{x}\,dx$.

$$\int \frac{1}{\sin{x}-\cot{x}}\,dx=\int \frac{1}{u^2+u-1}\,du.$$

Factoring the denominator and performing partial fraction decomposition,

$$\begin{aligned}\int \frac{1}{u^2+u-1}\,du&=\frac{2}{\sqrt{5}} \int \frac{1}{2u-\sqrt{5}+1}\,du- \frac{2}{\sqrt{5}} \int \frac{1}{2u+\sqrt{5}+1}\,du\\&= \frac{1}{\sqrt{5}}\left(\ln{(2u-\sqrt{5}+1)}-\ln{(2u+\sqrt{5}+1)}\right)+C.\end{aligned}$$

Undoing the substitution $u=\cos{x}$, taking into account that $2\phi=\sqrt{5}+1$ and $-\sqrt{5}+1=2-2\phi$, and applying properties of logarithms,

$$\sqrt{5}\int \frac{1}{\sin{x}-\cot{x}}\,dx=\ln{\frac{\left|\cos{x}+1-\phi\right|}{\cos{x}+\phi}}+C.$$

Now, evaluating the definite integral,

$$\begin{aligned}\sqrt{5}\int_\frac{\pi}{2}^{\pi} \frac{1}{\sin{x}-\cot{x}}\,dx&=\ln{\frac{\left|\cos{x}+1-\phi\right|}{\cos{x}+\phi}}\\&=\ln{\frac{\phi}{\left|1-\phi\right|}}-\ln{\frac{\left|1-\phi\right|}{\phi}}\\&=\ln{\left(\frac{\phi}{\phi-1}\right)}-\ln{\left(\frac{\phi-1}{\phi}\right)}\\&=2\ln{\left(\frac{\phi}{\phi-1}\right)}.\end{aligned}$$


$$\int_\frac{\pi}{2}^{\pi} \frac{\sqrt{5}}{\sin{x}-\cot{x}}\,dx=4\ln{\phi}.$$

Other examples:

$$\int_{0}^{\frac{\pi}{2}} \frac{\sqrt{5}}{\csc{x}-\tan{x}}\,dx=\ln{\phi}.$$

The golden ratio is a famous ratio, but have you heard of the silver ratio, $\phi_s$? Well, the following integral is related to it. I invite you to prove it for yourself.

$$\int_{0}^\frac{3\pi}{2} \frac{\sqrt{2}}{\sin{x}-\cos{x}}\,dx=2\ln{\phi_s}.$$

domingo, 9 de julio de 2023

Sine half-angle substitution

 If you are a student of integral calculus, it is highly likely that you have come across or will come across the famous Weierstrass substitution, which is very useful for converting rational expressions involving trigonometric functions into ordinary rational expressions involving $t$, where $t=\tan{\frac12{x}}$. The general transformation formula is as follows:

$$\int f(\sin{x},\cos{x})\,dx =  \int f\left(\frac{2t}{1+t^2}, \frac{1-t^2}{1+t^2}\right)\frac{2dt}{1+t^2}.$$

In this note, we introduce another substitution as a companion to the Weierstrass substitution that can transform certain rational expressions of trigonometric functions into simpler ordinary rational expressions than the Weierstrass substitution. For instance, it would be useful when a common linear factor of $\sin{x}$ appears in the numerator or denominator of the integrand. The general transformation formula is given by:

$$\int f(\sin{x},\cos{x})\,dx =  \int f(2\sqrt{s-s^2}, 1-2s)\frac{ds}{\sqrt{s-s^2}}.$$

Here $s=\sin^2{\frac12x}$. 

Derivation

Using the double-angle formulas and the Pythagorean identity, one gets
$$\sin{x}=2\sin{\frac12x}\cos{\frac12x}=2\sin{\frac12x}\sqrt{1-\sin^2{\frac12x}}=2\sqrt{\sin^2{\frac12x}-\sin^4{\frac12x}}=2\sqrt{s-s^2},$$
$$\cos{x}=1-2\sin^2{\frac12x}=1-2s.$$
Finally, since $s=\sin^2{\frac12x}$, differentiation rules imply
$$ds=\sin{\frac12x}\cos{\frac12x}\,dx=\frac{\sin{x}}{2}\,dx,$$
and thus,
$$dx=\frac{ds}{\sqrt{s-s^2}}.$$

Example 1
By applying the sine half-angle substitution and simplifying,
$$\int \frac{\sin{x}}{\sin^2{x}+2\cos{x}}\,dx=\int \frac{1}{1-2s^2}\,ds.$$
$$\int \frac{1}{1-2s^2}\,ds=\frac{\tanh^{-1}{(\sqrt{2}s)}}{\sqrt{2}}+C=\frac{\tanh^{-1}{(\sqrt{2}\sin^2{\frac12x})}}{\sqrt{2}}+C.$$
The advantage of this substitution is evident when comparing it to the solution provided in this integral calculator (which solution, by the way, is equivalent to the one given here) or when using the Weierstrass substitution.

Example 2 
By applying the sine half-angle substitution,
$$\int \frac{1}{\sin^3{x}}\,dx=\frac18\int \frac{1}{(s-s^2)^2}\,ds.$$
Using partial fraction decomposition, 
$$\frac18\int \frac{1}{(s-s^2)^2}\,ds=\frac18\int \left(\frac{1}{s}+\frac{1}{s^2}-\frac{2}{s-1}+\frac{1}{(s-1)^2}\right)\,ds=\frac14\ln{\left|\frac{s}{1-s}\right|}+\frac18\left(\frac{1}{1-s}-\frac{1}{s}\right)+C.$$
Substituting $s$ by $\sin^2{\frac12x}$, we have
$$\frac18\int \frac{1}{(s-s^2)^2}\,ds=\frac14\ln{\left|\tan^2{\frac12x}\right|}+\frac18\left(\frac{1}{\cos^2{\frac12x}}-\frac{1}{\sin^2{\frac12x}}\right)+C=\frac12\left(\ln{|\tan{\frac12x}|}-\frac{\cos{x}}{\sin^2{x}}\right)+C.$$
A solution using integration by parts is given at Integrals For You