We have (f(7)−f(2))(f(7))2+(f(2))2+f(7)f(2)3=kf2(c)f′(c)
⇒f(7))3−(f(2))3=3kf2(c)f′(c)
Let us consider the function g(x)=(f(x))3 which is continuous in [2,7] and differentiable in (2,7).
Then from Lagrange's mean value theorem, there exists at least one c∈(2,7) such that
g′(c)=g(7)−g(2)7−2
⇒g′(c)=(f(7))3−(f(2))37−2=3f2(c)f′(c)
⇒(f(7)−f(2))(f(7))2+(f(2))2+f(7)f(2)3=5f2(c)f′(c)