Question: Plot DE solution with unapply

I want to use the solutuion of a DE as a function, including the possibility to plot it.

I have found out that the following comands work, but I cannot undesrtand why. Is there a simpler way?

Truly, Roberto R. Baldino

sol := dsolve({eq, icon}, i(t));
i := unapply(eval(i(t), sol), t);
plot(i(t), t = 0 .. 20, view = [-1 .. 20, -3 .. 3], gridlines);

Please Wait...