function xprime = g(t,x)
global a
% 
% right hand of an equation
%
xprime = -2*x + sin(t); 

% Exact solution to the initial condition x(0)=x0: 
% x(t) = (x0-.4)exp(-2*t)+.2*sin(t)+.4*cos(t)