syms R1 A w t tau iL(t)

%

Vs = A * sin(w * t)

%

ode = tau * diff(iL, t) + iL == Vs / R1

%

DiL = diff(iL, t)
dsolve(ode, DiL(0)==0)