Abstract-Linear-quadratic controllers for tracking natural and composite trajectories of nonlinear dynamical systems evoluting over compact sets are developed. Typically, such systems exhibit "complicated dynamics," i.e., have nontrivial recurrence. The controllers, which use small perturbations of the nominal dynamics as input actuators, are based on modeling the tracking error as a linear dynamically varying (LDV) system. Necessary and sufficient conditions for the existence of such a controller are linked to the existence of a bounded solution to a functional algebraic Riccati equation (FARE). It is shown that, despite the lack of continuity of the asymptotic trajectory relative to initial conditions, the cost to stabilize about the trajectory, as given by the solution to the FARE, is continuous. An ergodic theory method for solving the FARE is presented. Furthermore, it is shown that wrapping the LDV controller around the nonlinear system secures a stable tracking dynamics. Finally, an example of controlling the Hénon map to follow an aperiodic orbit is presented.