Let's sketch graphs of functions f(x) and g(x) on one coordinate system (attachment).
Let's calculate the common points:
The area to be calculated is the area in the interval [0, 1] bounded by the graph g(x) and the axis x minus the area bounded by the graph f(x) and the axis x.