Stay with it. One characteristic of learning math is that at one moment you may feel completely at a loss, and then suddenly have a burst of insight that enables you to understand things perfectly. To learn mathematics you must take time to think back over the material covered. It takes time for many ideas to sink in and become a part of you. Do not try to learn math by memorizing formulas and examples.
Most mathematics is based on a few fundamental principles and definitions.
If you concentrate on these fundamentals and try to see how each new topic is simply another application, you will need to memorize very little new material. These are the habits that will save you frustration, and you must deliberately practice them to make them into habits. Keep your work organized. You must do all the assignments regularly and make up any work you miss when you are absent. Don t wait until the last minute and then try to rush through the assignments.