integrate ln(cost)