Double integral expressed by a second variable
<p>I'm having trouble with implementing double integral in Matlab.</p>

<p>Unlike other double integrals, I need the result of the first (inside) integral to be an expression of the second variable, before going through the second (outside) integral, as it must be powered by k.</p>

<p>For example:</p>

<p><img src="https://i.stack.imgur.com/Aqurv.png" alt="Click here"></p>

<p>In the example above, I need the result of the inside integral to be expressed as 2y, so that I can calculate (2y)^k, before doing the second (outside) integral.</p>

<p>Does anyone know how to do this in Matlab?</p>