Please don't worry.
I'm a professional pilot on big jets and totally messed up my A-levels. I too got a U in maths and got booted off the course. However, I did go onto to do a degree which shows I learnt my lesson!
Keep at it and put it behind you...