Is ln(N-K) equal to ln(1-N/K);different approach different result,why?

  • Thread starter EvanOktavianus
  • Start date
  • Tags
    Approach
In summary, the author is having trouble integrating the logistic model. Different steps during the integration process produce different results. The first equation (which uses multiplication), generates ln (K-N), while the second equation (which uses substitution), generates ln (1-N/K).
  • #1
EvanOktavianus
3
0
Hi all,

I am new to the forum :) and was hoping that you guys could help me out with the problem i am facing when solving the logistic population model: taking different steps during the integration process seems to produce different results. I am very sorry for the long post :(

BACKGROUND
Here is the original DE model:
[itex]\frac{dN}{dt}[/itex]=rN(1-[itex]\frac{N}{K}[/itex]).
N is population number (endogenous variable), r is the reproduction rate (constant), K is the carrying capacity (contant). The (1-[itex]\frac{N}{K}[/itex]) part ensures that the population growth reduces as the population number approaches the carrying capacity limit.
To solve this DE, we integrate by separating the variables into:

[itex]\int[/itex] [itex]\frac{dN}{N(1-N/K)}[/itex]= [itex]\int[/itex] r dt

To solve the left side of the equation, we do a partial fraction technique which transforms the equation into:
[itex]\int[/itex] [itex]\frac{dN}{N}[/itex] + [itex]\int[/itex] [itex]\frac{dN}{K(1-N/K)}[/itex] = [itex]\int[/itex] r dt

PROBLEM
My problem is with the second integral equation [itex]\int[/itex] [itex]\frac{dN}{K(1-N/K)}[/itex]. It seems that there are two ways to proceed with this equation.
1. The first is to multiply the constant K to the variables within the parentheses: K(1-N/K) which produce (K-N). Thus, we have the following integration equation:
[itex]\int[/itex] [itex]\frac{dN}{K-N}[/itex]
To solve this we use substitution: let u=K-N, so du=-dN, hence dN=-du. Substituting this to the second integration equation produces the following equation:
[itex]\int[/itex] [itex]\frac{-du}{u}[/itex] = - ln u = - ln (K-N)
2. The second approach is to directly substitute u=1-N/K, du=-dN/K, dN=-K du. Substituting this produces:
[itex]\int[/itex] [itex]\frac{-du}{u}[/itex] = - ln u = - ln (1-N/K)

So, the first approach produces ln (K-N), while the second approach produces ln (1-N/K). Hm, I can't help to worry, that these two equation are not equal, are they?:confused:

Further combining this with the rest of the equation further produce different solutions.
1. With the first approach:
[itex]\int[/itex] [itex]\frac{dN}{N}[/itex] + [itex]\int[/itex] [itex]\frac{dN}{K(1-N/K)}[/itex] = [itex]\int[/itex] r dt
ln N - ln (K-N) = rt + C
ln [itex]\frac{N}{K-N}[/itex] = rt + C
[itex]\frac{N}{K-N}[/itex] = e[itex]^{rt+C}[/itex]
N(1+ e[itex]^{rt+C}[/itex])=Ke[itex]^{rt+C}[/itex]
N=[itex]\frac{KCe^{rt}}{1+Ce^{rt}}[/itex]
or, dividing by Ce[itex]^{rt}[/itex] some would also write that:
N=[itex]\frac{K}{1+Ce^{-rt}}[/itex]

2. With the second approach:
[itex]\int[/itex] [itex]\frac{dN}{N}[/itex] + [itex]\int[/itex] [itex]\frac{dN}{K(1-N/K)}[/itex] = [itex]\int[/itex] r dt
ln N - ln (1-N/K) = rt + C
ln ([itex]\frac{N}{1-N/K}[/itex]) = rt + C
[itex]\frac{N}{1-N/K}[/itex] = e[itex]^{rt+C}[/itex]
N = (1-N/K) e[itex]^{rt+C}[/itex]
N(1+[itex]e^{rt+C}\frac{N}{K}[/itex])= e[itex]^{rt+C}[/itex]
N=[itex]\frac{Ce^{rt}} {1+\frac{NCe^{rt}}{K}}[/itex]
multiplying by Ke[itex]^{-rt}[/itex] produces
N=[itex]\frac {KC} {Ke^{-rt}+C}[/itex]

QUESTION
In conclusion, taking different approach when solving the initial integral equation [itex]\int[/itex] [itex]\frac{dN}{K(1-N/K)}[/itex] produces different result, which lead to different final equation.
Directly multiplying K into (1-N/K) produces -ln (K-N) as a result of its integration, thus lead to the final solution of: N=[itex]\frac{K}{1+Ce^{-rt}}[/itex].
Directly substituting u=1-N/K, produces -ln (1-N/K) as a result of its integration, thus lead to the final solution of: N=[itex]\frac {KC} {Ke^{-rt}+C}[/itex].
I have checked the literatures, and it seems that different papers use different approaches and lead to different results. The wikipedia article on logistic model for example uses the second equation as the solution of the model, while others uses the first equation (i.e.: http://www.math.northwestern.edu/~mlerma/courses/math214-2-03f/notes/c2-logist.pdf).

I have checked the wolfram alpha math apps to integrate the [itex]\int[/itex] [itex]\frac{dN}{K(1-N/K)}[/itex]. It generates ln (K-N) as the solution, however also notes that this solution can also be written in the form of (1-N/K), as the two equation is equal in some restricted N and K. This confuses me even more. Does this mean that ln (K-N) equal ln (1-N/K)? The differential of both of them is offcourse equal, which is [itex]\frac{1}{K-N}[/itex]. But both equation produce different result, don't they?

In sum, my question is:
a. Why do different approaches of integration (directly multiplying vs directly substituting) produce different result? Is it normal that integration such simple equation produces different solution? How do we know which one is correct? ln(N-K) or ln(1-N/K)?
b. Or, to put it in another way, could it be possible that ln(N-K) equals to ln (1-N/K)? If they are, then the puzzled can be solved, but i don't see how they can be equal. Or more generally, is it possible that N=[itex]\frac{K}{1+Ce^{-rt}}[/itex] equal to N=[itex]\frac {KC} {Ke^{-rt}+C}[/itex].

Please help,,as i am starting to have nightmares and all sort,,haunted by this paradox
Again, I am very sorry for the long post :(
 
Physics news on Phys.org
  • #2
What forgot is that indefinite integration comes with an undetermined constant. You should not forget to write it. So in your first approach, you obtain

[tex]\int \frac{1}{K(1 - N/K)} dN = -\textrm{ln}(K-N) + C_1[/tex]

In your second approach, you get

[tex]\int \frac{1}{K(1 - N/K)} dN = -\textrm{ln}(1 - N/K) + C_2[/tex]

I write ##C_1## and ##C_2## because the constants don't need to equal. What the above means is that the primitive function you find is not unique, but only unique up to a constant. So if you find two primitives, then nobody says that they're equal. It's only claimed that they're equal up to a constant. Indeed:

[tex]-\textrm{ln}(K- N) = -\textrm{ln}(K(1-N/K)) = -\textrm{ln}(K) - \textrm{ln}(1-K/N)[/tex]

But ##-\textrm{ln}(K)## is a constant! So the two solutions are indeed equal up to a constant.

The same thing happens when you use these solutions to solve the ODE. You get a solution depending on a constant. But the two constants aren't equal. So you shouldn't be using ##C## for both.
 
  • #3
Oh gosh, you have released me from this burden haunting me the whole day :& hahaha. I did note that adding ln(K) would solve the problem but fail to notice that ln(K) can be considered as a constant for the integration result. Thank you so much :D
 
  • #4
Also, if you look at things purely mathematically, then you should have an absolute value:

[tex]\int \frac{1}{K-N}dN = - \textrm{ln}|K-N| + C[/tex]

But I guess it doesn't matter here since ##K-N## is always positive?
 
  • #5
The situation with the different "constants of integration" answer the question in your title:
"Is ln(N-K) equal to ln(1-N/K)"
No, it is not. But it is true the ln(N- K)= ln((-1/K)(1- N/K))= ln(-1/K)+ ln(1- N/K) so that ln(N-K) and ln(1- N/K) differ by the constant ln(-1/K).

Of course, for ln(-1/K) to exist, we must have K< 0 which makes sense because that is the only way both N-K and 1- N/K will be positive.
 

1. Is ln(N-K) equal to ln(1-N/K)?

Yes, ln(N-K) and ln(1-N/K) are equal. This is because they both represent the natural logarithm of the same value, which is (N-K). The difference in their notation is due to the fact that ln(1-N/K) is written in a simplified form.

2. Why do different approaches yield different results?

Different approaches may yield different results because they use different methods or assumptions. In this case, the difference in notation between ln(N-K) and ln(1-N/K) may lead to confusion and result in different answers. It is important to use consistent notation and follow proper mathematical rules when solving equations.

3. Can I use either ln(N-K) or ln(1-N/K) in my calculations?

Yes, you can use either notation as long as you are consistent throughout your calculations. Just be aware that ln(1-N/K) may lead to a simpler expression, but it ultimately represents the same value as ln(N-K).

4. What is the significance of natural logarithms in scientific calculations?

Natural logarithms are important in scientific calculations because they help to convert exponential functions into linear functions. This makes it easier to analyze and solve complex equations in various fields of science, such as physics, biology, and economics.

5. Can ln(N-K) or ln(1-N/K) be simplified further?

Yes, both ln(N-K) and ln(1-N/K) can be simplified further using logarithmic properties. For example, ln(N-K) can be rewritten as ln(N) + ln(1-K/N). However, it is important to note that this may not always lead to a simpler expression and may depend on the specific equation being solved.

Similar threads

  • Differential Equations
Replies
3
Views
1K
  • Differential Equations
Replies
16
Views
907
Replies
8
Views
2K
  • Advanced Physics Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
487
  • Differential Equations
Replies
1
Views
5K
Replies
4
Views
379
  • Calculus and Beyond Homework Help
Replies
2
Views
593
Replies
2
Views
580
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top