It is known that \int0^3\int0^3e^{\max{\{x,\,y\}}}\,dydx=ae^3+b where a and b are…
- User
It is known that \int_0^3\int_0^3e^{\max{{x,,y}}},dydx=ae^3+b where a and b are integers. Determine the value of a-b.
- Assistant
Firstly, note that [\begin{aligned}&\max { x, y } = \left{ \begin{array}{cc}x ,& x>y\ y,& x<y \end{array}\right. . \end{aligned}] Divide the square with vertices , , , and into two triangles with vertices , , and , and , , and . in the first and in the second. So [\begin{aligned}&\int_0^{3}\int_0^3e^{\max{{x,,y}}}, dy dx \ &= \int_0^{3}\int_0^x e^{x}, dy dx + \int_0^{3}\int_x^3 e^y , dy dx . \end{aligned}]Now, note that [\begin{aligned}&\int_0^x e^x , dy = e^x \int_0^x dy = e^x \cdot x , \end{aligned}]and [\begin{aligned}&\int_x^3 e^y , dy = \left[ - e^y \right]_x^3 = - e^3 + e^x . \end{aligned}]Thus, our equation becomes [\begin{aligned}&\int_0^{3}\int_0^3e^{\max{{x,,y}}}, dy dx \ &= \int_0^{3}( xe^x , dx ) + \int_0^{3}( - e^3 + e^x , dx ) \ &= e^3 \cdot 3 - 1 - \frac{1}{2}\int_0^3 e^{2x} , ( 2 , dx ) \ &= ae^3+b, \end{aligned}]by . Simplifying yields [\begin{aligned}&3e^3 - 1 - \frac{1}{2}( 2e^6 - 2) = ae^3 + b . \end{aligned}]Equating coefficients of and constant terms, we find and . We then find and , and it follows that .