3. (a) Starting from the general form of a Hamiltonian function that $H = H(q_i, p_i, t)$ for
$i = 1, ..., n$ where $n$ represents the number of degrees of freedom of the mechanical
system, show that
$$\frac{dH}{dt} = \frac{\partial H}{\partial t}.$$
(b) Applying the fundamental Poisson brackets to check whether the mechanical observ-
able
$$f(q, p,t) = psin \omega t - m\omega q cos \omega t$$
is an integral of motion for the linear harmonic oscillator.
(c) Confirm the above result by a direct calculation of the total time derivative of
$f(q, p, t)$.