Basically, I have the following latex code:
\begin{align*}
+ \left( \left[ \sum_i y_i x_i(r) - \frac{1}{n}\sum_i y_i \sum_i x_i(r) \right] \left[ \sum_i x_i^2(r) - \frac{1}{n} \left( \sum_i x_i(r)\right)^2\right]^{-2} \left[ \sum_i \frac{d^2 x^2_i(r)}{dr^2} - \frac{2}{n} \left[ \left( \sum_i \frac{d x^2_i(r)}{dr} \right)^2 + \left( \sum_i x_i(r)\right) \left( \sum_i \frac{d^2 x_i(r)}{dr^2}\right) \right]\right] \right) \\
\;\;\;)
\end{align*}
The problem is that this is too long to fit in one line. However, if I split it, an error occurs saying that there is no \right) to match the \left( on the same line.
I tried breqn. It didnt work at all.
Please help me out, as I am very tired of getting errors.



\right.on the first line and and opening\left.on the second line. The\left,\righthave to occur in pairs on one line of an equation. But you really should consider using fixed sizes provided by\big(,bigg(, etc. – Peter Grill Jun 03 '14 at 19:44