The trick for the first problem is to look at both sides of the equation as functions of and differentiate them, using the Chain Rule for .
This gives us
For the second problem, it is useful to ask what constants and could make the equation
true. This way, the integrands are simplified. In finding and , we use the fact that the equation must hold for all , not just one value.