How do I motivate myself to do math again? I have been thinking of asking for help for a few months now but posting in a public forum like this is intimidating.
Still, I am currently in a university studying mathematics as an undergrad. I took quite a few knocks a few months back when I failed to qualify for the universities of my choice and all the hard work for mathematical olympiads and hours of practice went up in smoke.Out of frustration and disappointment, I left math for a few months,doing nothing but staring at the ceiling. After coming to the university,I then tried doing math again and after a months, I tried to study linear algebra and analysis. I studied 30 pages of Rudin and then stopped; and then I studied those 30 pages, each time those 30 pages seemed to be as difficult as before but less interesting and now I am stuck.
I came to the conclusion that I cannot do math OR I have lost the motivation to. How do I get  back to studying math?

Thank you everyone for your answers and comments. I have read them and I will try to get back up.

Switch track to some other mathematics that is completely different from what you are used to. From what I understand you are not motivated by calculus any longer (the same goes for me by the way, studing for the exam once again ...), however having read other courses made math much more fun. 
For example, finite automata, quite a graphic topic, not so much fiddling with remembering formulas, antiderivatives and trigonometry stuff. Also do some applied mathematics, mathematical modeling and problem solving, in this way you will have a concrete problem to solve, instead of some theory which you never know where you would apply. Do some programming and algorithms, with data structures and graphs, also completely different and challenging.
