I'm using the breqn package for the first time, and while in one equation I get, using
\begin{dmath*}
\sum_{k=0}^{n} \left(\frac{k}{n} - x\right)^2 \binom{n}{k} x^k (1 - x)^{n - k}
= \left(1 - \frac{1}{n}\right)x^2 + \frac{1}{n}x - 2x^2 + x^2
= \frac{1}{n}x(1 - x)
\leq \frac{1}{4n}\ ,
\end{dmath*}
something like that
I get just in the next line, something like that
\begin{dmath*}
\sum_{k \in F}\binom{n}{k}x^k(1 - x)^{n -k}
\leq \frac{1}{\delta^2}\sum_{k \in F} \left(\frac{k}{n} - x\right)^2
\binom{n}{k}x^k (1 - x)^{n -k}
\leq \frac{1}{\delta^2}\sum_{k = 0}^{n} \left(\frac{k}{n} - x\right)^2
\binom{n}{k}x^k (1- x^k)
\leq\frac{1}{4n\delta^2} \ ,
\end{dmath*}
which is basically the same code but looks way better than the first equation. So I wonder if there's a way to adjust the dmath enviroment to make the first equality on the first equation go to the first line, and then break on the second, making my first equation have only three lines.





k\hiderel{=}0andk\hiderel{\in}Fin order to avoid the bad spacing, but this is a detail. Apparently according to its heuristics,breqndecides that making a single line with the first=sign yields too long a line and so breaks it. Avoidbreqnif you want quality output: some more work will be required, but it will be rewarding. Otherwise, be happy with what you get. – egreg Jul 24 '18 at 22:39breqnworked better for me thansplit, for example, which is a mess, up to this point. It seems that it's just a limitation and that I should work case by case when using it to decide which is better. – 園田海未 Jul 24 '18 at 22:48