Tuesday, 22 September 2015

$|z-1|\leq \bigg| |z|-1\bigg|+|z| |Arg\:z|$

For a non-zero $z$ and $-\pi<Arg\:z\leq \pi$, show that $$|z-1|\leq \bigg| |z|-1\bigg|+|z| |Arg\:z|.$$


$$\begin{align}|z-1|&=\bigg|z-|z|+|z|-1\bigg|\\
&\leq \bigg|z-|z|\bigg|+\bigg||z|-1\bigg|\\
&=|z||\cos\theta+i\sin\theta-1|+\bigg||z|-1\bigg|\\
&=|z|\sqrt{(\cos\theta-1)^2+\sin^2\theta}+\bigg||z|-1\bigg|\\
&=|z|\left|2\sin\frac{\theta}{2}\right|+\bigg||z|-1\bigg|\\
&\leq |z||Arg\:z|+\bigg||z|-1\bigg|\end{align}$$ since $(\cos\theta-1)^2+\sin^2\theta=(1-2\sin^2\dfrac{\theta}{2}-1)^2+4\sin^2\dfrac{\theta}{2}\cos^2\dfrac{\theta}{2}=4\sin^2\dfrac{\theta}{2}$ and $\bigg|\sin\dfrac{\theta}{2}\bigg|<\bigg|\dfrac{\theta}{2}\bigg|$.

Geometric interpretation


Take $|z|>1$. Consider the triangle with vertices $1,z,|z|$. By the triangle inequality, we have $|z-1|\leq \bigg|z-|z|\bigg|+\bigg||z|-1\bigg|$. Recall the arc length formula $s=r\theta$. Here, $|z| |Arg\:z|$ is actually the arc length joining $z$ and $|z|$, which is larger than the chord joining the two points. Therefore, the inequality holds.

Saturday, 19 September 2015

Discovery work in analysis

In this post, we will deal with statements of the form $$\forall x\;\exists y \bullet P(x,y).$$ To prove these statements, we need some preliminary 'discovery work' before embarking on the proof.

Convergence of sequences
Definition: The sequence $(a_n)$ converges to $l$ if, for any $\epsilon>0$, there exists $N\in \Bbb Z^+$ such that $$n>N \Rightarrow |a_n-l|<\epsilon.$$ We can write either $a_n\to l$ as $n\to \infty$ or $\lim\limits_{n\to \infty}a_n=l$.

Example
A sequence $(a_n)$ is defined by $a_n=\dfrac{3n^2-4n}{(n+1)(n+2)}$ for $n\in \Bbb Z^+$. Show that $\lim\limits_{n\to \infty}a_n=3$.

The definition of convergence involves two quantifiers and is of the form $$\forall \epsilon\;\exists N \bullet P(\epsilon,N)$$ where $P(\epsilon,N)$ is a propositional function and the universes for $\epsilon$ and $N$ are $\Bbb R^+$ and $\Bbb Z^+$ respectively. The structure of the proof starts with an arbitrary $\epsilon$ (in its universe) and then selects a particular $N$ (in its universe) which may depend on $\epsilon$. To complete the proof, we need to show that the propositional function $P(\epsilon,N)$ is satisfied for the arbitrary $\epsilon$ and particular $N$.

We first start by the definition. We need to find a positive integer $N$ such that for all $n>N$, $$|a_n-l|=\left|\frac{3n^2-4n}{(n+1)(n+2)}-3 \right|<\epsilon.$$ But how? We can manipulate $|a_n-l|$ until it is less than any positive $\epsilon$: $$\begin{align}\left| \dfrac{3n^2-4n}{(n+1)(n+2)}-3 \right|&=\left| \dfrac{3n^2-4n-3(n+1)(n+2)}{(n+1)(n+2)} \right|\\&=\left| \dfrac{3n^2-4n-(3n^2+9n+6)}{(n+1)(n+2)} \right|\\&=\left| \dfrac{-13n-6}{(n+1)(n+2)} \right|\\&=\dfrac{13n+6}{(n+1)(n+2)}.\end{align}$$ We want to show $\dfrac{13n+6}{(n+1)(n+2)}$ is less than or equal to some simple fraction which can still be made less than $\epsilon$. Since replacing the numerator with a larger value and replacing the denominator with a smaller value both increases the size of the expression respectively, we have $$\dfrac{13n+6}{(n+1)(n+2)}\leq \dfrac{19n}{(n+1)(n+2)}\leq \dfrac{19n}{n^2}=\dfrac{19}{n}.$$ Now to ensure $\dfrac{19}{n}<\epsilon$, we can take $n>\dfrac{19}{\epsilon}$. But we are not done yet. Recall that the definition requires $N$ to be a positive integer. To fix this, we take $N$ to be the integer part or floor of $\dfrac{19}{\epsilon}$, which is defined to be the largest integer less than or equal to $\dfrac{19}{\epsilon}$ and denoted by $\lfloor \dfrac{19}{\epsilon} \rfloor$. We can now proceed to the proof.

Proof: Let $\epsilon>0$ and $N=\lfloor \dfrac{19}{\epsilon}\rfloor \in \Bbb Z^+$. Then for all integers $n>N$, we have $$\begin{align}\left| \dfrac{3n^2-4n}{(n+1)(n+2)}-3 \right|&=\left| \dfrac{3n^2-4n-3(n+1)(n+2)}{(n+1)(n+2)} \right|\\&=\left| \dfrac{3n^2-4n-(3n^2+9n+6)}{(n+1)(n+2)} \right|\\&=\left| \dfrac{-13n-6}{(n+1)(n+2)} \right|\\&=\dfrac{13n+6}{(n+1)(n+2)}\\ &\leq \dfrac{13+6n}{(n+1)(n+2)}\\&\leq \dfrac{19n}{n^2}\\&=\dfrac{19}{n}\\&< \epsilon\quad \text{since}\;n>\dfrac{19}{\epsilon}.\end{align}$$ Therefore $\lim\limits_{n\to \infty}\dfrac{3n^2-4n}{(n+1)(n+2)}=3$.

Limits of functions
Definition: Let $f:A\subset \Bbb R \to B\subset \Bbb R$. Let $a\in A$. Then $f(x)$ tends to a limit $l$ as $x$ tends to $a$ if, for any $\epsilon>0$, there exists $\delta>0$ such that $$0<|x-a|<\delta \Rightarrow |f(x)-l|<\epsilon.$$ We can write either $f(x)\to l$ as $x\to a$ or $\lim\limits_{x\to a}f(x)=l$.

Example
Show that $\lim\limits_{x\to 2}2x^2-5x=-2$.

We need to ensure that $|f(x)-l|=|2x^2-5x+2|$ is less than any specified positive $\epsilon$ by taking $x$ such that $0<|x-2|<\delta$. So we consider $|2x^2-5x+2|$: $$|2x^2-5x+2|=|(x-2)(2x-1)|=|x-2||2x-1|.$$ We can control the size of $|x-2|$ since we can choose $\delta$ such that $|x-2|<\delta$. As for $|2x-1|$, we can rewrite it in terms of $|x-2|$ using the triangle inequality: $$\begin{align}|2x-1|&=|2(x-2)+3|\\ &\leq |2(x-2)|+|3|\\ &=2|x-2|+3.\end{align}$$ Therefore $$|2x^2-5x+2|=|x-2||2x-1|\leq |x-2|(2|x-2|+3).$$ Say $|x-2|<1$. Then $2|x-2|+3<5$. If, in addition, $|x-2|<\dfrac{\epsilon}{5}$, then $|x-2|(2|x-2|+3)$ will be less than $\epsilon$. We are now ready to start the proof.

Proof: Let $\epsilon>0$ and $\delta=\min\{1,\dfrac{\epsilon}{5}\}$. Then $$0<|x-2|<\delta \Rightarrow |x-2|<1 \wedge |x-2|<\frac{\epsilon}{5}\\ \begin{align}\Rightarrow |2x^2-5x+2|&=|x-2||2x-1|\\ &\leq |x-2|(2|x-2|+3)\\ &<5|x-2|\\ &<\epsilon \end{align}$$ Therefore $\lim\limits_{x\to 2}2x^2-5x=-2$.

Remark: The choice of $\delta=\min\{1,\dfrac{\epsilon}{5}\}$ is arbitrary. Choosing $\delta=\min\{\dfrac{1}{2},\dfrac{\epsilon}{4}\}$ will also work.

Saturday, 12 September 2015

Convergence of $\sum_{n=2}^\infty \frac{1}{n\ln n(\ln(\ln n))^2}$

Prove the series $$\sum_{n=2}^\infty \frac{1}{n\ln n(\ln(\ln n))^2}$$ converges.



Since the general term is a positive and decreasing sequence, by the integral test, the series behaves as the following integral: $$\int_3^\infty \frac{dx}{x\ln x (\ln(\ln x))^2}.$$By a change of variable $$u=\ln(\ln x),\quad du=\frac{dx}{x\ln x},$$ we have $$\int_3^\infty \frac{dx}{x\ln x (\ln(\ln x))^2}=\int_{\ln(\ln 3)}^\infty \frac{du}{u^2}=-\frac{1}{u}\bigg|_{\ln(\ln 3)}^{\infty}=\frac{1}{\ln(\ln 3)}.$$ So it is convergent. [We start with $n=3$ to avoid the pole at $x=e$ where the integral may diverge.]

We can also apply the Cauchy condensation test. $$\sum_n a_n\;\text{converges iff}\;\sum_n 2^n a_{2^n}\;\text{converges}.$$ Setting $a_n=\dfrac{1}{n\ln n(\ln(\ln n))^2}$, we have $$\sum_n 2^n a_{2^n}=\sum_{n=2}^\infty \frac{2^n}{2^n(n\ln 2)(\ln n+\ln(\ln 2))^2}\leq \frac{1}{\ln 2}\sum_{n=2}^\infty \frac{1}{n\ln^2 n}.$$ Similarly, for $\sum\limits_{n=2}^\infty\dfrac{1}{n\ln^2 n}$, we have $$\sum_{n=2}^\infty \frac{2^n}{2^n\ln^2(2^n)}=\frac{1}{\ln^2 2}\sum_{n=2}^\infty \frac{1}{n^2}.$$ So the series is convergent.

Friday, 11 September 2015

Find $\min x^2+y^2+z^2$

If $ax+by+cz=k$, prove that the minimum value of $x^2+y^2+z^2$ is $\dfrac{k^2}{a^2+b^2+c^2}$.



Since $$(x^2+y^2+z^2)(a^2+b^2+c^2)-(ax+by+cz)^2=(ay-bx)^2+(bz-cy)^2+(cx-az)^2\geq 0,$$ we have $$x^2+y^2+z^2\geq \frac{(ax+by+cz)^2}{a^2+b^2+c^2}=\frac{k^2}{a^2+b^2+c^2}.$$
Alternatively, we can use geometric arguments. The normal of $ax+by+cz=k$ is $\vec{n_1}=(a,b,c)$. The normal of $x^2+y^2+z^2$ is $\vec{n_2}=(2x,2y,2z)$. Applying Cauchy Schwartz inequality for $\vec{n_1}$ and $\vec{n_2}$: $$\vec{n_1}\cdot\vec{n_2}\leq \lVert \vec{n_1}\rVert \lVert \vec{n_2}\rVert,$$ we have $$2(ax+by+cz)\leq 2\sqrt{a^2+b^2+c^2} \sqrt{x^2+y^2+z^2},$$ which means $$x^2+y^2+z^2\geq \dfrac{k^2}{a^2+b^2+c^2}.$$

Thursday, 10 September 2015

Sketch $|1-3x|+|2-2x|+|3-x|$

Sketch the function $$f(x)=|1-3x|+|2-2x|+|3-x|,x\in \Bbb R.$$


$$f(x)=|1-3x|+|2-2x|+|3-x|=|1-3x|+2|1-x|+|3-x|$$First notice that when $x<0$,$f(x)=(1-3x)+(2-2x)+(3-x)=6-6x$.
Looking at the first term (within the absolute sign), we know when $x\leq \dfrac{1}{3}$,$f(x)=6-6x$.
Now, look at the other two terms, when $1\leq x\leq 3,f(x)=-(1-3x)-2(1-x)+(3-x)=4x$.
When $x\geq 3, f(x)=-(1-3x)-2(1-x)-(3-x)=-6+6x$.
It remains to check the interval $[\dfrac{1}{3},1]$. There $f(x)=-(1-3x)+2(1-x)+(3-x)=4$.

We conclude that $$f(x)=\begin{align}\begin{cases}6-6x,\quad &x\leq \dfrac{1}{3}\\ 4,\quad &\dfrac{1}{3}\leq x\leq 1\\ 4x,\quad &1\leq x\leq 3\\ -6+6x,\quad &x\geq 3. \end{cases}\end{align}$$

Remark: If we set $f(x)$ to be zero, we can have the 'critical points' $\dfrac{1}{3},1,3$. This naturally forms four regions. $x\leq \dfrac{1}{3}, \dfrac{1}{3}\leq x\leq 1, 1\leq x\leq 3, x\geq 3$.

In fact, this problem is related to distance. The Manhattan distance $d_M$ between points $P(x_1,y_1)$ and $Q(x_2,y_2)$ in the plane is defined by $$d_M(P,Q)=|x_1-x_2|+|y_1-y_2|.$$ The $d_M$ distance is the sum of the horizontal and vertical distances between the points like 'three blocks west and two blocks north'.

Here's an extra problem that can be solved using the notion of distance.

If $a<b<c<d$ and $x\in \Bbb R$, find the least value of the function $$f(x)=|x-a|+|x-b|+|x-c|+|x-d|.$$


It turns out we don't need to use derivatives for this type of problems. The value of $f(x)$ is the sum of the distances from $x$ to $a,b,c,d$. Imagine we start $x$ at the left of $a$, and move it to the right. Initially all the four terms are decreasing since $x$ is now closer to the other points. When $x$ passes $a$ and starts moving to $b$, the distance from $x$ to $a$ increases while that from $x$ to $b$ decreases at the same rate, so $|x-a|+|x-b|$ is constant. The distances from $x$ to $c$ and $d$ are decreasing, so $f(x)$ is still decreasing. We can treat the other intervals similarly.

Overall, the function is decreasing to the left of b, constant on $[b,c]$, and increasing to the right of $c$, so we know the minimum value is on $[b,c]$. When $b\leq x\leq c$, the sum of distances from $x$ to $a$ and $d$ is $d-a$, and that from $x$ to $b$ and $c$ is $c-b$. Therefore, the total distance is $c+d-a-b$.

More to read
The median minimises the sum of absolute deviations