Let $f$ be continuous on $[a,b]$, and differentiable on $(a,b)$, $\int_a^b f(x)dx=0$. Show that there exists two distinct $\xi,\eta\in(a,b)$, such that $$f'(\xi)(\xi-a)+f'(\eta)(\eta-b)+f(a)+f(b)=0$$.
My attempt: Let $F(x)=(x-a)[f(x)+f(a)]-\int_a^x f(t)dt$, $G(x)=(x-b)[f(x)+f(b)]-\int_b^x f(t)dt$. Then $F(a)=0, F(b)=-G(a), G(b)=0.$ And what we need is to show some $\xi\neq \eta$, such that $F'(\xi)+G'(\eta)=0$. Consider $0<c<1$, and by the Lagrange intermediate value, it suffices to show for some $c$, $\frac{F(c)}{c-a}+\frac{-G(c)}{b-c}=0$. But such a $c$ is not obvious by continuity.