Integral when solving ordinary differential equation

53 Views Asked by At

When solving a simple first-order differential equation, say $$\frac {z^{\prime}(w)} {z(w)}=-\frac a w \text ,$$ my lecture note shows first $$\int^{w}\frac{z^{\prime}(r)} {z(r)} \mathrm d r=-a \int^{w}\frac 1 r \mathrm d r+C$$ and then $$\ln z(w)=-a \ln w+C \text .$$ I want to know how is the integral in last step done? And why do we write things like $\int^{w}$? If for example it is $\int^{w}_0$, isn't the integral undefined?

1

There are 1 best solutions below

0
On

You have $$ (\ln z(r))'=z'(r)/z(r)=-a/r. $$ Integrate on both sides $$ \ln(w)=-a\ln(r)+C. $$ If you use lower bound, for example v, then we do not need to add the constant $C$ and we have $$ \int_{v}^w(\ln z(r))'dr=\ln z(w)-\ln z(v) $$ equals $$ -a\int_{v}^w\frac{1}{r}dr=-a\ln w+a\ln v. $$ i.e $$ \ln z(w)=-a\ln w+\ln z(v)+a\ln v. $$ where $C=\ln z(v)+a\ln v$.