scalar decomposition notes