Compute $$\iint_D \frac{1}{(1+(x+2y)^2)^2} \,dx\,dy$$ where $D$ is given by $x \geq 0 , \, y \geq 0, \, 1 \leq x+2y \leq 2 \\$.
I am supposed to solve it with the help of contour lines. By drawing $D$ we get a trapezoid with the corners $(1,0), \, (2,0), \, (0, 1/2), \, (0,1)$. A contour line $\gamma$ to $f(x,y) = x+2y$ would be a line segment with end points $(\lambda, \frac{\lambda}{2})$. Consider the area of a trapezoid bounded by the line segment and the line segment with corners $(0, \frac{1}{2}), \, (1,0)$: $$ A(\lambda) = \frac{1}{2}(\sqrt{(1/2)^2+1}+\sqrt{\lambda + (\lambda /2)^2)})\sqrt{(\lambda-1)^2+(\lambda/2-1/2)^2} = \frac{1}{2} \sqrt{5/4} (\lambda +1)(\lambda -1)\sqrt{5/4}=\frac{5}{8} (\lambda^2-1) $$ where, on the right side of the first equality, we are taking the mean of the sides of the trapezoid times the height. The derivative is $A'(\lambda) = \frac{5}{4}\lambda$. The double integral can be computed as a single integral: $$\int_{\lambda=1}^{\lambda=2} \frac{1}{(1+\lambda^2)^2} \frac{5}{4} \lambda \, d \lambda =\cdots=3/16$$ This answer is wrong. The answer sheet says it is $3/40$. What have I done wrong?