I am having trouble using MMA to calculate 2 parametrized surface integrals. I'd be grateful for any fixes people can offer.
I usually calculate surface integrals with the following code, which works, with me inputting the parameters for x, y, and z, the region in line 5, and the integrand in line 6:
x[u_, v_] := u + v;
y[u_, v_] := u - v;
z[u_, v_] := 1 + 2 u + v;
r[u_, v_] := {x[u, v], y[u, v], z[u, v]};
reg = ParametricRegion[r[u, v], {{u, 0, 2}, {v, 0, 1}}];
Integrate[x + y + z, {x, y, z} \[Element] reg]
But on the following problem this code unexpectedly doesn't work!
Integrand is y, with parameters as shown in the problem below and u from 0 to 1 and v from 0 to Pi.
Clear[u, v, x, y, z]
x[u_, v_] := u Cos[v];
y[u_, v_] := u Sin[v];
z[u_, v_] := v;
r[u_, v_] := {x[u, v], y[u, v], z[u, v]};
reg = ParametricRegion[r[u, v], {{u, 0, 1}, {v, 0, Pi}}];
NIntegrate[y, {x, y, z} \[Element] reg]
I have hand calculated this problem, and the correct answer (verified with teacher) is $2 /3 (2 Sqrt(2) - 1)$. I have tried Nintegrate and Integrate, but the latter returns gibberish and the former the wrong answer.
At the same time, this problem befuddles me. Using the exact same code as above, the usually works, I have a region where u and v don't go between numbers but are represented by $u^2 + v^2 <=1$. On my line where I enter the parametric region, I've always used bounded intervals, not an equation. So this code messes up. I would love help on how to rephrase the region for problems like this.
x[u_, v_] := 2 u v;
y[u_, v_] := u^3 - v^2;
z[u_, v_] := u^2 + v^2;
r[u_, v_] := {x[u, v], y[u, v], z[u, v]};
reg = ParametricRegion[{r[u, v], u^2 + v^2 <= 1}, {u, v}];
Integrate[x + y + z, {x, y, z} \[Element] reg]
y[u_, v_] := u^3 - v^2;
should bey[u_, v_] := u^2 - v^2;
? $\endgroup$