I'm starting to learn about colligative properties and i want to know if there are different equations for boiling point elevation and freezing point depression? In the book they give me the equation: (delta)Tb= Kb times molality.

But my teacher gave us: delta Tb = Kb times # of ions x # of moles.
(This is for boiling point elevation)
Which one is correct?

Yes and no.

The general formula for the boiling point elevation is delta T = i*Kb*m but text books often omit the i(the number of particles) since covalent compounds have i = 1. The book is right, in a limited sense, but your teacher is right in all situations. For freezing point depression,
delta T = i*Kf*m

Both equations you mentioned are correct, but they are used in slightly different situations.

The equation you found in your book, (delta)Tb = Kb x molality, is a general equation for boiling point elevation. This equation calculates the amount by which the boiling point of a solvent is increased when a solute is added.

On the other hand, the equation your teacher gave you, delta Tb = Kb x # of ions x # of moles, is specifically used when the solute dissociates into multiple ions in solution (e.g., ionic compounds, such as NaCl). This equation takes into account the total number of ions produced by the dissociation of the solute, as this affects the boiling point elevation.

So, if you're dealing with a solute that does not dissociate into ions, you can use the first equation (delta)Tb = Kb x molality. However, if you have a solute that does dissociate into ions, you should use the equation provided by your teacher, delta Tb = Kb x # of ions x # of moles, to account for the effect of the number of ions on the boiling point elevation.

Remember to always check the context of the problem you are solving and use the appropriate equation based on whether or not the solute dissociates into ions.