On the Pauli-Van Vleck formula for arbitrary quadratic systems with memory in one dimension