Duality and linear approximations in Hochschild homology, K-theory, and string topology