Let $\pi_{i}:\mathbb{R}^n \to \mathbb{R}$ such $\pi (\bar{x})=x_{i}$ for every $\bar{x}=(x_{1},...x_{n}) \in \mathbb{R}^n$. I want to prove that for every $i \in \lbrace 1,2,....n \rbrace$ the $i$-th projection, $\pi_{i}$ is differentiable in every $\bar{x} \in \mathbb{R}^n$ and calculate its differential.
Im wondering if the particular case I did for $\mathbb{R}^2$ is right? Any help proving the general case or alternate proofs will be apreciated.
Here is how I attacked this problem:
Trying to prove this for $\pi_{1,2}: \mathbb{R}^2 \to \mathbb{R}$ to get the idea and then generalize to $\mathbb{R}^n$. Following the Marsden-Tromba calculus book definition I should prove for an abritrary $(x_{1},x_{2}) \in \mathbb{R}^2$ first that $\frac{\partial \pi_{i} }{\partial x}$ and $\frac{\partial \pi_{i} }{\partial y}$ exist at the arbitrary $(x_{1},x_{2})$. Without lost of generality, lets consider the $1$-th projection. So
$$\frac{\partial \pi_{1} }{\partial x}(x_{1},x_{2})=\lim_{h \to 0}\frac{\pi_{1}(x_{1}+h,x_{2})- \pi_{1}(x_{1},x_{2})}{h}=lim_{h \to 0} \frac{x_{1}+h-x_{1}}{h}=1.$$
And,
$$\frac{\partial \pi_{1} }{\partial y}(x_{1},x_{2})=\lim_{h \to 0}\frac{\pi_{1}(x_{1},x_{2}+h)- \pi_{1}(x_{1},x_{2})}{h}=lim_{h \to 0} \frac{x_{1}-x_{1}}{h}=0.$$
Proving the required partial derivatives exist at the arbitrary point.
So then , I should prove that
$$lim_{(x,y) \to (x_{1},x_{2})} \frac{\pi_{1}(x,y)-\pi_{1}(x_{1},x_{2})-\frac{\partial \pi_{1} }{\partial x}(x_{1},x_{2})(x-x_{1})-\frac{\partial \pi_{1} }{\partial y}(x_{1},x_{2})(y-x_{2})}{||(x-x_{0},y-y_{0})||}=0$$
Developing the numerator part of the last limit I got $$x-x_{1}-1(x-x_{1})-0(y-x_{2})=-2x_{1}=0.$$
For the denominator I got;
$$\sqrt{(x-x_{1})^2+(y-x_{2})^2}$$.
So,
$$lim_{(x,y) \to (x_{1},x_{2})} \frac{0}{\sqrt{(x-x_{1})^2+(y-x_{2})^2}}=0$$.
Proving the case for $\mathbb{R}^2$.