This dissertation studies a classical SIR (Susceptible–Infected–Recovered) epidemic model extended with vaccination from two angles: the mathematics of the model and the numerics of solving it.
On the analytical side, the model's equilibria, the vaccination-adjusted basic reproduction number and the local stability of the disease-free and endemic equilibria are derived symbolically in Maxima, the computer-algebra system taught in M106P. The Jacobian is computed and its eigenvalues are examined to obtain the threshold condition R_v < 1 and the critical vaccination rate.
On the numerical side, the same system is solved in Scilab with three schemes coded by hand — explicit Euler, the classical fourth-order Runge–Kutta (RK4) method and the fourth-order Adams–Bashforth–Moulton (ABM4) predictor–corrector — and compared against a high-accuracy reference solution computed with Scilab's built-in ode solver at tight tolerances. For each method we measure global error against step size, estimate the observed order of convergence, count function evaluations as a measure of cost and look at stability for large steps. Finally, we study how the epidemic peak (its height and timing) responds to the vaccination rate.
All parameter values are hypothetical and illustrative, chosen to be in a plausible range; the model is not fitted to real data. The dissertation is typeset in LaTeX and presented with Beamer (M404P), matching Bangalore University's Semester-4 Project Work.
Vaccination changes the dynamics of an infectious disease: it removes susceptibles directly and can push the reproduction number below one. For an SIR model with vaccination, the key mathematical questions are where the equilibria lie, under what condition the infection dies out and how strongly the vaccination rate changes the size and timing of an outbreak.
These questions are answered partly analytically and partly by numerical simulation, and the numerical answer is only as trustworthy as the method used. Explicit Euler is easy but inaccurate; RK4 is accurate but needs four function evaluations per step; ABM4 needs only two per step but is less stable and needs starting values. A student who reports "the peak occurs on day 42" without an error estimate has not really answered the question.
This project therefore (i) derives the equilibria, R_v and the stability conditions symbolically, and (ii) quantifies the accuracy, observed order, cost and stability of Euler, RK4 and ABM4 on this model against a high-accuracy reference, so that the conclusions about vaccination are supported by verified numerics.
Synopsis
Abstract
We analyse an SIR model with constant recruitment, natural death and vaccination of susceptibles. Using Maxima we derive the disease-free equilibrium (DFE), the endemic equilibrium and the reproduction number R_v = βμ / ((μ + ν)(γ + μ)), and we show via the Jacobian that the DFE is locally asymptotically stable when R_v < 1. We then compare three numerical schemes — Euler, RK4 and ABM4 — implemented in Scilab, measuring global error, observed order, computational cost and step-size stability against a reference solution. A parameter study shows how the vaccination rate ν shifts the height and timing of the infection peak.
Introduction
Compartmental models reduce an epidemic to a small system of nonlinear ordinary differential equations. They rarely have closed-form solutions, so numerical integration is essential, and the choice of method affects both accuracy and cost. The SIR model with vaccination is ideal for an M.Sc project: it is simple enough to analyse fully by hand and by computer algebra, yet rich enough to show real numerical behaviour such as error accumulation and step-size limits.
Literature and gap
Textbook treatments (Brauer and Castillo-Chavez; Murray) derive thresholds analytically but usually treat the numerical solution as a black box. Numerical-analysis texts (Burden and Faires; Atkinson) analyse RK and multistep methods on toy problems. This project connects the two: the epidemiological model is analysed rigorously and then used as the test problem for a careful, reproducible comparison of one-step and multistep methods.
Objectives in brief
Symbolic analysis in Maxima; implementation of three schemes in Scilab; convergence and cost study; sensitivity of the peak to ν; report in LaTeX and slides in Beamer.
Feasibility
Scilab, Maxima and a TeX distribution are free and already used in the M.Sc practicals. The computations run in seconds on a laptop. The work fits the 16-week, 8-hours-per-week self-study allotted to Project Work, and needs no data collection or ethics approval because all parameters are hypothetical.
Objectives
01Formulate an SIR model with recruitment, natural mortality and vaccination, and state its assumptions.
02Derive the disease-free and endemic equilibria and the reproduction number R_v symbolically in Maxima.
03Establish local stability of the equilibria through the Jacobian, its eigenvalues and the Routh–Hurwitz criteria.
04Implement explicit Euler, classical RK4 and ABM4 predictor–corrector schemes in Scilab.
05Measure global error against a tight-tolerance reference solution and estimate the observed order of convergence.
06Compare computational cost (function evaluations) and step-size stability of the three schemes.
07Study the sensitivity of the epidemic peak height and timing to the vaccination rate.
08Typeset the dissertation in LaTeX and prepare the presentation in Beamer.
Scope
In scope
A deterministic, homogeneous-mixing SIRV-type model in normalised form (total population constant and scaled to 1).
Symbolic analysis: equilibria, R_v, critical vaccination rate, Jacobian and local stability.
Three hand-coded schemes (Euler, RK4, ABM4 with RK4 start-up) plus Scilab's ode as reference.
Error-versus-step-size study, observed order, function-evaluation count, behaviour at large step sizes.
Parameter sensitivity of the infection peak to the vaccination rate ν, using hypothetical parameters.
Out of scope
Fitting the model to real surveillance data or making forecasts for any real disease.
Stochastic, age-structured or spatial models.
Global stability proofs by Lyapunov functions (mentioned as future scope).
Adaptive step-size control beyond what the reference solver provides.
Methodology
Research design: analytical derivation followed by controlled numerical experiments (a computational study).
β: transmission rate, γ: recovery rate, μ: birth = death rate, ν: vaccination rate of susceptibles. Because S + I + R = 1 is invariant, R can be recovered from S and I, and stability analysis is done on the (S, I) subsystem.
β = 0.5 per day, γ = 0.1 per day, μ = 1/(60 × 365) per day, ν ∈ {0, 0.0005, 0.001, 0.002, 0.005}, initial state S = 0.999, I = 0.001, R = 0, horizon 0–365 days. With these values R0 ≈ 5; they are chosen only to produce a visible outbreak and are not estimates for any real disease.
Numerical experiments
Reference solution: Scilab ode with rtol = atol = 1e−12 on a fine output grid.
For h ∈ {2, 1, 0.5, 0.25, 0.125, 0.0625} days, run Euler, RK4 and ABM4; compute E(h) = max over grid of ‖y_h − y_ref‖∞.
Observed order p ≈ log2(E(h)/E(h/2)); theory predicts p ≈ 1 (Euler) and p ≈ 4 (RK4, ABM4).
Cost: total right-hand-side evaluations (Euler 1, RK4 4, ABM4-PECE 2 per step) vs error, plotted on log–log axes.
Stability: increase h until each method's solution becomes negative or oscillates; relate to the linearised eigenvalues.
Peak study: for each ν, record I_max and t_peak with RK4 at a verified step size.
Timeline (16 weeks, individual)
Weeks
Work
1–2
Literature, model formulation, supervisor approval
3–5
Maxima derivations: equilibria, R_v, Jacobian, eigenvalues
6–8
Scilab implementation and verification of the three schemes
9–11
Error, order, cost and stability experiments
12
Peak sensitivity to ν
13–15
LaTeX dissertation, figures, proofreading
16
Beamer slides, rehearsal, submission
Study design
1 diagram · 5 tools · 2 min read
Scilab (ode, hand-coded RK4 and ABM4)
Maxima (symbolic equilibria, Jacobian, eigenvalues)
LaTeX (report)
Beamer (slides)
pgfplots or Scilab-exported figures
The study has two connected tracks — symbolic and numerical — that meet in the results chapter.
flowchart TD
A["Model formulation: SIR with vaccination"] --> B["Maxima: solve for equilibria"]
B --> C["Maxima: R_v and critical vaccination rate"]
C --> D["Maxima: Jacobian and eigenvalues at equilibria"]
A --> E["Scilab: right-hand side function"]
E --> F["Reference solution: ode with tolerance 1e-12"]
E --> G["Hand-coded Euler, RK4 and ABM4"]
F --> H["Error, observed order and cost tables"]
G --> H
G --> I["Peak height and timing versus vaccination rate"]
D --> J["Check: simulations agree with stability predictions"]
I --> J
H --> K["LaTeX dissertation and Beamer slides"]
J --> K
1 row are borrowed tools or lab slots and are not priced.
2 items need a supplier quote and are not in the band.
Prices approximate, Nov 2026 — Indian retail, the upper edge allows a 20% spread. Compare locally before you order.
Editable .xlsx sheet with the same rows and totals unlocks with the project · ₹2,000
We don’t sell parts and get nothing from these stores: the links are plain searches or the author’s own product pages, not referrals. For educational purposes only.
Deliverables
5 artefacts · structure free · exemplars and editable forms unlock
What you actually hand in, in the shape your department marks it.
01 · Research proposal / synopsis · Synopsis 1,200–1,800 words
Project synopsis: model, analysis plan and numerical experiments
The synopsis is what your supervisor approves in weeks 1–2, and it fixes the model, the parameter values and the experiments before any code is written. Bangalore University's M.Sc Mathematics scheme gives Project Work 4 credits and 100 marks: 70 for the dissertation and 30 for the presentation and viva, conducted by internal and external examiners. A computational study whose step sizes or tolerances were chosen after seeing the plots is hard to defend in the viva.
Structure
1Title and problem.Model, vaccination term, the three schemes compared and the software, in one line.
2Model and assumptions.The normalised SIRV equations with β, γ, μ and ν, and each assumption stated: homogeneous mixing, constant population, permanent immunity.
3Analytical goals.Disease-free and endemic equilibria, R_v, the critical vaccination rate and local stability by the Jacobian and Routh–Hurwitz.
4Numerical schemes.Explicit Euler, classical RK4 and ABM4 predictor–corrector with RK4 start-up, all hand-coded, against Scilab's ode as reference.
5Experiments.Step sizes, the error norm, observed order, function-evaluation cost, the stability sweep and the peak-versus-ν study.
6Parameters.The illustrative values, labelled clearly as hypothetical and not estimates for any real disease.
7Tools and timeline.Maxima for symbolic work, Scilab for numerics, LaTeX and Beamer for the report and slides, and the 16-week plan.
The dissertation carries 70 of the 100 marks and is typeset in LaTeX as the scheme's M404P practical expects. A fixed chapter order that separates the analysis from the numerics, and shows Maxima and Scilab work explicitly, matches what the internal and external examiners look for.
Structure
1Front matter.Title page, certificate signed by supervisor and HOD, declaration, acknowledgements, abstract, contents, lists of figures and tables.
2Chapter 1 — Introduction.Compartmental models, why vaccination terms matter, why numerical method choice matters, and the objectives.
3Chapter 2 — Preliminaries.Existence and uniqueness, linearisation and Routh–Hurwitz; one-step and multistep methods, local and global error.
4Chapter 3 — Model analysis.Invariance, equilibria, R_v, critical ν and stability, with Maxima output reproduced in LaTeX.
5Chapter 4 — Numerical methods.Euler, RK4 and ABM4 derivations, start-up, cost per step, and the verification on dy/dt = −y.
6Chapter 5 — Experiments and results.Convergence, cost, stability and the peak study, one section per experiment.
7Chapter 6 — Discussion and conclusion.Which method to use when, the meaning of R_v < 1 versus the first wave, and limitations.
8References and appendices.Bibliography in the department's style; Scilab and Maxima listings in appendices.
How it is usually marked
Marking rubric for LaTeX dissertation chapter scheme
Self-check: model and assumptions stated precisely
15
Self-check: analytical results derived and verified symbolically
20
Self-check: schemes implemented and verified on a test problem
20
Self-check: experiments answer each objective with a table or figure
Self-check: LaTeX typesetting, references and listings
10
Worked exemplar
254 words · unlocks with the project · ₹2,000
03 · Master chart / data sheet
Experiment log: error, cost and stability per run
Every number in the results chapter comes from a scripted run. A sheet with one row per method and step size, holding the error, the evaluation count and the stability outcome, is the single source for the convergence table and the log–log plots, and lets you answer any viva question about a particular run.
Structure
1Run identity.Method, step size h, vaccination rate ν and the script that produced the row.
2Accuracy.Global error E(h) as the maximum infinity-norm difference from the reference over the output grid.
3Order.Observed order log2(E(2h)/E(h)), computed by formula from the previous row.
4Cost.Total right-hand-side evaluations for the whole run, including start-up steps.
5Behaviour.Whether the solution stayed non-negative and monotone where expected, and the peak height and day.
Worked exemplar
241 words · unlocks with the project · ₹2,000
Editable .xlsx sheet: SIR Numerical Study — Experiment Log unlocks
04 · Results tables & figures plan · Results chapter about 10–12 pages
Results chapter plan: tables and figures
Planning the figures before running the experiments keeps Chapter 5 tied to the eight objectives and avoids a chapter full of time-series plots that all look alike. The convergence plot and the peak-versus-ν figure carry most of the discussion.
Structure
1Table 1 — Analytical results.Equilibria, R0, R_v for each ν, critical ν and the stability verdict.
2Figure 1 — Solution curves.S, I and R over 365 days for ν = 0 and one vaccinated case, from the reference solution.
3Table 2 — Verification.Errors on dy/dt = −y at t = 1 for each method and step size, with the expected ratios.
4Figure 2 — Convergence.Log–log plot of E(h) against h for all three methods, with slope-1 and slope-4 guide lines.
5Figure 3 — Cost.E against RHS evaluations on log–log axes, which is the fair comparison between methods.
6Table 3 — Stability limits.Largest h for which each method stays non-negative and qualitatively correct, related to the linearised eigenvalues.
7Figure 4 — Peak sensitivity.I_max and t_peak against ν from RK4 at a verified step size.
Worked exemplar
246 words · unlocks with the project · ₹2,000
05 · Statistical analysis plan
Error-analysis plan: reference solution, norms and observed order
A numerical-methods dissertation is judged on whether its error figures can be trusted. This plan fixes the reference solution, the error norm, how the observed order is estimated and which runs are excluded, before any experiment is run.
Structure
1Reference solution.Scilab ode with rtol = atol = 10⁻¹², checked by halving tolerances once and confirming the change is below 10⁻¹⁰.
2Common output grid.Compare every method only at the times shared by all step sizes, for example every 2 days.
3Error norm.E(h) = maximum over the grid of the infinity norm of (S, I, R) minus the reference.
4Observed order.p = log2(E(2h)/E(h)) for consecutive step sizes; report p for each pair, not one averaged value.
5Exclusion rule.Exclude pairs where E(h) is within a factor of 10 of the reference accuracy, and say so.
6Stability criterion.A run is unstable if any compartment goes negative or the solution oscillates where the reference does not.
States the compartments, parameters and assumptions (homogeneous mixing, constant population, vaccination of susceptibles only), proves that the feasible region S, I, R ≥ 0 with S + I + R = 1 is positively invariant, and reduces the system to two equations.
Package 02
Module 2 — Symbolic analysis in Maxima
Derives both equilibria, the reproduction number R_v and the critical vaccination rate, computes the Jacobian and its eigenvalues at the disease-free equilibrium, and applies trace–determinant (Routh–Hurwitz) conditions at the endemic equilibrium.
Package 03
Module 3 — Numerical schemes in Scilab
Implements explicit Euler, classical RK4 and the ABM4 predictor–corrector with RK4 start-up as reusable Scilab functions, verifies them on dy/dt = −y with a known exact solution, and computes the tight-tolerance reference solution with ode.
Package 04
Module 4 — Convergence, cost and stability study
Runs every scheme over a ladder of step sizes, tabulates maximum global error and observed order, plots error against function evaluations on log–log axes and finds the largest stable step for each method, relating it to the eigenvalues.
Package 05
Module 5 — Vaccination sensitivity and documentation
Records peak infection level and timing for several vaccination rates, checks the results against the analytical threshold, and assembles the LaTeX dissertation (M404P) with figures, tables and appendices plus the Beamer presentation.
Slides
12 slides · titles free · bullets, notes and the .pptx unlock
Slide 1
SIR Model with Vaccination: RK4 versus ABM
Slide 2
Motivation
Slide 3
The model
Slide 4
Equilibria and R_v (Maxima)
Slide 5
Local stability
Slide 6
Numerical schemes
Slide 7
Verification and reference solution
Slide 8
Convergence results
Slide 9
Cost and stability
Slide 10
Effect of vaccination on the peak
Slide 11
Tools used
Slide 12
Conclusions and future work
Bullets, speaker notes and the .pptx · ₹2,000
The titles above are the real outline. The rest is what you present from.
Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.
01Concept
Derive the basic reproduction number for your model.
At the disease-free equilibrium S0 = μ/(μ+ν). The infected equation linearised there is I' = (βS0 − (γ+μ))I, so infection grows when βS0 exceeds γ+μ. The ratio βS0/(γ+μ) = βμ/((μ+ν)(γ+μ)) is R_v, the average number of secondary infections by one case in the vaccinated population.
02Concept
What is the critical vaccination rate and how did you obtain it?
Setting R_v < 1 gives βμ < (μ+ν)(γ+μ), which rearranges to ν > βμ/(γ+μ) − μ = μ(R0 − 1), where R0 = β/(γ+μ) is the reproduction number without vaccination. Above this rate the disease-free equilibrium is locally stable.
03Concept
Why can you drop the R equation in the stability analysis?
Adding the three equations gives d(S+I+R)/dt = μ − μ(S+I+R), so with S+I+R = 1 initially the total stays 1. R = 1 − S − I is then determined by S and I, and R does not appear in the S or I equations, so stability of the (S, I) subsystem decides everything.
+12 more questions, with answers
Try the free ones out loud first. Your examiner will not accept “it's in the PPT”.
OnlyProjects. (2026). Numerical Study of an SIR Epidemic Model with Vaccination: RK4 versus Adams–Bashforth–Moulton in Scilab: M.Sc Mathematics project bundle [Educational resource]. https://onlyprojects.online/projects/msc-maths-sir-vaccination-model-rk4-vs-abm-scilab
Future scope
1 min read
Global stability of the equilibria using Lyapunov functions and LaSalle's invariance principle.
Extending to SEIR, SIRS or age-structured models and comparing their reproduction numbers.
Optimal control of the vaccination rate using Pontryagin's maximum principle, solved by a forward–backward sweep in Scilab.
Comparing explicit schemes with implicit and adaptive methods on a deliberately stiff parameter set.
Parameter estimation by least squares from an openly available, properly cited dataset.
Keep browsing
More M.Sc Mathematics projects
Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.