added alalytical_sol function file