A joint optimization approach to identifying sparse dynamics using least squares kernel collocation