Suppose that $x \in \mathbb R^n \,\, (n \ge 2)$ is fixed and define a matrix $A = (a_{ij})_{i,j=1}^n$ by $$a_{ij} = (1+\lvert x \rvert^2)\delta_{ij} - x_i x_j$$ where $\lvert x \rvert$ denotes the standard Euclidean norm and $\delta_{ij}$ is the Kronecker delta (i.e., $\delta_{ij} = 1$ if $i = j$ and $\delta_{ij} = 0$ if $i \neq j$). Show that $\det(A) = (1+\lvert x \rvert^2)^{n-1}$.
This is not a homework question I found this reading through a book on elliptic PDE (we need to calculate this determinant when proving a version of the maximum principle for the prescribed mean curvature equation) and was simply trying to verify the calculation and I'm finding it very difficult. My first thought was to use induction since it is trivial when $n = 2$, but I could find a clean way to relate the $n$ and $n+1$ cases.