I'm working through the textbook mathematics for machine learning and have hit a sticking point in SVD. If the matrix $A \in \mathbb{R}^{m \times n}$ then, I understand how the right and left singular vector $V$ and $U$ are derived from the diagonalization of $A^TA$ and $AA^T$. However, the book states
The last step is to link up all the parts we touched upon so far. We have an orthonormal set of right-singular vectors in $V$ . To finish the construction of the SVD, we connect them with the orthonormal vectors $U$ . To reach this goal, we use the fact the images of the $\mathbf v_i$ under $A$ have to be orthogonal, too. We can show this by using the results from Section 3.4. We require that the inner product between $A\mathbf v_i$ and $A\mathbf v_j$ must be 0 for $i \ne j$ . For any two orthogonal eigenvectors $\mathbf v_i$ , $\mathbf v_j$ , $i \ne j$ , it holds that: $$ (A\mathbf v_i)^T(A\mathbf v_j) = \mathbf v_i^T(A^T A)\mathbf v_j = \mathbf v_i^T(\lambda_j \mathbf v_j ) = \lambda_j \mathbf v_i \mathbf v_j = 0 .$$
My question is, how does the final equation go from $\mathbf v_i^T(A^T A)\mathbf v_j = \mathbf v_i^T(\lambda_j \mathbf v_j )$? How does $A^T A$ end up as a scalar value $\lambda$? Can somebody add a more intuitive explaination to the above?