Consider the following ordinary differential equation with the boundary conditions provided (i.e. a boundary value problem: BVP)
y'' - y = ex, 0 < x < 2 y(0)=1, y(2)=1.
Find a quadratic polynomial approximate solution to the BVP using the collocation method with the collocation point at the centre of the domain x1 = 1.