We need to find the area enclosed between the parabola y2=2x and the line x+y=4, i.e., x=4−y.
Finding the intersection points: Substituting x=y2/2 into x+y=4:
2y2+y=4
y2+2y−8=0
(y+4)(y−2)=0
So y=−4 and y=2.
The corresponding x values: when y=2, x=2; when y=−4, x=8.
Integrating with respect to y (the line is to the right of the parabola for y∈[−4,2]):
A=∫−42[(4−y)−2y2]dy
=∫−42(4−y−2y2)dy
=[4y−2y2−6y3]−42
At y=2: 8−2−68=6−34=314
At y=−4: −16−8+664=−24+332=3−72+32=3−40
A=314−3−40=314+40=354=18
The correct answer is 18.