The area under a curve between two points can be found out by doing the integral between the two points. In other words, the integral
![\int ^7_0f(x)dx\text{ = Area betw}een\text{ x=1 and x=2 + Area betw}een\text{ x=2 and x=4 + Area betwe}en\text{ x=4 and x=5 - Area betw}een\text{ x=5 and x=7}]()
Let's make a picture of the problem
Then, the integral will be equal to
![\int ^7_0f(x)dx\text{ = Area black zone + Area red zone + Area gr}een\text{ zone - Area blue zone}](https://img.qammunity.org/2023/formulas/mathematics/high-school/dht2zinv5tdped3w3ul4yclktul3nlw737.png)
The area of the black region is given by the area of the triangular part plus the rectangular part, that is
![\begin{gathered} \text{ Area black zone = }(1)/(2)2*1+2*1 \\ \text{ Area black zone =}1+2 \\ \text{ Area black zone =}3 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/gsm0klsuvqyi3guc24wf1kmjts7bs1dhb8.png)
The area of the red zone is the area of the rectangle
![\begin{gathered} \text{ Area red zone = 2}*2 \\ \text{ Area red zone =}4 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/2skogeo043fp0t96y7z16jzmoi7qxtbx75.png)
The green area is equal to the area of the green triangle,
![\begin{gathered} \text{ Area gre}en\text{ zone=}(1)/(2)1*2 \\ \text{ Area gre}en\text{ zone=}1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/j3gm6888prtwdbar34bwdmh8zjjkayxz9q.png)
and the blue area is the area of the blue triangle,
![\begin{gathered} \text{ Area blue zone = }(1)/(2)2*2 \\ \text{ Area blue zone = }2 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/v36b3arb69m313n8t9zsdoi088ao3x8wgv.png)
By substituting these values, the integral is given by
![\int ^7_0f(x)dx\text{ = }3+4+1-2](https://img.qammunity.org/2023/formulas/mathematics/high-school/4ay2tu5ja88sysyp9zkgdd75euf0tulo5o.png)
Therefore, the answer is:
![\int ^7_0f(x)dx\text{ = }6](https://img.qammunity.org/2023/formulas/mathematics/high-school/jcecthszub3itx0zseiytsrnq3a3imqy2f.png)