Home Heating
Any owner will confirm that the heating of a house is expensive. In addition to the cost, it's also a carbon pollution! It turns out that using a system of differential equations, it is possible to describe the change of the temperature in the house for different heating modes. Such a model can be of real practical value.
Consider a typical two-storey house (Figure

We will describe the indoor temperature by two functions:
is the temperature of the ground floor; is the temperature of the 1st (upper) floor.
The initial differential equations are based on the Newton's law of cooling, which is written as
where
We introduce the following coefficients
is the thermal conductivity of the floor on the ground floor; is the thermal conductivity of the ceiling on the ground floor; is the thermal conductivity of the walls on the ground floor; is the thermal conductivity of the walls on the first floor and roof.
Then the system of differential equations for the functions
where the term
We write this system in vector-matrix form:
Here the inhomogeneous part is represented as a sum of two vectors. Since the system is linear, we can apply the principle of superposition to find the solution.
First consider the homogeneous system:
Determine the eigenvalues of the matrix
Note that the coefficients in the resulting auxiliary equation, which is the quadratic equation, are always positive:
Therefore, according to the Routh-Hurwitz criterion, the solution of the homogeneous system is asymptotically stable. In this case, it is the zero solution, since it is exactly the position of equilibrium of the homogeneous system.
Find the discriminant of the auxiliary equation:
Thus, the discriminant of the auxiliary equation is always positive. This means that the point of equilibrium is always a "node". As the stability of the system has been already proven above, this point is always a stable node, i.e. the eigenvalues
Next, to avoid cumbersome expressions, we consider particular values of the thermal conductivity coefficients
The higher the value of
Then the eigenvalues
Now we compute the eigenvectors associated with the eigenvalues
Similarly, we find the second eigenvector
The general solution of the homogeneous system with the given coefficients
where the constants
Now we construct a solution of the nonhomogeneous system. First, consider the nonhomogeneous part
Suppose, for example, the temperature of the ground (we will measure it in degrees Celsius) is
that is, in the range from
We seek a particular solution
Substitute the trial solution
As a result we have
By equating the coefficients of like terms, we obtain the following algebraic system:
Solving this system, we find the coefficients
Thus, the particular solution
Similarly, we find a particular solution
The heat source
After substitution of the solution into the system with the inhomogeneous part
Thus, the particular solution
According to the principle of superposition, a particular solution of the linear system, the inhomogeneous part of which is the sum of the vectors
Find the constants
The final general solution given the initial conditions and for an arbitrary constant heat source is written in the form:
Here, the first two terms are damped and describe the transition process. The third term is related to heat exchange with the environment. Recall that in this problem the following law of the change of the ambient temperature has been chosen:
Finally, the last term in the formula describes the action of the constant heat source
Consider the graphs of temperature change. Figure
When the heat source
As the power of the heat source increases, the ground floor is heated much better than the upper floor (Figure
Exploring the solutions