\(f'\left(x\right)=-e^x.f^2\left(x\right)\Leftrightarrow\frac{f'\left(x\right)}{f^2\left(x\right)}=-e^x\)
Lấy nguyên hàm 2 vế:
\(\int\frac{f'\left(x\right)}{f^2\left(x\right)}dx=-\int e^xdx\)
\(\Rightarrow-\frac{1}{f\left(x\right)}=-e^x-C\)
\(\Rightarrow f\left(x\right)=\frac{1}{e^x+C}\)
\(f\left(0\right)=\frac{1}{2}\Rightarrow\frac{1}{1+C}=\frac{1}{2}\Rightarrow C=1\)
\(\Rightarrow f\left(x\right)=\frac{1}{e^x+1}\Rightarrow f\left(ln2\right)=\frac{1}{e^{ln2}+1}=\frac{1}{3}\)