One of the assumptions in the basic SIR model was that thepopulation was mixed homogeneously and therefore all susceptibleelements were equal before the disease, however, in reality thatdoes not always happen. Sometimes the geographical region or ofdifferent age groups. In the basic model, make the necessarymodifications to include the case in which the population is nothomogeneous, and perform a complete analysis of the model.