connected with a sinusoidal ac source