A universal quantum work relation is proved for isolated time-dependent Hamiltonian systems in a magnetic field as the consequence of microreversibility. This relation involves a functional of an arbitrary observable. The quantum Jarzynski equality is recovered in the case this observable vanishes. The Green-Kubo formula and the Casimir-Onsager reciprocity relations are deduced thereof in the linear response regime.Nonequilibrium work relations have recently attracted much interest [1,2]. They provide relations for the work dissipated in time-dependent driven systems, independently of the form of the driving. They are of great interest to evaluate free energies under general nonequilibrium conditions and they provide new methods to study nanosystems. In the nanoscopic world, the extension of these classical relations to quantum systems is of particular importance and different approaches have been proposed.A first scheme was introduced by Kurchan [3]. In this framework, a measurement of the system state is performed at the initial time. In the sequel, the system is perturbed by a time-dependent Hamiltonian before performing another measurement at the final time. The random work performed on the system is associated with the energy difference between the final and initial eigenstates. This setup leads to the quantum extension of Jarzynski equality and Crooks fluctuation theorem [4,5,6,7]. Another possibility is to introduce a quantum work operator which measures the energy difference [8], in which cases quantum corrections to the fluctuation theorem must be taken into account. On the other hand, quantum fluctuation theorems have been obtained in suitable limits where the dynamics admits a Markovian description, allowing in particular the applications to nonequilibrium steady states [9,10,11,12,13,14]. Yet, the connection between the quantum work relations and response theory is still an open question even in the linear regime.The purpose of the present paper is to derive a new type of work relations which involves a functional of an arbitrary observable. This generating functional can be related to another functional but averaged over the timereversed process. This new work relation turns out to be of great generality since we can recover known results such as Jarzynski equality as special cases. Furthermore, this universal work relation allows us to formulate the response theory, to derive the quantum linear response functions, the quantum Green-Kubo relations [15,16], as well as the Casimir-Onsager reciprocity relations [17,18] in the regime close to the thermodynamic equilibrium.Functional symmetry relations. We suppose that the system is described by a Hamiltonian operator H(t; B) which depends on the time t and the magnetic field B. The time-reversal operator Θ is an antilinear operator such that Θ 2 = I and which has the effect of changing the sign of all odd parameters such as magnetic fields:We first introduce the forward process. The system is initially in thermal equilibrium at the inverse temperature β...