So f(t)=(2+B)+At for unknown constants A,B. Substitute this linear form back to get two equations.
Equation for A:A=∫01[(2+B)+Ax]dx=(2+B)+2A⇒2A=2+B⇒A=4+2B.
Equation for B:B=∫01x[(2+B)+Ax]dx=22+B+3A.
Multiply by 6 and insert A=4+2B:
6B=3(2+B)+2(4+2B)=14+7B⇒B=−14,A=4+2(−14)=−24.
Hence
f(t)=(2+B)+At=−12−24t.
Check:∫01f=−24=A and ∫01xf=−14=B, and 2+At+B=−12−24t=f(t). ✓
Set f(α)=0:
−12−24α=0⇒α=−2412=−21.
Exam trick: When the kernel splits as a sum/product of a t-part and an x-part (a separable/degenerate kernel), the unknown f is forced into a finite-dimensional form (here a line at+b). Plug that form back and solve the small linear system for the integral constants — no calculus of variations needed.