How can I calculate the first partial derivative $P_{x_i}$ and the second partial derivative $P_{x_i x_i}$ of function: $$ P(x,y):=\frac{1-\Vert x\rVert^2}{\Vert x-y\rVert^n}, x\in B_1(0)\subset\mathbb{R}^n,y\in S_1(0)? $$
I ask this with regard to Show that the Poisson kernel is harmonic as a function in x over $B_1(0)\setminus\left\{0\right\}$.
I think it makes sense to ask this in a separate question in order to give details to my calculations.
First partial derivative:
I use the quotient rule. To do so I set $$ f(x,y):=1-\lVert x\rVert^2,~~~~~g(x,y)=\Vert x-y\rVert^n. $$ Then I have to calculate $$ \frac{f_{x_i}g-fg_{x_i}}{g^2}. $$ Ok, I start with $$ f_{x_i}=(1-\lVert x\rVert^2)_{x_i}=(1)_{x_i}-(\sum_{i=1}^n x_i^2)_{x_i}=-2x_i. $$ Next is to use the chain rule: $$ g_{x_i}=((\sum_{i=1}^{n}(x_i-y_i)^2)^{\frac{n}{2}})_{x_i}=\frac{n}{2}\lVert x-y\rVert^{n-2}(2x_i-2y_i) $$
So all in all I get $$ P_{x_i}=\frac{-2x_i\cdot\Vert x-y\rVert^n-(1-\lVert x\rVert^2)\cdot\frac{n}{2}\lVert x-y\rVert^{n-2}(2x_i-2y_i)}{\Vert x-y\rVert^{2n}} $$
Is that correct? Can one simplify that?
I stop here. If you say it is correct I continue with calculatin $P_{x_i x_i}$.