To understand how to derive the LM curve you must remember what it represents. The LM curve represents all combinations of the interest rate and income at which the money market is in equilibrium.
Let’s look at the money market (see left panel). The Md curve represents the demand for money. Notice that it is downward sloping. It slopes downward because the interest rate represents the opportunity cost of holding assets as money and, as the opportunity cost rises, the quantity of money demanded falls. The active graph on the right shows all possible combinations of the interest rate and income. What you have to do is to figure out which combinations are consistent with equilibrium in the goods market.
First, notice the handle on the horizontal axis panel at left marking the current level of income (Y1)