I've been trying to prove the following result:
Let $(R,\mathfrak{m})$ and $(S,\mathfrak{n})$ be (Noetherian) local rings, and let $\varphi:R\to S$ be a finite local homomorphism.
Then $\varphi(\mathfrak{m})S$ is $\mathfrak{n}$-primary.
by following the suggestion given in this comment on a similar question. However I seem to have ended up proving that it is equal to $\mathfrak{n}$ itself:
Since $\varphi$ is finite, we have that $S=\varphi(R)s_1+\cdots+\varphi(R)s_n$ for some $s_i\in S$.
Then we can define a surjection $\psi:\oplus_n R/\mathfrak{m}\twoheadrightarrow S/\varphi(\mathfrak{m})S$ given via $r_i+\mathfrak{m}\mapsto\varphi(r_i)s_i+\varphi(\mathfrak{m})S$, where $r_i$ is the $i$th coordinate of $r\in\oplus_nR/\mathfrak{m}$.
Then $S/\varphi(\mathfrak{m})S\cong(\oplus_nR/\mathfrak{m})/\ker(\psi)$. But ideals of $\oplus_n R/\mathfrak{m}$ are of the form $\oplus_m R/\mathfrak{m}$ for some $m\leq n$, replacing the other copies with $0$, so $S/\varphi(\mathfrak{m})S\cong\oplus_{n-m}(R/\mathfrak{m})$.
This will have $n-m$ maximal ideals, given by replacing one copy of $R/\mathfrak{m}$ with $0$. But $S/\varphi(\mathfrak{m})S$ is a local ring with maximal ideal $\mathfrak{n}/\varphi(\mathfrak{m})S$.
We can't have $S/\varphi(\mathfrak{m})S=0$ since then $S/\varphi(\mathfrak{m})S=S$, but $\varphi$ is local so $\varphi(\mathfrak{m})S\subseteq\mathfrak{n}$, which cannot contain $1$.
Then we must have $n-m=1$, so $S/\varphi(\mathfrak{m})S\cong R/\mathfrak{m}$. This is a field, so $\varphi(\mathfrak{m})S$ is maximal and therefore equal to $\mathfrak{n}$.
I may be missing something obvious, but I can't see where I have made a mistake here. I would much appreciate any help in finding it, and seeing how to conclude the proof correctly.
Update: As pointed out by Angina in the comments, my error is that the function $\psi$ I define is only a module, and not a ring, homomorphism.
I have left my incorrect attempt up if anybody wants to click to see it, but I would much appreciate if anyone has a reference for, or proof of, the result itself.