f= c*(p - g)*((t (2) - t (1)) - a*(t (1) - t (2))^(b + 1)/(b + 1)) + g*(t (2) + a*(t (2)^(b + 1)/(b + 1))) + (c*(p - g)/(a*b))*((-b + 3)*(t (1) - t (2))^(-b + 3)/2 - 3*(t (1) - t (2))^2/((b + 1)*(b + 2))) + (g/a*b)*((-b + 3) t (2)^(-b + 2) + (2a*t (2)/((b + 1)*(b + 2))));

t1 and t2 are variables

value of ‘a’ and ‘b’ are 00, rest of them are constants