[guided]Once unramifiedness is known, the conjugacy class of $\rho_{f,\lambda}(\operatorname{Frob}_p)$ is defined, so its trace, determinant, and characteristic polynomial are meaningful. We must also fix the Frobenius convention: $\operatorname{Frob}_p$ in the theorem is arithmetic Frobenius. With Deligne's normalization of the [$\lambda$-adic Galois representation attached to $f$](/page/Deligne%20Galois%20Representation), the [Eichler-Shimura relation](/page/Eichler-Shimura%20Relation) gives the trace and determinant formulas
\begin{align*}
\operatorname{tr}\left(\rho_{f,\lambda}(\operatorname{Frob}_p)\right) &= a_p, &
\det\left(\rho_{f,\lambda}(\operatorname{Frob}_p)\right) &= p.
\end{align*}
Here $a_p$ enters because $f$ is an eigenvector for the Hecke operator $T_p$ with eigenvalue $a_p$, and the determinant is $p$ because the form has weight $2$ and nebentypus equal to $1$. Let $V_{f,\lambda}$ denote the two-dimensional $K_{f,\lambda}$-vector space underlying $\rho_{f,\lambda}$, and let $\operatorname{Id}_{V_{f,\lambda}}: V_{f,\lambda} \to V_{f,\lambda}$ be its identity map. For any endomorphism $A: V_{f,\lambda} \to V_{f,\lambda}$ of a two-dimensional vector space,
\begin{align*}
\det(T\operatorname{Id}_{V_{f,\lambda}} - A) = T^2 - \operatorname{tr}(A)T + \det(A).
\end{align*}
Applying this with $A = \rho_{f,\lambda}(\operatorname{Frob}_p)$ gives
\begin{align*}
\det\left(T\operatorname{Id}_{V_{f,\lambda}} - \rho_{f,\lambda}(\operatorname{Frob}_p)\right) = T^2 - a_pT + p.
\end{align*}
The theorem writes the same polynomial in the reciprocal variable. Indeed,
\begin{align*}
\det\left(1 - X\rho_{f,\lambda}(\operatorname{Frob}_p)\right)
&= X^2\det\left(X^{-1}\operatorname{Id}_{V_{f,\lambda}} - \rho_{f,\lambda}(\operatorname{Frob}_p)\right) \\
&= X^2\left(X^{-2} - a_pX^{-1} + p\right) \\
&= 1 - a_pX + pX^2.
\end{align*}
This proves both asserted conclusions: unramifiedness at $p$ and the Frobenius characteristic polynomial formula.[/guided]