Recursive Function for Virus Spread: Finding the General Solution

Click For Summary

Discussion Overview

The discussion revolves around finding a general solution for a recursive function that models the spread of a virus over several days. Participants explore the mathematical formulation of the problem, including patterns observed in the number of infected individuals and the derivation of a recurrence relation.

Discussion Character

  • Mathematical reasoning
  • Exploratory
  • Homework-related

Main Points Raised

  • One participant expresses difficulty with a specific part of the problem and seeks assistance.
  • Another participant prompts for the initial conditions or results from the first part of the question.
  • A participant outlines the progression of virus spread over several days, calculating the total number of infected individuals and identifying a pattern that suggests the number of sick people on the nth day is $3^{n-1}$.
  • Further, the same participant derives a recurrence relation $x_{n+1} = 3x_n$ and verifies that $x_n = 3^{n-1}$ satisfies this relation, confirming the initial condition.
  • Another participant suggests that a more sophisticated mathematical approach could have started from the recurrence relation, leading to a general solution of the form $x_n = C3^n$, determining the constant C based on the initial condition.

Areas of Agreement / Disagreement

Participants generally agree on the recurrence relation and the derived solution, but there is no explicit consensus on the approach taken or the necessity of the initial conditions. The discussion remains exploratory with different perspectives on how to derive the solution.

Contextual Notes

There are assumptions about the initial conditions and the nature of the virus spread that are not fully explored. The derivation of the general solution relies on the recurrence relation, which may depend on the interpretation of the problem.

Tekilou
Messages
1
Reaction score
0
Could anyone please help me I am especially stuck on the second part of the question. Thanks very much I really appreciate it.
20220219_235603.jpg
 
Physics news on Phys.org
What did you have for part (i)?
 
Did you try writing a few numbers to see if you can see a pattern?

On the first day 1 person has the virus and he gives it to 2 other people.

On the second day 1+ 2= 3 people have the virus.
Each of the 3 give the virus to 2 people, a total of 6 new people.

On the third day, 3+ 6= 9 people have the virus.
Each of the 9 people give the virus to 2 people, a total of 18 new people.

On the fourth day a total of 9+ 18= 27 people have the virus.
Each of the 27 people give the virus to 2 people, a total of 54 new people.

On the fifth day a total of 27+ 54= 81 people have the virus.
Each of the 81 people give the virus to 2 people, a total of 162 new people.

On the sixth day a total of 81+ 162= 243 people have the virus.So far we have 1, 3, 9, 27, 81, 243. I see that those are all powers of 3!
$1= 3^0$, $3= 3^1$, $9= 3^2$, $27= 3^3$, $81= 3^4$, $243=3^5$.

I would conjecture that the number of sick people on the nth day is $3^{n-1}$.

Let $x_n$ be the number of sick people on the nth day. Those $x_n$ people each give the virus to 2 people for a total of $2x_n$ new people so on the n+1 day, $x_{n+1}= x_n+ 2x_n= 3x_n$. Does $x_n= 3^{n-1}$ satisfy that? $x_{n+1}= 3^{n+ 1-1}= 3^n= 3^n+ 2(3^n)= 3(3^n)= 3^{n+1}$. Yes, $x_n= 3^{n-1}$ satisfies this "recurrance relation". Further, $x_1= 3^{1- 1}= 3^0= 1$ as required.
 
IF we were a little more "mathematically sophisticated" we could have started from the "recurrence relation". If, on the nth day, $x_n$ people have the virus, each person gives the virus to two new people so a total of $2x_n$ new people. On the n+1 day, $x_{n+ 1}= x_n+ 2x_n= 3x_n$. Since we are repeatedly multiplying by 3, it is easy to see that the general solution to $x_{n+ 1}= 3x_n$ is $x_n= C3^n$ for some constant, C. We have $x_1= 1$ so must have $1= C(3^1)= 3C$ so $C=\frac{1}{3}$. $x_n= \left(\frac{1}{3}\right)3^{n}= 3^{n- 1}$.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K