Don't hate yourself, or blame yourself for doing badly in mathematics. Accept that you tried and didn't make it, then try writing yourself a personalized study plan.
Are you able to pay attention in classes? Is math not interesting for you?
Personally, I struggle with pay attention, and caring about my studies. If you are similar, try studying challenging material first, or present problems in a way that interests you.
|