Skip to main content
DA / EN
Blackboard with math

Teachers set the parameters, AI writes the maths problem

Danish pupils are losing motivation in maths, and word problems are among their least favourite tasks. Researchers from the University of Southern Denmark have built a tool that lets maths teachers generate tailored word problems in minutes, without needing to know how to write prompts for AI.

International studies show a decline in maths achievement among school pupils, and a clear link between how motivated pupils are and how well they perform. Word problems, where pupils have to translate a written story into mathematics, are meant to make the subject feel relevant. But finding problems that match a specific class, theme, reading level and mathematical topic is time-consuming, and teachers often end up rewriting them by hand.

We set out to see whether a large language model could take over that work, if teachers were given the right controls.

The project began with the pupils. In a survey of 38 Danish seventh-graders, 42 percent reported low motivation in maths, and word problems received the lowest rating of ten problem types. When shown one textbook problem and one generated by ChatGPT without any special instructions, 92 percent preferred the textbook version. Still, more than half said problems built around their own interests could make them more motivated.

In follow-up tests, pupils pointed to illustrations as a key reason for preferring textbook problems, which suggested that how a problem is presented matters as much as the text itself.

Based on input from pupils and teachers, the researchers built a generator in which teachers choose themes, mathematical domain, solution method, text length and language level, and then click "generate". Behind the scenes, the system translates those choices into carefully structured instructions for the AI model and returns a finished, formatted problem with mathematical notation, subtasks, hints and an illustration. Teachers can edit the result before exporting it as a PDF.

Three teachers tested the prototype against ordinary ChatGPT. They described the prototype as more structured and intuitive, and spent almost twice as long working with it as with ChatGPT, which they used only briefly before declaring themselves done. All three said they would consider using the tool in their teaching once certain improvements were made, such as clearer terminology and the option to write problems entirely by hand.

The researchers stress that the results are preliminary given the small number of participants, and that AI still makes mistakes in multi-step mathematics, so teachers need to review the problems before using them in class.


Read the paper: Simplifying Prompt Engineering for Educational Content Generation: A Teacher-Centred Interface for AI-Generated Math Word Problems, Jakob J. Garde, Marcus Peter Brendel Elmkvist and Marco Scirea, University of Southern Denmark. A video demo is available at https://youtu.be/Pv6sDVl3wGg

Editing was completed: 17.11.2026