Take notes. Taking notes can help you focus on what your teacher is saying, even if you don't think you'll need the notes to study from later. If you can use the notes then even better! As your teacher talks, make an outline with a few side notes on the really complex topics. You'll find yourself focusing better before you know it.
If you don't know how to take notes, we've got you covered