We are considering Grover's algorithm with a search space of size $2^n$ for an arbitrary integer $n$ for arbitrary $n$, and a unique marked element $x_0$.
Question: Calculate $\langle x | D | y \rangle$ for arbitrary $x,y \in \{0,1\}^n$
Answer: Using the expression $D = -(I-2|+^n\rangle\langle+^n|)$, we have
$$\langle x | D | y \rangle = \begin{cases} \frac{2}{N}-1 &\quad\text{if x=y}\\ \frac{2}{N} &\quad\text{if x $\neq$ y} \end{cases} $$
How has the equality $D = -(I-2|+\rangle\langle+|)$ been derived? Its from these notes https://people.maths.bris.ac.uk/~csxam/teaching/qc2020/lecturenotes.pdf
How do derive the split function? I cannot see the route to start to evaluate this.