I didn’t know It was a fundamental theorem questions so I solved it as an integral but I was informed and it helped me get to the solution above.