We have to find the area of the region enclosed between the curve \(y^{2}=2 x\) and the straight line \(y=x\).
First draw the diagram
First find the point of intersection of the curve \({y}^{2}=2 {x}\) and the straight line \({y}={x}\)
Putting \(y=x\) in \(y^{2}=2 x\), we get
\( x^{2}=2 x\)
\( {x}^{2}-2 {x}=0\)
\( {x}({x}-2)=0\)
\( x=0\) or \(x=2\)
\( {y}=0\) or \({y}=2\)
Therefore, \((0,0)\) and \((2,2)\) are the point of intersection of the curve \({y}^{2}=2 {x}\) and the straight line \(y=x\)

We have to find the area of the region enclosed between the curve \(y^{2}=2 x\) and the straight line \(y=x\).
First draw the diagram
First find the point of intersection of the curve \({y}^{2}=2 {x}\) and the straight line \({y}={x}\)
Putting \(y=x\) in \(y^{2}=2 x\), we get
\( x^{2}=2 x\)
\( {x}^{2}-2 {x}=0\)
\( {x}({x}-2)=0\)
\( x=0\) or \(x=2\)
\( {y}=0\) or \({y}=2\)
Therefore, \((0,0)\) and \((2,2)\) are the point of intersection of the curve \({y}^{2}=2 {x}\) and the straight line \(y=x\)

The area under the curve \(y=f(x)\) between \(x=a\) and \(x=b\), is given by,
Area \(=\int_{{x}=0}^{{x}=2}f(x) \mathrm{d} {x}\)
Here \(f(x)=(\sqrt{2 x}-x)\)
Thus, Area \(=\int_{{x}=0}^{{x}=2}(\sqrt{2 {x}}-{x}) \mathrm{d} {x}\)
Area \(=\left[\frac{{x}^{\frac{3}{2}}}{\frac{3}{2}}-\frac{{x}^{2}}{2}\right]_{0}^{2}\)
Area \(=\left[\frac{2^{\frac{3}{2}}}{\frac{3}{2}}-\frac{2^{2}}{2}\right]-0\)
Area \(=\frac{2}{3}\)
Therefore, the area of the region enclosed between the curve \(y^{2}=2 x\) and the straight line \(y=x\) is \(\frac{2}{3}\).