Question: what happens to gdp when inflation rises?
Answer: This is because in a world where inflation is increasing, people will spend more money because they know that it will be less valuable in the future. This causes further increases in GDP in the short term, bringing about further price increases.