Yang-Mills functional