Updated · By Pete Bromfield, IB Maths IA examiner

Top-band exemplar · AI HL · written to a full-marks standard

Is it cheaper to leave the heating on low overnight? A two-temperature model of my bedroom

Coupled differential equations, eigenvalues and Euler's method · about 17 pages · top-band standard · our judgement 20/20

Written by IB Math Revision to show a top-band (full-marks) standard — not a real student's IA, not moderated by the IB; marks can't be guaranteed. The marks below are our examiner-style judgement against the criteria. This exploration was never submitted in an IB session and we do not claim it scored 20/20.

An AI HL modelling exploration written to a top-band (full-marks) standard: Newton's law of cooling tested with a log-linearisation and rejected, a coupled air–wall model fitted to two logged series, solved exactly with eigenvalues and eigenvectors and read through its phase portrait, Euler's method checked (and its stability limit derived), a blind test on a second night, and two household decisions settled with an energy-balance argument.

Why it reaches the top band, criterion by criterion

CriterionMarkWhy
A · Presentation4/4A numbered aim followed section by section; each section is there because the previous result demanded it. Concise for the amount of mathematics, with detail (programs, raw logs) in appendices.
B · Mathematical communication4/4Variables, units, deviations and parameters defined before use; matrix notation, eigen-directions and the phase portrait clearly labelled; tables and figures captioned and referred to; ≈ used for fitted values.
C · Personal engagement3/3Outstanding: a real household argument, the student's own logging, a technique found and brought in because it was needed, and a final answer the family can act on.
D · Reflection3/3Substantial and critical: the simple model is rejected on evidence, parameters are checked physically, Euler's method is tested against the exact solution, the model is tested blind on a new night and the weather-dependent parameter identified, and sensitivity is quantified.
E · Use of mathematics6/6Sophisticated and rigorous AI HL mathematics: log-linearisation, a coupled linear system solved exactly with eigenvalues and eigenvectors, a non-homogeneous shift of equilibrium, phase-portrait analysis, Euler's method with a derived stability condition, least squares, and an energy balance derived from the system.
Total20/20Full marks are justified because the eigenvalue mathematics is not decoration: it explains the data, drives the numerical choices and settles the decision — every step correct and in service of the aim.

Marks are our judgement of this teaching exemplar against the current criteria, explained criterion by criterion. They are not IB moderation results, and a real IA written to this standard could still be marked differently by a teacher or moderator.

What would lose marks here

The same exploration, with these changes, would drop out of the top band:

  • E Quoting the solution of a coupled system from a GDC or website without finding and interpreting the eigenvalues would make E “correct” but not “sophisticated” at HL — typically 4 rather than 6.
  • D Fitting Newton's law, getting a reasonable-looking curve and moving on — without the log graph or residuals, the need for a second temperature is never discovered.
  • E Using Euler's method with a large step and not checking it: here a 1.5-hour step gives a physically impossible answer.
  • D Testing the model only on the night it was fitted to. The blind test on night 2 is what shows which parameter depends on the weather.
  • C A textbook predator–prey or SIR model with parameters from a website and no data of the student's own — widely seen and hard to make personal.

Excerpts with examiner annotations

Free sections are shown below with comments; the rest is in the full exemplar, available in the protected viewer with the IA package or a Pro plan.

1. Introduction

Every winter the same argument happens in my house. My dad sets the heating timer to come on at 06:00 so that the house is warm when we get up at 07:00, and switches it off at 22:30. My mum thinks the house takes so long to warm up again that it would be cheaper to leave the heating “ticking over” at a low temperature all night. My bedroom is the coldest room — two of its walls face outside — so I decided to settle the argument for my room, with a data logger and mathematics rather than opinions.

When I first plotted how my room cooled, I expected Newton's law of cooling, which we met as an example of a differential equation: the temperature falls exponentially towards the outside temperature. The data did not look like that. The air dropped several degrees in the first hour and then hardly moved for the rest of the night. That shape became the real question of this exploration.

Aim. I will (1) test whether Newton's law of cooling describes my room overnight, (2) build and fit a model with two coupled temperatures — the air and the walls — and solve it exactly using eigenvalues and eigenvectors, (3) check the numerical method I need for the parts that cannot be solved exactly, and test the model on a second night it has not seen, and (4) use it to answer two practical questions: what is the latest time the heating can come on and still reach 19 °C by 07:00, and is ticking over at 16 °C cheaper than switching off?

C A real disagreement in the student's own home, and a question with an answer the family cares about. The surprise in the data — not the textbook — turns into the mathematical question.

A A precise, numbered aim that sets up the structure: test a simple model, build a better one, check it, then use it for two decisions.

2. Collecting the data

I used three cheap temperature loggers that record to 0.1 °C. One was on a bookshelf in the middle of the room, away from the radiator (the air temperature, \(A\)); one was taped to the inside surface of the outside wall (the wall temperature, \(W\)); and one was outside on the window sill in a small ventilated box, out of the wind (\(T_{\text{out}}\)). Before using them I put all three in the same drawer for an hour: they agreed to within 0.1 °C, so I did not apply any correction.

Data note: the logs in this exemplar are illustrative, simulated by IB Math Revision to behave like real logger readings; a student must log their own room.

Night 1 was a still, dry night. The heating went off at 22:30 and the timer turned it on again at 06:00; I kept logging until 07:00. With the door closed and the window shut, nothing else in the room changed. Time \(t\) is measured in hours from 22:30 and temperatures in °C.

22:3023:3000:3001:3002:3003:3004:3005:3006:305.07.510.012.515.017.520.0temperature (°C)heatingonNight 1: my bedroom after the heating switched offair (shelf)wall (inside of outer wall)outside (window sill)
Figure 1: The logged temperatures every 10 minutes from 22:30 to 07:00 (52 readings per sensor). Illustrative data — see the note in Section 2.

The outside temperature drifted from about 6.1 °C to 4.7 °C over the night. Every model in this exploration treats it as constant at its mean before 06:00, \(T_{\text{out}} = 5.3\) °C. That is the first assumption I will come back to. The wall behaves very differently from the air: after 06:00 the air warms by several degrees in minutes while the wall barely responds.

B Variables, units, sensor positions and the time origin are all defined before any mathematics; the figure has labelled axes, a legend and an informative caption.

D The loggers are checked against each other before use, and the constant outside temperature is flagged as an assumption to revisit.

E Logging the wall as well as the air is what later makes a two-temperature model testable — good planning of data collection.

3. Does Newton's law of cooling fit?

Newton's law of cooling says the air cools at a rate proportional to how much warmer it is than outside:

\[ \frac{dA}{dt} = -k\,(A - T_{\text{out}}) \;\Rightarrow\; A = T_{\text{out}} + (A_0 - T_{\text{out}})\,e^{-kt} \]

by separating variables. Taking logarithms, \(\ln(A - T_{\text{out}}) = \ln(A_0 - T_{\text{out}}) - kt\), so if the law holds, a graph of \(\ln(A - T_{\text{out}})\) against \(t\) should be a straight line with gradient \(-k\).

01234567time since heating off, t (hours)2.22.32.42.52.62.7ln(A − T_out)If Newton's law held, this would be one straight linedataslope −0.046 (after 01:30)slope −0.238 (first hour)
Figure 2: Linearising with logarithms. The points bend: the air cools about five times faster in the first hour than later.

It is not. Regression lines through the first hour and through the part after 01:30 have gradients −0.238 and −0.046 per hour — the early cooling is about 5 times faster. The best single value of \(k\) by least squares is \(k \approx 0.102\) per hour, but Figure 3 (left) shows what that costs: the model is too warm for the first 4.7 hours and too cold for the rest of the night, by up to 1.9 °C — a pattern rather than random scatter (RMSE 1.10 °C). One exponential cannot be fast and slow at the same time.

Physically this makes sense to me. The air in my room holds very little heat, so it cools quickly — but it is surrounded by walls, furniture and a floor that hold far more heat and keep giving it back. So the air is not cooling towards the outside temperature at all in the first hour: it is cooling towards the walls. That suggests a model with two temperatures that affect each other.

E The simple model is linearised with logarithms and tested properly (two regression gradients, least-squares fit, residual pattern) before being rejected — the rejection is evidence-based.

D The residual pattern is interpreted, and the failure of the model is turned into a physical explanation that motivates the next model. Reflection drives the exploration forward.

4. A model with two coupled temperatures

In the full exemplar (about 3 pages). Setting up the coupled differential equations, estimating the parameters by “peeling” the ln graph, then least squares on both series together. Open in the protected viewer

5. The exact solution: eigenvalues, eigenvectors and the phase portrait

In the full exemplar (about 3 pages). Eigenvalues and eigenvectors of the fitted matrix, the exact solution, a fast and a slow mode, and a phase portrait with the data on it. Open in the protected viewer

6. Euler's method — and when it goes wrong

In the full exemplar (about 1.5 pages). Euler's method for the coupled system, tested against the exact solution, and the stability condition h < 2/|λ| derived from the eigenvalues. Open in the protected viewer

7. Testing the model on a different night

In the full exemplar (about 1 page). A blind prediction of a second, windy night, and which parameter depends on the weather. Open in the protected viewer

8. Settling the argument

In the full exemplar (about 3 pages). The latest switch-on time from the exact solution, a sensitivity table, and an energy comparison of switching off against ticking over, with an energy-balance argument for why. Open in the protected viewer

9. Conclusion and reflection

Newton's law of cooling does not describe my room overnight: the ln graph bends, and one exponential leaves residuals with a clear pattern. A model with two coupled temperatures, air and walls, fits both logged series to about the loggers' resolution. Its eigenvalues (−0.0429 and −1.431 per hour) show a fast mode with a half-life of about half an hour, in which the air settles relative to the walls, and a slow mode with a half-life of about 16 hours, in which the walls control everything. Using the model, the heating on a mild, still night could come on at about 06:25 instead of 06:00, but on the cold, windy night 2 it needed to come on at 05:54, so 06:00 is close to right for a bad night. Ticking over at 16 °C would run the heater about 89% longer than switching off. So, for my room, switching off is cheaper, and the energy-balance equation shows why: keeping the room warmer for longer always increases the heat lost.

The limitations are mostly in the assumptions. The outside temperature was treated as constant, although it fell by more than a degree during the night; the draught parameter depends on the wind; and a single wall temperature stands for walls, floor and furniture that really warm and cool at different rates (a third temperature would give a third eigenvalue). The loggers' 0.1 °C resolution limits how precisely the fast mode can be measured. Most importantly, I tested the model on only two nights, so I would set the timer for a windy night, not a still one.

What I found most interesting was that the eigenvalues were not just a method for solving the equations: they turned out to be the physics of my room. The fast one explains why warming up is quick, and the slow one explains why the walls decide how cold it gets. My dad was right about switching off, and — to my surprise — his 06:00 timer is about right for a bad night (a few minutes late for the worst one I logged); the real saving would come from a thermostat that chooses its own start time each morning, which is exactly the calculation in Section 8.

A Every part of the aim is answered in order with the key numbers; the conclusion is concise and returns to the original question.

D Limitations are specific (constant outside temperature, wind, one wall temperature, resolution, two nights) and linked to how they would change the decision.

C The final paragraph shows genuine insight into what the mathematics meant for the student's own problem.

Bibliography and appendices

In the full exemplar (about 1 page). Sources, technology and appendices. Open in the protected viewer

What a moderator could still ask for

  • Even at this level, a moderator might want the physical check of k₁/k₃ made quantitative (a rough heat-capacity calculation in an appendix) rather than described.
  • Logging a few more nights would allow a simple model for how k₂ depends on wind speed, instead of one refitted value.

Frequently asked questions

Did this IA actually get 20/20?

No — it is not a real student's IA and was never submitted or moderated. It was written by IB Math Revision to show what a top-band (full-marks) standard looks like; the marks are our examiner-style judgement against the criteria, and no one can guarantee a mark.

Are coupled differential equations enough for AI HL?

They can be, if you solve and interpret them yourself — eigenvalues, eigenvectors, a phase portrait — and use them on real data, as here. A system copied from a textbook with parameters from the internet usually is not enough for the top of Criterion E at HL.

Can I model my own room like this?

Yes — your own room, loggers, question and decisions are what make it yours. Do not reuse this exemplar's model, data, figures, structure or wording: copying or closely paraphrasing an exemplar is academic misconduct.

Other top-band examples

All 16 annotated exemplars, including three deliberately mid-band drafts.

Read the whole exploration

The full “Coupled cooling model (AI HL)” exemplar, with an examiner's note on every section, is in the IA package with the other 15 exemplars (Pro and Platinum plans include them too). €39 once, 12 months' access, 14-day money-back guarantee. It helps you write your own IA; it never writes it for you.

See what's in the IA package

Already have access? Open it in the viewer · All exemplars · Want your own draft marked like this? Examiner review