I read your comments, feeling both sad and angry at the same time. Your daughter deserves a better home. And if she could have that at your mum's place then you should leave at once.
I know what I am talking about. My father was like the man you lived with. I never did anything well for him. And I was an excellent student myself. I had the best marks, perhaps in an effort to be appreciated by him by someone -- anyone.
The pain I experienced at the time of the constant bullying is still very intense in me, affecting all my relationships to this very day. I feel worthless, no matter how well I do in anything, and as partners I repeatedly choose abusers who would tear me apart and rob me of my self-confidence.
By the time I was a bit older I started to do deliberately badly at school. Just to see if anyone would care. They did not. And the abuse got worse. I was blamed for my mother's problems too. I was only a child, though.
Eventually I moved away, very far away. I resented my mother for a long time for not leaving my father. But of course I resented my father the most.
And guess what? They all meant well. My father thought he would encourage me to do better if he slagged me off. And my mother simply thought things would get better.
After years of counseling and therapy, I still struggle to have a life. I got to a point that I thought relationships were something I would just have to avoid. But all of them?? I mean the trouble even comes in friendships. Everyone walks over me.
The fact that I was a good student when I was a child means nothing. I could never make use of the knowledge I gained and by now I've forgotten everything anyway. But the abuse, the painful past I remember very clearly. I relive it every day in my dysfunctional present.
If you do want to give your child every chance at a good life, then you have to give her a loving and supporting home. Whatever she needs to learn she can learn later in life.
I suggest you also try and find a good counselor. There are some very cheap places. Ask your doctor about it.