Midpoint stepping for coupled temperatures

Two well-mixed reservoirs exchange heat without losing heat to their surroundings. Their temperatures satisfy


dT1dt=−0.40(T1−T2),dT2dt=0.20(T1−T2),\frac{dT_1}{dt}=-0.40(T_1-T_2),\qquad \frac{dT_2}{dt}=0.20(T_1-T_2),


where time is measured in minutes, temperatures in °C, and both coefficients have units of min−1. Initially, T1(0)=80 ∘CT_1(0)=80\ ^\circ\text{C} and T2(0)=20 ∘CT_2(0)=20\ ^\circ\text{C}.


Two insulated reservoirs exchange heat from the initially warmer reservoir to the cooler reservoir.


Use one step of the explicit midpoint method, which first estimates both temperatures halfway through the step and then uses the slopes at that shared midpoint state for the full update. Use h=0.50 minh=0.50\ \text{min}.


Writing the two right-hand sides as f1(T1,T2)f_1(T_1,T_2) and f2(T1,T2)f_2(T_1,T_2), apply


Mi=Ti(0)+h2fi(T1(0),T2(0)),Ti(h)≈Ti(0)+hfi(M1,M2),i=1,2.\begin{aligned} M_i&=T_i(0)+\frac{h}{2}f_i(T_1(0),T_2(0)),\\ T_i(h)&\approx T_i(0)+h f_i(M_1,M_2),\qquad i=1,2. \end{aligned}


Find the midpoint estimates M1M_1 and M2M_2, followed by the endpoint estimates T1(0.50)T_1(0.50) and T2(0.50)T_2(0.50). Give all four temperatures in °C, to one decimal place.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Numerical Solutions of Ordinary Differential Equations Questions: