Series rlc circuit with ac source