Inspiration
Most AI chatbots give you math answers but don't actually teach you how to solve problems. We wanted to build a math tutor that doesn't just give answers — it guides you step by step, checks your work, and helps you practice until you get it.
What it does
MathMentor AI is an AI-powered math tutor built for the Nittany AI Challenge:
- Step-by-step calculus solutions with clear explanations
- Interactive tangent line graphing — drag a slider to see slope change in real time
- Answer checking: type your own solution, AI points out exactly where you went wrong
- Knowledge practice mode: auto-generates 3 problems (easy → medium → hard) on any topic
- Personal mistake notebook: automatically saves every problem you got wrong
- Community discussion board: share problem-solving tips with other students
How we built it
We built this with Streamlit for the web interface, Groq's free API for fast AI responses, and Matplotlib for interactive graphing. We used the openai/gpt-oss-20b model which works great on Groq's free tier.
Challenges we ran into
Getting a small 20B model to output clean math formatting was tricky — we iterated on prompts and post-processing to make formulas readable. We also had to debug state management for the interactive graph so the tangent slider wouldn't reset the whole page.
What's next
We plan to add more subjects, user accounts, and a real database for the community discussion board after the hackathon.