# Using Lyx, How to I insert multiple line equations?

In Lyx, I have the following Display Formula:

1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17 (1)

I want to split it into:

1+2+3+4+5+6+7+8+9+10+

+11+12+13+14+15+16+17 (1)

I found this https://wiki.lyx.org/Examples/FormulaOnMultipleLines and In Lyx how do I set up a display formula over several lines. but still cannot get multiline equations to work!

For example the answer by riddleculous: "You can use the split environment within the equation and make new lines with \" - How can I make this work?

• The amsmath environments usually used for such things (split, aligned, , align etc. are available in the Insert --> Math manu. – Torbjørn T. Apr 21 '17 at 17:08
• Do you know how to "insert" \begin{multline} 1+2+3+4+5+6+7+8+9+10 \\ +11+12+13+14 +15+16+17 \end{multline} into your lyx document? – Mico Apr 21 '17 at 17:14

As Mico mentions, the multline environment is made for this type of thing. Go to Insert --> Math, and choose AMS multline environment. You get what looks like a normal display math inset:
You can repeat this if you want to. multline will place the first line flush left, the last line flush right, and all the lines in between centered.
• Note that this won't work if you're already inside a Math environment like align. In that case, use aligned inside a cell of align. – D_Serg Apr 8 at 3:42