How do I solve the following IVP problem in Mathematica so that I get real solutions?
$Q'(t)=b - \dfrac{Q(t)}{100-t}; \quad Q(0)=250$
I tried the following:
$\text{$\$$Assumptions}=b>0;\text{$\$$Assumptions}=t>0;$
$f=\text{DSolve}\left[\left\{Q'(t)=b-\frac{Q(t)}{100-t},Q(0)=250\right\},Q,t\right][[1,1,2]]$
$f(t)$
which results in the following:
$\frac{1}{2} (-2 i \pi b t-2 b t \log (100)-200 b \log (t-100)+2 b t \log (t-100)+200 i \pi b+200 b \log (100)-5 t+500)$
Any help would be much appreciated. Thanks!!!
$Assumptions = t <100
before yourDSolve
. $\endgroup$