# solve the differential equation dP/ dt = P − P2?

solve for y

By P2, do you mean P^2? By “solve for y”, do you mean “solve for P?” In this case, it’s just a breakable ODE:
dP/dt = P – P^2
1/(P – P^2)dP = dt
∫1/(P – P^2)dP = ∫dt
∫1/(P – P^2)dP = t + c, where c is a constant

To do the left integral, use the method of partial fractions. PP^2 factors for P(1-P), so we want to rewrite 1/(PP^2) as A/P+B/(1-P) for some constants A and B. So we have:
1/[P(1-P)] = A/P + B/(1-P)
A(1-P) + PA = 1
When P is 1, we have A(1-1)+B(1)=1, or B=1.
When P is 0, we have A(1-0)+B(0)=1, or A=1.
Thus, we can rewrite 1/(PP^2) as 1/P+1/(1-P).

By integrating the left side of the ODE, we have:
∫1/(P – P^2)dP
∫[1/P + 1/(1-P)]dP
∫(1/P)dP + ∫1/(1-P)dP
ln(P) + ∫1/(1-P)dP

To make the second integral, make a substitution u:
u = 1-P, du = -dP
ln(P) – ∫(1/u)du
ln(P) – ln(u)
ln(P) – ln(1-P)
in[P/(1-P)]

Plugging this back into the ODE, we have:
in[P/(1-P)] = t + c
e^ln[P/(1-P)] = e^(t + c)
P/(1-P) = e^t * e^c
P/(1-P) = ke^t, where k is a constant equal to e^c
P = (1-P)ke^t
P = ke^t – Pke^t
P + Pke^t = ke^t
P(1 + ke^t) = ke^t
P = ke^t / (1 + ke^t)
P = e^t/(1/k + e^t)
P = e^t / (d + e^t), where d is a constant equal to 1/k

So the general solution for ODE is P = e^t / (d + e^t), where d is a constant.

Edit:
@Paul, ln(PP^2) is not a primitive of 1/(PP^2).

Edit:
Who voted against my answer, do you want to explain why? I’m pretty sure I did everything right, but if I made a mistake, I’d like to know where.

Do you mean to P?

dP/P(1 – P) = dt

Integration on both sides:

-ln|1 – P| + ln|P| = t + C

P/(1 – P) = Ce^

Related Posts
How to become a Fundraising Manager?

How do I become a fundraiser? If you want to become a fundraising manager, this profession comes with great responsibilities. Let us know more about How to Become a Fundraising Manager? and some other related details. If you want to become a fundraising manager, this profession comes with great responsibilities. The responsibility of fundraising managers is to oversee all fundraising functions for the company or organizations they work for. It can be said that behind a successful business there is the expert hand of the fundraiser. Thanks to their advice, the company makes a profit.Who is a fundraising manager?A fundraising manager is a person who has leadership quality and holds a senior position in a fundraising or development company. Fundraising and fundraising have a little difference. a fund development manager has the role of strategically directing fundraising, while fundraising means raising money for the business. The manager's job is to develop and execute strategies for the organization the manager works for. they also involve the varieties of strategic planning of fundraising actions. Proper planning and visualization of fundraising campaigns is also handled by the fundraising manager. A manager's job varies from day to day depending on the type of fundraising Read more

How to Become a Jet Engine Mechanic?

How to become a jet engine mechanic? The job of the jet engine mechanic of the era is to check and maintain the aircraft equipment and repair if there is a problem with the aircraft and to operate the aircraft properly and in good condition. completely safe. Let us know more about Jet Engine MEchanics in this article. The jet engine mechanic's job for the day is to check and maintain aircraft equipment and repair if there is a problem with the aircraft and to operate the aircraft properly and safely. security. includes responsibilities to inspect the aircraft and maintain aircraft maintenance. They are experts in repairing and identifying the problem by seeing the symptoms on the aircraft. They may be involved in work on small planes, large planes and helicopters.Responsibilities of a Jet Engine MechanicJet mechanics have to inspect and examine different components of the plane to see if they are working properly or not.They should also check the landing gear and hydraulics, and see if there are any cracks, breaks, leaks, and other common issues on an aircraft.The jet mechanic must be able to read and explain the aircraft maintenance issue and other aircraft technical issues.While servicing an Read more