Solution of the HJB Equations Involved in Utility-Based Pricing