Hopp til hovedinnholdet

Matte 3000 OsloMet

DAVE3700 konteeksamen 2026

Matte 3000 at OsloMet: every exercise from the exam, with answers and step-by-step solutions. Try it yourself first – the solution is under each exercise.

februar 2026

Last ned PDF

Exercises

5 exercises

Exercise 1

Consider an object moving with acceleration a⃗(t)=(0,1). {\vec{a}(t) = (0, 1)}\text{.}

Exercise 1a)

Determine the corresponding position r⃗(t), \vec{r}(t)\text{,} under the initial conditions
r⃗(0)=(2,5),v⃗(0)=(1,0) \vec{r}(0) = (2, 5), \quad \vec{v}(0) = (1, 0)
Show solution for exercise 1a
Answer
r⃗(t)=(t+2, 12t2+5)‾‾ \underline{\underline{\vec{r}(t) = \left( t + 2,\ \dfrac{1}{2}t^2 + 5 \right)}}
The acceleration is the derivative of the velocity, and the velocity is the derivative of the position. So we integrate twice and find the constants from the initial conditions.
1. Draw a sketch We draw a sketch first. The object starts at \( (2, 5) \) with velocity \( {\vec{v}(0) = (1, 0)}\text{,} \) to the right, and the acceleration points straight up:
2. Integrate the acceleration The relation between position, velocity and acceleration tells us that: \[ \vec{v}(t) = \vec{r}\,'(t), \qquad \vec{a}(t) = \vec{v}\,'(t) \]If you are unsure about this, you can watch the video Regn ut farten med initialbetingelsene.
We integrate \( \vec{a}(t) \) coordinate by coordinate, each with its own constant. The first coordinates are blue and the second coordinates red: \[ \begin{aligned} \vec{v}(t) &= \left( \textcolor{blue}{\int 0\,dt}, \textcolor{red}{\int 1\,dt} \right) \\ &= (\textcolor{blue}{C_1}, \textcolor{red}{t + C_2}) \end{aligned} \]
We put in \( {t = 0} \) and use \( {\vec{v}(0) = (1, 0)}\text{:} \) \[ \begin{aligned} \vec{v}(0) &= (\textcolor{blue}{C_1}, \textcolor{red}{C_2}) = (\textcolor{blue}{1}, \textcolor{red}{0}) \\ \vec{v}(t) &= (\textcolor{blue}{1}, \textcolor{red}{t}) \end{aligned} \]
3. Integrate the velocity We integrate the velocity the same way, as in the video Regn ut posisjonen med initialbetingelsene: \[ \begin{aligned} \vec{r}(t) &= \left( \textcolor{blue}{\int 1\,dt}, \textcolor{red}{\int t\,dt} \right) \\ &= \left( \textcolor{blue}{t + C_3}, \textcolor{red}{\dfrac{1}{2}t^2 + C_4} \right) \end{aligned} \]
We put in \( {t = 0} \) and use \( {\vec{r}(0) = (2, 5)}\text{:} \) \[ \begin{aligned} \vec{r}(0) &= (\textcolor{blue}{C_3}, \textcolor{red}{C_4}) = (\textcolor{blue}{2}, \textcolor{red}{5}) \\ \vec{r}(t) &= \left( \textcolor{blue}{t + 2}, \textcolor{red}{\dfrac{1}{2}t^2 + 5} \right) \end{aligned} \]

Exercise 1b)

Compute the approximate length of the curve r⃗(t) \vec{r}(t) from t=0 {t = 0} to t=1. {t = 1}\text{.} Here you should use the approximation
1+u2≈1+u22 \sqrt{1 + u^2} \approx 1 + \dfrac{u^2}{2}
Show solution for exercise 1b
Answer
With the approximation, the length is:
L≈76‾‾ \underline{\underline{L \approx \dfrac{7}{6}}}
We use the position from a). Full credit can still be given when an earlier error is carried forward.
The length of the curve is the integral of the speed \( |\vec{r}\,'(t)|\text{.} \) We replace the root under the integral with the approximation from the problem, with \( {u = t}\text{.} \)
1. Draw a sketch We draw a sketch first. The curve is a piece of a parabola, from \( (2, 5) \) where \( {t = 0}\text{,} \) to the point where \( {t = 1}\text{:} \)
2. Write down the integral The arc length of a parametrized curve is: \[ L = \int_a^b \sqrt{\left(\textcolor{blue}{\dfrac{dx}{dt}}\right)^2 + \left(\textcolor{red}{\dfrac{dy}{dt}}\right)^2}\,dt \]If you are unsure about the formula, you can watch the video Regn ut buelengden.
In a) we found: \[ \vec{r}(t) = \left( \textcolor{blue}{t + 2},\ \textcolor{red}{\dfrac{1}{2}t^2 + 5} \right) \]
Here: \[ \begin{aligned} \textcolor{blue}{\dfrac{dx}{dt}} &= \textcolor{blue}{1} & \textcolor{red}{\dfrac{dy}{dt}} &= \textcolor{red}{t} \\ a &= 0 & b &= 1 \end{aligned} \]
Plugging this in, we get: \[ \begin{aligned} L &= \int_0^1 \sqrt{\textcolor{blue}{1}^2 + \textcolor{red}{t}^2}\,dt \\ &= \int_0^1 \sqrt{1 + t^2}\,dt \end{aligned} \]
3. Use the approximation We put \( {\textcolor{green}{u} = \textcolor{green}{t}} \) into the approximation: \[ \sqrt{1 + \textcolor{green}{t}^2} \approx 1 + \dfrac{\textcolor{green}{t}^2}{2} \]
The power rule for integrals tells us that: \[ \int t^n\,dt = \dfrac{t^{n+1}}{n+1} + C, \quad n \neq -1 \]If you are unsure about it, you can watch the video Basic integrasjonsregler/​formler.
With \( {n = 2} \) for the term \( \dfrac{t^2}{2} \) we get: \[ \begin{aligned} L &\approx \int_0^1 \left(1 + \dfrac{t^2}{2}\right) dt \\ &= \left[ t + \dfrac{t^3}{6} \right]_0^1 \\ &= 1 + \dfrac{1}{6} = \dfrac{7}{6} \end{aligned} \]

Exercise 2

Exercise 2a)

Determine a potential f(x,y) f(x, y) corresponding to the vector field
F⃗(x,y)=(x3y4,x4y3) \vec{F}(x, y) = (x^3 y^4, x^4 y^3)
Show solution for exercise 2a
Answer
A potential for F⃗ \vec{F} is:
f(x,y)=14x4y4‾‾ \underline{\underline{f(x, y) = \dfrac{1}{4}x^4y^4}}
A potential is a function with \( {\nabla f = \vec{F}}\text{.} \) We integrate each component with respect to its own variable and put the results together.
1. Write down what a potential is If \( f \) is a potential for \( \vec{F}\text{,} \) then the gradient of \( f \) is the field: \[ \nabla f = \left(\dfrac{\partial f}{\partial x},\ \dfrac{\partial f}{\partial y}\right) = \vec{F} \]
Here: \[ \begin{aligned} \dfrac{\partial f}{\partial x} &= \textcolor{blue}{x^3y^4} \\ \dfrac{\partial f}{\partial y} &= \textcolor{red}{x^4y^3} \end{aligned} \]
2. Integrate each component We integrate each component with respect to its own variable, as in the video La c = 1 Finn et skalarfelt f slik at gradienten til f = F vektor. The power rule for integrals tells us that: \[ \int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C, \quad n \neq -1 \]
With respect to \( x \) we treat \( y \) as a constant, so the constant of integration may depend on \( y\text{.} \) With \( {n = 3} \) we get: \[ \int \textcolor{blue}{x^3y^4}\,dx = \dfrac{1}{4}x^4y^4 + C(y) \]
With respect to \( y \) we treat \( x \) as a constant. With \( {n = 3} \) for \( y^3 \) we get: \[ \int \textcolor{red}{x^4y^3}\,dy = \dfrac{1}{4}x^4y^4 + C(x) \]
3. Put the potential together The two expressions are the same function \( f\text{.} \) Both have the term \( \dfrac{1}{4}x^4y^4\text{,} \) and neither is missing anything, so for a constant \( K \) we have: \[ C(x) = C(y) = K \]
The problem asks for one potential, so we choose \( {K = 0}\text{:} \) \[ f(x, y) = \dfrac{1}{4}x^4y^4 \]
Kontroll: \( {\dfrac{\partial f}{\partial x} = x^3y^4} \) and \( {\dfrac{\partial f}{\partial y} = x^4y^3}\text{,} \) which are the components of \( \vec{F}\text{.} \)

Exercise 2b)

Consider the curve B B parametrized by
r⃗(t)=(t2,t4),0≤t≤1 \vec{r}(t) = (t^2, t^4), \quad 0 \le t \le 1
Compute the line integral ∫BF⃗⋅dr⃗, {\int_B \vec{F} \cdot d\vec{r}}\text{,} with F⃗(x,y) \vec{F}(x, y) as above.
Show solution for exercise 2b
Answer
∫BF⃗⋅dr⃗=14‾‾ \underline{\underline{\int_B \vec{F} \cdot d\vec{r} = \dfrac{1}{4}}}
We use the potential from a). Full credit can still be given when an earlier error is carried forward.
\( \vec{F} \) has a potential, so the line integral depends only on the start and end points. We put the end points into the potential instead of integrating along the curve.
1. Draw a sketch We draw a sketch first. With \( {x = t^2} \) and \( {y = t^4} \) we have: \[ y = t^4 = (t^2)^2 = x^2 \]
So \( B \) lies on the parabola \( {y = x^2}\text{,} \) from \( (0, 0) \) to \( (1, 1)\text{:} \)
2. Write down the rule The fundamental theorem for line integrals tells us that for a field \( {\vec{F} = \nabla f} \) we have: \[ \int_B \vec{F} \cdot d\vec{r} = f\big(\vec{r}(\textcolor{red}{b})\big) - f\big(\vec{r}(\textcolor{blue}{a})\big) \]If you are unsure about this, you can watch the video La c = 1 Regn ut linjeintegralet til Fdr langs kurven C.
In a) we found the potential: \[ f(x, y) = \dfrac{1}{4}x^4y^4 \]
3. Find the end points Here \( {\textcolor{blue}{a = 0}} \) and \( {\textcolor{red}{b = 1}}\text{,} \) so the curve starts and ends at: \[ \begin{aligned} \vec{r}(\textcolor{blue}{0}) &= (0^2, 0^4) = \textcolor{blue}{(0, 0)} \\ \vec{r}(\textcolor{red}{1}) &= (1^2, 1^4) = \textcolor{red}{(1, 1)} \end{aligned} \]
4. Put them into the potential Plugging this in, we get: \[ \begin{aligned} \int_B \vec{F} \cdot d\vec{r} &= f(\textcolor{red}{1, 1}) - f(\textcolor{blue}{0, 0}) \\ &= \dfrac{1}{4} \cdot 1^4 \cdot 1^4 - \dfrac{1}{4} \cdot 0^4 \cdot 0^4 \\ &= \dfrac{1}{4} \end{aligned} \]

Exercise 2c)

Let C C be the triangle with vertices (0,0), (0, 0)\text{,} (1,0) (1, 0) and (1,1). (1, 1)\text{.} Consider the vector field
G⃗(x,y)=(y2,x2) \vec{G}(x, y) = (y^2, x^2)
Compute the line integral ∮CG⃗⋅dr⃗. {\oint_C \vec{G} \cdot d\vec{r}}\text{.} Here C C is considered with positive orientation.
Show solution for exercise 2c
Answer
∮CG⃗⋅dr⃗=13‾‾ \underline{\underline{\oint_C \vec{G} \cdot d\vec{r} = \dfrac{1}{3}}}
\( C \) is a closed curve in the plane with positive orientation, that is, counter-clockwise. So we use Green's theorem and compute a double integral over the triangle instead.
1. Draw a sketch We draw a sketch first. The triangle \( D \) has \( C \) as its boundary, and \( C \) goes counter-clockwise:
2. Write down Green's theorem With \( {d\vec{r} = (dx, dy)} \) and \( {\vec{G} = (\textcolor{blue}{P}, \textcolor{red}{Q})} \) Green's theorem tells us that: \[ \begin{aligned} &\oint_C \textcolor{blue}{P}\,dx + \textcolor{red}{Q}\,dy \\ &= \iint_D \left( \dfrac{\partial \textcolor{red}{Q}}{\partial x} - \dfrac{\partial \textcolor{blue}{P}}{\partial y} \right) dA \end{aligned} \]If you are unsure about Green's theorem, you can watch the video Greens setning.
Here: \[ \textcolor{blue}{P} = \textcolor{blue}{y^2}, \qquad \textcolor{red}{Q} = \textcolor{red}{x^2} \]
This gives us the partial derivatives: \[ \dfrac{\partial \textcolor{red}{Q}}{\partial x} = \textcolor{red}{2x}, \qquad \dfrac{\partial \textcolor{blue}{P}}{\partial y} = \textcolor{blue}{2y} \]
3. Set up the double integral Plugging this in, we get: \[ \oint_C \vec{G} \cdot d\vec{r} = \iint_D (\textcolor{red}{2x} - \textcolor{blue}{2y})\,dA \]
The slanted side of the triangle lies on the line \( {y = x}\text{.} \) For each \( x \) we let \( y \) go from \( 0 \) to \( x\text{,} \) and \( x \) goes from \( 0 \) to \( 1\text{:} \) \[ \begin{aligned} &\iint_D (2x - 2y)\,dA \\ &= \int_0^1 \int_0^x (2x - 2y)\,dy\,dx \end{aligned} \]
4. Compute the integral We compute the inner integral first. Here \( x \) is a constant, and the power rule for integrals tells us that: \[ \int y^n\,dy = \dfrac{y^{n+1}}{n+1} + C, \quad n \neq -1 \]If you are unsure about it, you can watch the video Basic integrasjonsregler/​formler.
With \( {n = 1} \) for the term \( 2y \) we get: \[ \begin{aligned} \int_0^x (2x - 2y)\,dy &= \Big[ 2xy - y^2 \Big]_0^x \\ &= 2x^2 - x^2 = x^2 \end{aligned} \]
Then the outer one, with \( {n = 2}\text{:} \) \[ \int_0^1 x^2\,dx = \left[ \dfrac{x^3}{3} \right]_0^1 = \dfrac{1}{3} \]

Exercise 3

Consider the two-dimensional region R R defined by
R={(x,y):0≤x≤1,0≤y≤x2} R = \{(x, y) : 0 \le x \le 1, \quad 0 \le y \le x^2\}

Exercise 3a)

Compute the area ∬RdA \iint_R dA of R R as a double integral.
Show solution for exercise 3a
Answer
A=13‾‾ \underline{\underline{A = \dfrac{1}{3}}}
The area is the double integral of \( 1 \) over \( R\text{.} \) The limits are in the description of \( R\text{,} \) with \( y \) innermost.
1. Draw a sketch We draw a sketch first. \( R \) lies between the \( x \)-axis and the parabola \( {y = x^2}\text{,} \) from \( {x = 0} \) to \( {x = 1}\text{:} \)
2. Set up the double integral The area of a region is the double integral of \( 1\text{,} \) as in the video Regn ut arealet av R med en dobbeltintegral: \[ A = \iint_R 1\,dA \]
For each \( x \) we let \( y \) go from \( \textcolor{red}{0} \) to \( \textcolor{red}{x^2}\text{,} \) and \( x \) goes from \( \textcolor{blue}{0} \) to \( \textcolor{blue}{1}\text{:} \) \[ A = \int_{\textcolor{blue}{0}}^{\textcolor{blue}{1}} \int_{\textcolor{red}{0}}^{\textcolor{red}{x^2}} 1\,dy\,dx \]
3. Compute the integral We compute the inner integral first: \[ \int_0^{x^2} 1\,dy = \Big[ y \Big]_0^{x^2} = x^2 \]
Then the outer one. The power rule for integrals tells us that: \[ \int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C, \quad n \neq -1 \]If you are unsure about it, you can watch the video Basic integrasjonsregler/​formler.
With \( {n = 2} \) we get: \[ A = \int_0^1 x^2\,dx = \left[ \dfrac{x^3}{3} \right]_0^1 = \dfrac{1}{3} \]

Exercise 3b)

Find new variables (u,v) (u, v) such that the region R R is transformed into the (solid) triangle
S={(u,v): 0≤u≤1,0≤v≤u} \begin{aligned} S = \{(u, v) :\ &0 \le u \le 1, \\ &0 \le v \le u\} \end{aligned}
Show solution for exercise 3b
Answer
u=x2,v=y‾‾ \underline{\underline{u = x^2, \quad v = y}}
In \( R \) we have \( {0 \le y \le x^2}\text{,} \) and in \( S \) we have \( {0 \le v \le u}\text{.} \) So we let \( u \) take the place of \( x^2 \) and \( v \) the place of \( y\text{,} \) and check that the inequalities hold.
1. Draw the triangle We draw \( S \) in the \( uv \)-plane first. The slanted side lies on the line \( {v = u}\text{:} \)
2. Choose the new variables The upper limit \( x^2 \) for \( y \) should become the upper limit \( u \) for \( v\text{.} \) So we choose: \[ \textcolor{blue}{u = x^2}, \qquad \textcolor{red}{v = y} \]
In \( R \) we have \( {x \ge 0}\text{,} \) so we can solve for \( x \) and \( y\text{:} \) \[ x = \sqrt{\textcolor{blue}{u}}, \qquad y = \textcolor{red}{v} \]
3. Check that R becomes S We put this into the inequalities for \( R\text{,} \) as in the video Variabelskifte med en 3D funksjon: \[ \begin{aligned} 0 \le \sqrt{\textcolor{blue}{u}} &\le 1 \\ 0 \le \textcolor{red}{v} &\le \left(\sqrt{\textcolor{blue}{u}}\right)^2 \end{aligned} \]
The first one gives \( {0 \le u \le 1}\text{,} \) and \( {\left(\sqrt{u}\right)^2 = u}\text{.} \) The inequalities then become: \[ \begin{aligned} 0 \le u &\le 1 \\ 0 \le v &\le u \end{aligned} \]This is the triangle \( S\text{.} \) Each point in \( R \) gives one point in \( S\text{,} \) and the other way round, since \( {x = \sqrt{u}} \) is unique when \( {x \ge 0}\text{.} \)
Other choices also work, for example \( {u = x} \) and \( {v = \dfrac{y}{x}}\text{,} \) but the integral in c) fits \( {u = x^2}\text{.} \)

Exercise 3c)

Compute the double integral
∬S12u−1/2 dA \iint_S \dfrac{1}{2}u^{-1/2}\,dA
Explain why this coincides with the double integral ∬RdA \iint_R dA from a).
Show solution for exercise 3c
Answer
The integrand is ∣J∣ |J| for the change of variables from b), so:
∬S12u−1/2 dA=∬RdA=13‾‾ \underline{\underline{\iint_S \dfrac{1}{2}u^{-1/2}\,dA = \iint_R dA = \dfrac{1}{3}}}
We use the variables \( {u = x^2} \) and \( {v = y} \) from b).
First we compute the integral over the triangle \( S\text{.} \) Then we show that the integrand is the Jacobian determinant of the change of variables from b).
1. Compute the integral In \( S \) we let \( v \) go from \( 0 \) to \( u\text{,} \) and \( u \) from \( 0 \) to \( 1\text{:} \) \[ \begin{aligned} &\iint_S \dfrac{1}{2}u^{-1/2}\,dA \\ &= \int_0^1 \int_0^u \dfrac{1}{2}u^{-1/2}\,dv\,du \end{aligned} \]
In the inner integral the integrand is a constant, so we multiply by the length \( u\text{:} \) \[ \int_0^u \dfrac{1}{2}u^{-1/2}\,dv = \dfrac{1}{2}u^{-1/2} \cdot u = \dfrac{1}{2}u^{1/2} \]
The power rule for integrals tells us that: \[ \int u^n\,du = \dfrac{u^{n+1}}{n+1} + C, \quad n \neq -1 \]If you are unsure about it, you can watch the video Basic integrasjonsregler/​formler.
With \( {n = \dfrac{1}{2}} \) we get: \[ \begin{aligned} \int_0^1 \dfrac{1}{2}u^{1/2}\,du &= \dfrac{1}{2}\left[ \dfrac{u^{3/2}}{3/2} \right]_0^1 \\ &= \dfrac{1}{2} \cdot \dfrac{2}{3} = \dfrac{1}{3} \end{aligned} \]
2. Find the Jacobian determinant The Jacobian determinant of the change of variables is, as in the video Regn ut arealet ved hjelp av variabelskiftet: \[ \begin{aligned} J &= \begin{vmatrix} \dfrac{\partial x}{\partial u} & \dfrac{\partial x}{\partial v} \\ \dfrac{\partial y}{\partial u} & \dfrac{\partial y}{\partial v} \end{vmatrix} \\ &= \dfrac{\partial x}{\partial u} \cdot \dfrac{\partial y}{\partial v} - \dfrac{\partial x}{\partial v} \cdot \dfrac{\partial y}{\partial u} \end{aligned} \]
From b), \( {x = \textcolor{blue}{u^{1/2}}} \) and \( {y = \textcolor{red}{v}}\text{.} \) With \( {(u^n)' = nu^{n-1}} \) we have: \[ \begin{aligned} \dfrac{\partial x}{\partial u} &= \textcolor{blue}{\dfrac{1}{2}u^{-1/2}} & \dfrac{\partial x}{\partial v} &= \textcolor{blue}{0} \\ \dfrac{\partial y}{\partial u} &= \textcolor{red}{0} & \dfrac{\partial y}{\partial v} &= \textcolor{red}{1} \end{aligned} \]
Plugging this in, we get: \[ J = \textcolor{blue}{\dfrac{1}{2}u^{-1/2}} \cdot \textcolor{red}{1} - \textcolor{blue}{0} \cdot \textcolor{red}{0} = \dfrac{1}{2}u^{-1/2} \]Since \( {u > 0} \) inside \( S\text{,} \) we have \( {|J| = \dfrac{1}{2}u^{-1/2}}\text{.} \)
3. Explain why they are equal When we change variables, the area element \( dA \) becomes \( |J|\,du\,dv\text{,} \) as in the video Regn ut arealet ved hjelp av variabelskiftet: \[ \iint_R 1\,dA = \iint_S |J|\,du\,dv \]
Here \( {|J| = \dfrac{1}{2}u^{-1/2}}\text{.} \) Plugging this in, we get: \[ \iint_R dA = \iint_S \dfrac{1}{2}u^{-1/2}\,dA = \dfrac{1}{3} \]So the integral over \( S \) is the area of \( R \) computed in the new variables, and it is the same as in a).

Exercise 4

Let G G be the graph of the function
f(x,y)=13x3+y f(x, y) = \dfrac{1}{3}x^3 + y
with domain D={(x,y):x2+y2≤1}. {D = \{(x, y) : x^2 + y^2 \le 1\}}\text{.}

Exercise 4a)

Determine the unit normal vector n⃗ \vec{n} to G G such that its z z -component is positive.
Show solution for exercise 4a
Answer
n⃗=1x4+2 (−x2,−1,1)‾‾ \underline{\underline{\vec{n} = \dfrac{1}{\sqrt{x^4 + 2}}\,(-x^2, -1, 1)}}
We write the surface as \( {g(x, y, z) = 0}\text{,} \) and the gradient of \( g \) is then a normal vector. Then we choose the sign that gives a positive \( z \)-component, and divide by the length.
1. Draw a sketch We draw a sketch first. \( G \) lies above and below the disk \( D \) with radius \( 1\text{,} \) and \( \vec{n} \) is perpendicular to the surface and points upward:
2. Find a normal vector We write \( {z = f(x, y)} \) and move \( z \) over, as in the video Normalvektor: \[ g(x, y, z) = \dfrac{1}{3}x^3 + y - z = 0 \]
A normal vector is the gradient of \( g\text{:} \) \[ \nabla g = \left( \textcolor{blue}{\dfrac{\partial g}{\partial x}},\ \textcolor{red}{\dfrac{\partial g}{\partial y}},\ \textcolor{green}{\dfrac{\partial g}{\partial z}} \right) \]
Here: \[ \textcolor{blue}{\dfrac{\partial g}{\partial x}} = \textcolor{blue}{x^2}, \quad \textcolor{red}{\dfrac{\partial g}{\partial y}} = \textcolor{red}{1}, \quad \textcolor{green}{\dfrac{\partial g}{\partial z}} = \textcolor{green}{-1} \]
This gives us: \[ \nabla g = (\textcolor{blue}{x^2}, \textcolor{red}{1}, \textcolor{green}{-1}) \]
3. Choose the direction The \( z \)-component is \( {\textcolor{green}{-1}}\text{,} \) which is negative. We turn the vector around by multiplying by \( {-1}\text{:} \) \[ -\nabla g = (-x^2, -1, 1) \]
4. Divide by the length We find the length of a vector with Pythagoras in three dimensions, as in the video Regn ut arealet av G ved å beregne et flateintegral: \[ |(a, b, c)| = \sqrt{a^2 + b^2 + c^2} \]
With \( {(-x^2, -1, 1)} \) we get: \[ \begin{aligned} \textcolor{darkorange}{|(-x^2, -1, 1)|} &= \sqrt{x^4 + 1 + 1} \\ &= \textcolor{darkorange}{\sqrt{x^4 + 2}} \end{aligned} \]
We divide by the length, so the vector gets length \( 1\text{:} \) \[ \vec{n} = \dfrac{1}{\textcolor{darkorange}{\sqrt{x^4 + 2}}}\,(-x^2, -1, 1) \]

Exercise 4b)

Compute the flux ∬GF⃗⋅n⃗ dS, {\iint_G \vec{F} \cdot \vec{n}\,dS}\text{,} where F⃗ \vec{F} is the vector field
F⃗(x,y,z)=(13x+1,y+y2,z) \vec{F}(x, y, z) = \left(\dfrac{1}{3}x + 1, y + y^2, z\right)
Show solution for exercise 4b
Answer
∬GF⃗⋅n⃗ dS=−π2‾‾ \underline{\underline{\iint_G \vec{F} \cdot \vec{n}\,dS = -\dfrac{\pi}{2}}}
We use the normal vector from a). Full credit can still be given when an earlier error is carried forward.
We write the surface integral as a double integral over the disk \( D\text{.} \) The root in \( \vec{n} \) and the root in \( dS \) cancel, and over a disk we compute in polar coordinates.
1. Write the flux over the disk The flux through \( G \) is the surface integral, as in the video Fluks gjennom ÅPEN FLATE: \[ \Phi = \iint_G \vec{F} \cdot \vec{n}\,dS \]
Over the disk \( D \) the surface element is the fraction in the formula for surface area, as in the video Overflateareal med flateintegral: \[ dS = \dfrac{|\nabla g|}{|\nabla g \cdot \hat{k}|}\,dA \]
In a) we found \( {\nabla g = (x^2, 1, -1)}\text{.} \) Its length is the same as that of \( {-\nabla g}\text{,} \) and \( {\nabla g \cdot \hat{k}} \) is the \( z \)-component: \[ \begin{aligned} dS &= \dfrac{\textcolor{darkorange}{\sqrt{x^4 + 2}}}{|-1|}\,dA \\ &= \textcolor{darkorange}{\sqrt{x^4 + 2}}\,dA \end{aligned} \]
The unit normal from a) is: \[ \vec{n} = \dfrac{1}{\textcolor{darkorange}{\sqrt{x^4 + 2}}}\,(-x^2, -1, 1) \]
The root cancels, so: \[ \vec{n}\,dS = (-x^2, -1, 1)\,dA \]
2. Evaluate the field on the surface On \( G \) we have \( {z = \dfrac{1}{3}x^3 + y}\text{.} \) The components of \( \vec{F} \) are: \[ \begin{aligned} \textcolor{blue}{F_1} &= \textcolor{blue}{\dfrac{1}{3}x + 1} \\ \textcolor{red}{F_2} &= \textcolor{red}{y + y^2} \\ \textcolor{green}{F_3} &= \textcolor{green}{\dfrac{1}{3}x^3 + y} \end{aligned} \]
The dot product with \( {(-x^2, -1, 1)} \) becomes: \[ \begin{aligned} & \textcolor{blue}{\left(\dfrac{1}{3}x + 1\right)}(-x^2) + \textcolor{red}{(y + y^2)}(-1) \\ &\quad + \textcolor{green}{\dfrac{1}{3}x^3 + y} \\ &= -\dfrac{1}{3}x^3 - x^2 - y - y^2 \\ &\quad + \dfrac{1}{3}x^3 + y \\ &= -x^2 - y^2 \end{aligned} \]
This gives us: \[ \Phi = \iint_D -(x^2 + y^2)\,dA \]
3. Change to polar coordinates In polar coordinates we have, as in the video Dobbelt integral: \[ x^2 + y^2 = \textcolor{blue}{r^2}, \qquad dA = \textcolor{red}{r}\,dr\,d\theta \]
The disk \( D \) has \( {0 \le r \le 1} \) and \( {0 \le \theta \le 2\pi}\text{:} \) \[ \Phi = \int_0^{2\pi} \int_0^1 -\textcolor{blue}{r^2} \cdot \textcolor{red}{r}\,dr\,d\theta \]
4. Compute the integral We compute the inner integral first. The power rule for integrals tells us that: \[ \int r^n\,dr = \dfrac{r^{n+1}}{n+1} + C, \quad n \neq -1 \]If you are unsure about it, you can watch the video Basic integrasjonsregler/​formler.
With \( {n = 3} \) we get: \[ \int_0^1 -r^3\,dr = \left[ -\dfrac{r^4}{4} \right]_0^1 = -\dfrac{1}{4} \]
In the outer integral the integrand is a constant, so we multiply by \( 2\pi\text{:} \) \[ \Phi = 2\pi \cdot \left(-\dfrac{1}{4}\right) = -\dfrac{\pi}{2} \]

Exercise 5

Consider the three-dimensional region
T={(x,y,z):1≤x2+y2+z2≤4} T = \{(x, y, z) : 1 \le x^2 + y^2 + z^2 \le 4\}

Exercise 5a)

Describe this region in spherical coordinates (ρ,ϕ,θ). (\rho, \phi, \theta)\text{.}
Show solution for exercise 5a
Answer
1≤ρ≤2‾‾ \underline{\underline{1 \le \rho \le 2}}
0≤ϕ≤π,0≤θ≤2π‾‾ \underline{\underline{0 \le \phi \le \pi, \quad 0 \le \theta \le 2\pi}}
In spherical coordinates \( {x^2 + y^2 + z^2 = \rho^2}\text{.} \) So the inequality for \( T \) becomes an inequality for \( \rho \) alone, and the angles run through all their values.
1. Draw a sketch We first draw a cross-section of \( T \) in the \( xz \)-plane. \( T \) is the shell between the ball with radius \( 1 \) and the ball with radius \( 2\text{.} \) \( \rho \) is the distance from the origin, and \( \phi \) is the angle from the positive \( z \)-axis:
2. Rewrite the inequality In spherical coordinates we have, as in the video Kulekoordinater: \[ \begin{aligned} x &= \rho\sin\phi\cos\theta \\ y &= \rho\sin\phi\sin\theta \\ z &= \rho\cos\phi \end{aligned} \]
With \( {\textcolor{blue}{\cos^2\theta + \sin^2\theta = 1}} \) and \( {\textcolor{red}{\sin^2\phi + \cos^2\phi = 1}} \) we get: \[ \begin{aligned} x^2 + y^2 &= \rho^2\sin^2\phi\,\textcolor{blue}{\cos^2\theta} \\ &\quad + \rho^2\sin^2\phi\,\textcolor{blue}{\sin^2\theta} \\ &= \rho^2\sin^2\phi \end{aligned} \]
Adding \( z^2\text{,} \) we get: \[ \begin{aligned} x^2 + y^2 + z^2 &= \rho^2\,\textcolor{red}{\sin^2\phi} + \rho^2\,\textcolor{red}{\cos^2\phi} \\ &= \rho^2 \end{aligned} \]
The inequality for \( T \) then becomes: \[ 1 \le \rho^2 \le 4 \]
Since \( {\rho \ge 0}\text{,} \) this gives: \[ 1 \le \rho \le 2 \]
3. Find the limits for the angles The inequality says nothing about the direction, so \( T \) goes all the way around the origin. The angle \( \phi \) is measured from the positive \( z \)-axis, as in the video Kulekoordinater, so it goes all the way to the negative \( z \)-axis, and \( \theta \) goes once around: \[ 0 \le \phi \le \pi, \qquad 0 \le \theta \le 2\pi \]

Exercise 5b)

Explicitly compute the volume of T T as a triple integral in spherical coordinates. Compare your result to the volume of a ball of radius R, R\text{,} which is given by 43πR3. \dfrac{4}{3}\pi R^3\text{.}
Show solution for exercise 5b
Answer
T T is the ball with radius 2 2 minus the ball with radius 1: 1\text{:}
V=28π3=32π3−4π3‾‾ \underline{\underline{V = \dfrac{28\pi}{3} = \dfrac{32\pi}{3} - \dfrac{4\pi}{3}}}
We use the limits from a). Full credit can still be given when an earlier error is carried forward.
The volume is the triple integral of \( 1 \) over \( T\text{.} \) In spherical coordinates all three variables have fixed limits, so the integral splits into three simple integrals.
1. Set up the triple integral In spherical coordinates the volume element is, as in the video Kulekoordinater & Trippelintegraler: \[ dV = \rho^2\sin\phi\,d\rho\,d\phi\,d\theta \]
In a) we found the limits: \[ \begin{aligned} &1 \le \rho \le 2 \\ &0 \le \phi \le \pi, \quad 0 \le \theta \le 2\pi \end{aligned} \]
Plugging this in, we get: \[ V = \int_0^{2\pi}\!\!\int_0^{\pi}\!\!\int_1^2 \textcolor{blue}{\rho^2}\,\textcolor{red}{\sin\phi}\,d\rho\,d\phi\,d\theta \]
2. Compute the integrals The integrand is a product of a part with only \( \rho \) and a part with only \( \phi\text{,} \) and all the limits are constants. So we can compute each integral on its own: \[ V = \int_0^{2\pi} d\theta \cdot \int_0^{\pi} \textcolor{red}{\sin\phi}\,d\phi \cdot \int_1^2 \textcolor{blue}{\rho^2}\,d\rho \]
The power rule for integrals tells us that: \[ \int \rho^n\,d\rho = \dfrac{\rho^{n+1}}{n+1} + C, \quad n \neq -1 \]If you are unsure about it, you can watch the video Basic integrasjonsregler/​formler.
With \( {n = 2} \) we get: \[ \int_1^2 \textcolor{blue}{\rho^2}\,d\rho = \left[ \dfrac{\rho^3}{3} \right]_1^2 = \dfrac{8}{3} - \dfrac{1}{3} = \underline{\textcolor{blue}{\dfrac{7}{3}}} \]
The integral of sine is, as in the video Regn ut fluksen ut av kulen ved å bruke divergenssetningen: \[ \int \sin\phi\,d\phi = -\cos\phi + C \]
This gives us: \[ \begin{aligned} \int_0^{\pi} \textcolor{red}{\sin\phi}\,d\phi &= \Big[ -\cos\phi \Big]_0^{\pi} \\ &= 1 + 1 = \underline{\textcolor{red}{2}} \end{aligned} \]
The last integral is over a full turn: \[ \int_0^{2\pi} d\theta = \underline{2\pi} \]
Putting this together, we get: \[ V = 2\pi \cdot \textcolor{red}{2} \cdot \textcolor{blue}{\dfrac{7}{3}} = \dfrac{28\pi}{3} \]
3. Compare with the ball \( T \) is the ball with radius \( 2 \) with the ball with radius \( 1 \) taken out. The formula from the problem gives, as in the check in the video Eksempel oppgave: \[ \begin{aligned} \dfrac{4}{3}\pi \cdot 2^3 - \dfrac{4}{3}\pi \cdot 1^3 &= \dfrac{32\pi}{3} - \dfrac{4\pi}{3} \\ &= \dfrac{28\pi}{3} \end{aligned} \]This is the same as the triple integral.
With \( {0 \le \rho \le R} \) instead, the same three integrals give exactly the formula for the ball: \[ 2\pi \cdot \textcolor{red}{2} \cdot \textcolor{blue}{\dfrac{R^3}{3}} = \dfrac{4}{3}\pi R^3 \]

Ferdig med settet? Se de andre settene i Matte 3000, eller repeter temaene på fagsiden.