RLC Circuit Driven by Periodic Signal and White Noise

Consider an electrical circuit consisting of a resistor, inductor, and capacitor connected in series. The circuit is under external voltage, which is a superposition of a periodic signal and a white noise.

    
In[1]:=
Click for copyable input
Out[1]=
Define the parameters of the model:
In[2]:=
Click for copyable input
Compute the mean function, i.e. the mean value of the charge of the capacitor as a function of time:
In[3]:=
Click for copyable input
Out[3]=
Solve the deterministic problem in the absence of noise and compare with the mean function:
In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=
Compute the variance function:
In[6]:=
Click for copyable input
Out[6]=
Simulate the model using a strong order 1.5 KloedenPlatenSchurz scheme:
In[7]:=
Click for copyable input
Out[7]=
Visualize simulated paths:
In[8]:=
Click for copyable input
Out[8]=
Visualize a 95% confidence band about the mean function:
In[9]:=
Click for copyable input
Out[9]=
Combine the plots together.
In[10]:=
Click for copyable input
Out[10]=