Teachers are anyhow respectful people. If a teacher has been strict to you, try to submit homework or assignment what she gives to you within time duration and maintain proper discipline in her period. Never try to make her angry. Be gentle and polite with her. When you do this, a time will come you find her gentle and polite with you too Insha Allah.