I'm trying to write an equation and make it a little bigger but it's too long and it doesn't go to a new line. I also get some errors on the last line like "Missing $ inserted. \end{equation}} "Bad math environment delimeter. \end{equation}}" "You can't use \eqno in restricted horizontalmode. \end{equation}}"
\scalebox{1.0}{%
\begin{equation}
\bm{f(x, y, z, w)} = (x+y+z+\overline{w}) \cdot (x+y+\overline{z}+\overline{w}) \cdot (x+\overline{y}+z+w) \cdot (x+\overline{y}+\overline{z}+\overline{w}) \cdot (\overline{x}+y+z+w)
\cdot (\overline{x}+y+\overline{z}+w) \cdot (\overline{x}+\overline{y}+\overline{z}+w) \cdot (\overline{x}+\overline{y}+\overline{z}+\overline{w})
\end{equation}}