Gradient of an absolute value function in n dimensions?

440 Views Asked by At

Problem: For x ∈ $\mathbb{R}^n$, calculate ∇$\ \frac{(1)}{abs(x)}$

I tried to take the gradient of both the negative and positive versions, but I just don't know how to do it in n dimensions.

Here is the original problem: problem

Edited for clarity