Simple ODE need to double check if correct

Can some one tell me if i am correct or completely off

$\displaystyle \frac{dP}{dA} = h(1-P)-rP$ with initial condition $\displaystyle P(0)=1$

here $\displaystyle r$ and $\displaystyle h$ are constants.

$\displaystyle \frac{dP}{dA} = h(1-P)-rP$

by substitution

$\displaystyle \frac{log(h-ph-pr)}{h+r}=-A+C$

therefore

$\displaystyle h-ph-pr=Ce^{-A(h+r)}$

$\displaystyle p=\frac{h}{h+r}-Ce^{-A(h+r)}$

using condition $\displaystyle p(0)=1$

$\displaystyle C=\frac{h}{h+r}-1}$

the solution is

$\displaystyle p=\frac{h}{h+r} - \frac{h}{h+r}e^{-A(h+r)} + e^{-A(h+r)}$

which can be factored as

$\displaystyle p=\frac{h+re^{-A(h+r)}}{h+r}$

is this correct?

**this is in reference to the paper in Malaria Journal Smith et al 2007 'Standardising estimates of the Plasmodium Falciparum parasire rate' this equation is listed on page 3 and i cant recapture their solution**

their solution is

$\displaystyle p=\frac{h}{h+r} (1-e^{-A(h+r)})$

__I must be doing something stupid__

Re: Simple ODE need to double check if correct

In the referenced paper, the solution corresponds to the condition p(0)=0

while your solution corresponds to p(0)=1.

Re: Simple ODE need to double check if correct

Thank you JJacquelin. They have miss specified the initial condition in the paper then.

Thanks for your time and input