handled two solution closed form