DAVE3700 konteeksamen 2022 – løsningsforslag
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.
28. februar 2022
Exercises
5 exercises
Exercise 1
- Flere oppgaver om konservative vektorfelt,
- Flere oppgaver om linjeintegraler,
- Flere oppgaver om partielle deriverte
Consider the conservative vector field
Exercise 1a)
Determine a potential such that
Show solutionHide solution for exercise 1a
Answer
A potential is:
A potential is a function \( f \) with \( {\nabla f = \vec{F}}\text{.} \) We integrate each component with respect to its own variable and compare the terms.
1. Write down what we must find
The gradient consists of the partial derivatives, with respect to \( x \) in blue, \( y \) in red and \( z \) in green, as in the video Hva er en gradient?:
\[ \nabla f = \left( \textcolor{blue}{\dfrac{\partial f}{\partial x}}, \textcolor{red}{\dfrac{\partial f}{\partial y}}, \textcolor{green}{\dfrac{\partial f}{\partial z}} \right) \]
\( {\nabla f = \vec{F}} \) means that the components are equal:
\[ \begin{aligned} \textcolor{blue}{\dfrac{\partial f}{\partial x}} &= \textcolor{blue}{2x} \\ \textcolor{red}{\dfrac{\partial f}{\partial y}} &= \textcolor{red}{z} \\ \textcolor{green}{\dfrac{\partial f}{\partial z}} &= \textcolor{green}{y} \end{aligned} \]
2. Integrate each component
When we integrate with respect to one variable, the other two are treated as constants, as in the video La c = 1 Finn et skalarfelt f slik at gradienten til f = F vektor. The constant can therefore depend on them:
\[ \begin{aligned} f &= \int \textcolor{blue}{2x}\,dx = x^2 + C_1(y, z) \\ f &= \int \textcolor{red}{z}\,dy = yz + C_2(x, z) \\ f &= \int \textcolor{green}{y}\,dz = yz + C_3(x, y) \end{aligned} \]
3. Compare the terms
All three must be the same \( f\text{.} \) The term \( x^2 \) appears only in the first, and \( yz \) only in the other two, so the constants must fill in what is missing. We may add a common constant, and we choose it to be \( 0\text{:} \)
\[ \begin{aligned} C_1(y, z) &= yz \\ C_2(x, z) &= x^2 \\ C_3(x, y) &= x^2 \end{aligned} \]
That gives us:
\[ f(x, y, z) = x^2 + yz \]
Kontroll: The gradient of \( f \) is \( {(2x, z, y) = \vec{F}}\text{.} \)
Exercise 1b)
Compute the line integral over the curve parametrized by
Show solutionHide solution for exercise 1b
Answer
We use the potential \( f \) from a). Full credit can still be given when an earlier error is carried forward.
The field is conservative, so the line integral depends only on the start and end points. We therefore don't need to integrate along the curve.
1. Find the end points
We plug in \( {t = 0} \) and \( {t = 2}\text{:} \)
\[ \begin{aligned} \vec{r}(0) &= (0^2, e^0, e^{0}) = \textcolor{blue}{(0, 1, 1)} \\ \vec{r}(2) &= (2^2, e^2, e^{-2}) = \textcolor{red}{(4, e^2, e^{-2})} \end{aligned} \]
2. Use the potential
The fundamental theorem for line integrals tells us that:
\[ \int_C \vec{F} \cdot d\vec{r} = f(\textcolor{red}{\vec{r}(2)}) - f(\textcolor{blue}{\vec{r}(0)}) \]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:
\[ f(x, y, z) = x^2 + yz \]
Plugging in the end points, we get:
\[ \begin{aligned} f(\textcolor{red}{4, e^2, e^{-2}}) &= 4^2 + e^2 \cdot e^{-2} \\ &= 16 + e^{2 - 2} = 17 \\ f(\textcolor{blue}{0, 1, 1}) &= 0^2 + 1 \cdot 1 = 1 \end{aligned} \]
That gives us:
\[ \int_C \vec{F} \cdot d\vec{r} = 17 - 1 = 16 \]
Exercise 2
Consider the triangle with vertices and
Exercise 2a)
Describe the region in Cartesian coordinates and compute the area of using a double integral.
Show solutionHide solution for exercise 2a
Answer
We describe \( T \) with limits for \( x \) and \( y\text{.} \) The area is then the double integral of \( 1 \) over \( T\text{.} \)
1. Find the slanted side
The slanted side goes from \( (0, 1) \) to \( (1, 0)\text{.} \) The line has slope \( {-1} \) and crosses the \( {y\text{-axis}} \) at \( 1\text{:} \)
\[ y = 1 - x \]
2. Describe the region
For each \( x \) between \( 0 \) and \( 1 \) the value of \( y \) goes from the \( {x\text{-axis}} \) up to the slanted side, as in the video Hvordan sette opp integral:
\[ T = \left\{ (x, y) : \begin{aligned} &\textcolor{blue}{0} \le x \le \textcolor{blue}{1}, \\ &\textcolor{red}{0} \le y \le \textcolor{red}{1 - x} \end{aligned} \right\} \]
3. Compute the area
A double integral of \( 1 \) over a region gives the area of the region, as in the video Ekstra kunnskap:
\[ A = \iint_T 1\,dA \]
The limit for \( y \) depends on \( x\text{,} \) so we integrate with respect to \( y \) innermost, as in the video Regn ut arealet av R med en dobbeltintegral:
\[ A = \int_{\textcolor{blue}{0}}^{\textcolor{blue}{1}} \int_{\textcolor{red}{0}}^{\textcolor{red}{1 - x}} 1\,dy\,dx \]
We take the inner integral first:
\[ \int_{\textcolor{red}{0}}^{\textcolor{red}{1 - x}} 1\,dy = \Big[ y \Big]_0^{1 - x} = 1 - x \]
We compute the outer integral with the power rule, as in the video Basic integrasjonsregler/formler:
\[ \int x^n\,dx = \dfrac{x^{n + 1}}{n + 1} + C, \quad n \neq -1 \]
That gives us:
\[ \begin{aligned} A &= \int_{\textcolor{blue}{0}}^{\textcolor{blue}{1}} (1 - x)\,dx \\ &= \left[ x - \dfrac{x^2}{2} \right]_0^1 = 1 - \dfrac{1}{2} = \dfrac{1}{2} \end{aligned} \]
Kontroll: \( T \) is a right triangle with legs \( 1 \) and \( 1\text{,} \) so the area is \( {\dfrac{1 \cdot 1}{2} = \dfrac{1}{2}}\text{.} \)
Exercise 2b)
Consider the vector field Compute the flux of across (with outgoing normal vectors).
Show solutionHide solution for exercise 2b
Answer
The flux out through the boundary of is:
We use the description of \( T \) from a). Full credit can still be given when an earlier error is carried forward.
The flux goes out through the boundary of \( T\text{,} \) which is a closed curve. We therefore use the divergence theorem in the plane and compute one double integral over \( T \) instead of three line integrals.
1. Write down the divergence theorem
Let \( C \) be the boundary of \( T \) and \( \vec{n} \) the outward unit normal vector. The divergence theorem tells us that:
\[ \oint_C \vec{F} \cdot \vec{n}\,ds = \iint_T \nabla \cdot \vec{F}\,dA \]If you are unsure about this one, you can watch the video Regn ut linjeintegralet ved å bruke divergenssetningen.
2. Compute the divergence
For \( {\vec{F} = (\textcolor{blue}{P}, \textcolor{red}{Q})} \) the divergence is the sum of the partial derivatives, as in the same video Regn ut linjeintegralet ved å bruke divergenssetningen:
\[ \nabla \cdot \vec{F} = \dfrac{\partial \textcolor{blue}{P}}{\partial x} + \dfrac{\partial \textcolor{red}{Q}}{\partial y} \]
Here:
\[ \textcolor{blue}{P} = \textcolor{blue}{x^2}, \quad \textcolor{red}{Q} = \textcolor{red}{y} \]
Plugging this in, we get:
\[ \nabla \cdot \vec{F} = \textcolor{blue}{2x} + \textcolor{red}{1} \]
3. Compute the double integral
With the limits from a), the flux becomes:
\[ \Phi = \int_0^1 \int_0^{1 - x} (2x + 1)\,dy\,dx \]
We take the inner integral first. Since we integrate with respect to \( y\text{,} \) \( {2x + 1} \) is a constant:
\[ \begin{aligned} \int_0^{1 - x} (2x + 1)\,dy &= (2x + 1)(1 - x) \\ &= 1 + x - 2x^2 \end{aligned} \]
Then the outer one, term by term. The power rule from a) tells us that:
\[ \int x^n\,dx = \dfrac{x^{n + 1}}{n + 1} + C, \quad n \neq -1 \]
That gives us:
\[ \begin{aligned} \Phi &= \int_0^1 (1 + x - 2x^2)\,dx \\ &= \left[ x + \dfrac{x^2}{2} - \dfrac{2x^3}{3} \right]_0^1 \\ &= 1 + \dfrac{1}{2} - \dfrac{2}{3} = \dfrac{5}{6} \end{aligned} \]
Kontroll: Along the two sides on the axes, \( {\vec{F} \cdot \vec{n} = 0}\text{.} \) Along the slanted side, \( {\vec{n} = \tfrac{1}{\sqrt{2}}(1, 1)} \) and \( {ds = \sqrt{2}\,dx}\text{,} \) so the flux is \( {\int_0^1 (x^2 + 1 - x)\,dx = \dfrac{5}{6}}\text{.} \)
Exercise 3
Consider the curve (a helix) parametrized by
Exercise 3a)
Compute the length of the curve
Show solutionHide solution for exercise 3a
Answer
The length of a parametrized curve is the integral of the speed \( |\vec{r}\,'(t)| \) from start to finish. For the helix the speed is constant.
1. Draw a sketch
We draw a sketch first. \( C \) goes twice around the cylinder \( {x^2 + y^2 = 1}\text{,} \) while \( z \) increases from \( 0 \) to \( 4\pi\text{:} \)
2. Write down the arc length formula
The arc length formula tells us that the length is the integral of the length of the derivative:
\[ L = \int_a^b \sqrt{\left(\textcolor{blue}{x'}\right)^2 + \left(\textcolor{red}{y'}\right)^2 + \left(\textcolor{green}{z'}\right)^2}\,dt \]If you are unsure about this one, you can watch the video Regn ut buelengden. There the curve has two components, and in space \( z \) comes in as a third term under the square root.
We differentiate each component with respect to \( t\text{:} \)
\[ \textcolor{blue}{x'} = \textcolor{blue}{-\sin t}, \quad \textcolor{red}{y'} = \textcolor{red}{\cos t}, \quad \textcolor{green}{z'} = \textcolor{green}{1} \]
3. Compute the speed
Plugging this in under the square root, we get:
\[ \begin{aligned} |\vec{r}\,'(t)| &= \sqrt{(\textcolor{blue}{-\sin t})^2 + (\textcolor{red}{\cos t})^2 + \textcolor{green}{1}^2} \\ &= \sqrt{\sin^2 t + \cos^2 t + 1} \end{aligned} \]
From the unit circle we know that:
\[ \sin^2 t + \cos^2 t = 1 \]If you are unsure about this, you can watch the video Fra vanlige koordinater til polar - Del 2 - Eksempel.
That gives us a constant speed:
\[ |\vec{r}\,'(t)| = \sqrt{1 + 1} = \sqrt{2} \]
4. Compute the length
The limits are \( {a = 0} \) and \( {b = 4\pi}\text{:} \)
\[ \begin{aligned} L &= \int_0^{4\pi} \sqrt{2}\,dt \\ &= \Big[ \sqrt{2}\,t \Big]_0^{4\pi} = 4\sqrt{2}\,\pi \end{aligned} \]
Exercise 3b)
Consider a particle moving on according to Find the time such that the distance crossed up to is equal to
Show solutionHide solution for exercise 3b
Answer
We use the speed from a). Full credit can still be given when an earlier error is carried forward.
The distance up to \( T \) is the arc length from \( {t = 0} \) to \( {t = T}\text{.} \) We set it equal to \( 1 \) and solve for \( T\text{.} \)
1. Draw a sketch
We draw a sketch first. The particle starts at \( (1, 0, 0) \) at \( {t = 0}\text{,} \) and the distance \( 1 \) is a short piece of the helix:
2. Write down the distance
We use the arc length formula from \( 0 \) to \( T\text{,} \) as in the video Regn ut buelengden:
\[ s(T) = \int_0^T |\vec{r}\,'(t)|\,dt \]
In a) we found the speed:
\[ |\vec{r}\,'(t)| = \textcolor{blue}{\sqrt{2}} \]
Plugging this in, we get:
\[ s(T) = \int_0^T \textcolor{blue}{\sqrt{2}}\,dt = \textcolor{blue}{\sqrt{2}}\,T \]
3. Set the distance equal to 1
We solve for \( T\text{:} \)
\[ \begin{aligned} \textcolor{blue}{\sqrt{2}}\,T &= 1 \\ T &= \dfrac{1}{\sqrt{2}} = \dfrac{\sqrt{2}}{2} \end{aligned} \]This lies between \( 0 \) and \( 4\pi\text{,} \) so the particle is still on \( C\text{.} \)
Exercise 4
Let be the three-dimensional region described by
which corresponds to a portion of a cylinder of radius and height Consider the function
Compute the triple integral
Show solutionHide solution for exercise 4
Answer
The region is given in cylindrical coordinates, so we write \( f \) in terms of \( r\text{,} \) \( \theta \) and \( z \) and use \( {dV = r\,dz\,dr\,d\theta}\text{.} \) Then all the limits are numbers.
1. Draw a sketch
We draw a sketch first. With \( r \) from \( 0 \) to \( 1 \) and \( \theta \) from \( 0 \) to \( \dfrac{\pi}{2} \) we get the quarter disk where \( {x \ge 0} \) and \( {y \ge 0}\text{,} \) and \( z \) from \( 0 \) to \( 1 \) makes it a quarter cylinder:
2. Rewrite in cylindrical coordinates
In cylindrical coordinates, \( x \) and \( y \) are the same as in polar coordinates, as in the video Fra vanlige koordinater til polar - Del 1, and \( r \) is the distance to the \( {z\text{-axis}}\text{:} \)
\[ \begin{aligned} \textcolor{blue}{x} &= \textcolor{blue}{r\cos\theta} \\ \textcolor{red}{x^2 + y^2} &= \textcolor{red}{r^2} \\ dV &= \textcolor{green}{r}\,dz\,dr\,d\theta \end{aligned} \]The extra factor \( \textcolor{green}{r} \) in \( dV \) is the same as in polar coordinates, and \( dz \) stays, as in the video Eksempel - Sylinderkoordinater.
Plugging this in, the integrand becomes:
\[ \begin{aligned} f \cdot \textcolor{green}{r} &= \textcolor{red}{r^2} \cdot \textcolor{blue}{r\cos\theta} \cdot z \cdot \textcolor{green}{r} \\ &= r^4 z\cos\theta \end{aligned} \]
With the limits from the description of \( R \) the integral becomes:
\[ I = \int_0^{\pi/2} \int_0^1 \int_0^1 r^4 z\cos\theta\,dz\,dr\,d\theta \]
3. Integrate from the inside out
We start innermost, with respect to \( z\text{.} \) The power rule tells us that:
\[ \int z^n\,dz = \dfrac{z^{n + 1}}{n + 1} + C, \quad n \neq -1 \]If you are unsure about the power rule, you can watch the video Basic integrasjonsregler/formler.
Since we integrate with respect to \( z\text{,} \) \( r^4\cos\theta \) is a constant, and \( {n = 1} \) gives:
\[ \begin{aligned} \int_0^1 r^4 z\cos\theta\,dz &= r^4\cos\theta \left[ \dfrac{z^2}{2} \right]_0^1 \\ &= \dfrac{1}{2} r^4\cos\theta \end{aligned} \]
Then we integrate with respect to \( r\text{,} \) with \( {n = 4}\text{.} \) Now \( \cos\theta \) is a constant:
\[ \begin{aligned} \int_0^1 \dfrac{1}{2} r^4\cos\theta\,dr &= \cos\theta \left[ \dfrac{r^5}{10} \right]_0^1 \\ &= \dfrac{1}{10}\cos\theta \end{aligned} \]
Finally we integrate with respect to \( \theta\text{.} \) An antiderivative of \( \cos\theta \) is \( \sin\theta\text{,} \) as in the video Basic integrasjonsregler/formler:
\[ \begin{aligned} I &= \int_0^{\pi/2} \dfrac{1}{10}\cos\theta\,d\theta \\ &= \dfrac{1}{10}\Big[ \sin\theta \Big]_0^{\pi/2} \\ &= \dfrac{1}{10}(1 - 0) = \dfrac{1}{10} \end{aligned} \]
Exercise 5
Consider the parabola given by
Exercise 5a)
Use Lagrange's method to find the point on the parabola which is closest to the origin (hint: use the distance-squared function
Show solutionHide solution for exercise 5a
Answer
The point on the parabola that is closest to the origin is:
We write the parabola as a constraint \( {g(x, y) = 0} \) and use Lagrange's method on \( f\text{.} \) That gives three equations in three unknowns.
1. Draw a sketch
We draw a sketch first. The parabola has its lowest point at \( (0, 1) \) and lies above the \( {x\text{-axis}}\text{:} \)
2. Write down the Lagrange equations
Lagrange's method tells us that:
\[ \nabla f = \lambda \nabla g, \qquad g(x, y) = 0 \]If you are unsure about this one, you can watch the video Lagranges metode.
We move \( y \) over and write the parabola as a constraint:
\[ g(x, y) = x^2 + 1 - y = 0 \]
The gradient consists of the partial derivatives, with respect to \( x \) in blue and \( y \) in red, as in the video Hva er en gradient?:
\[ \begin{aligned} \nabla f &= (\textcolor{blue}{2x}, \textcolor{red}{2y}) \\ \nabla g &= (\textcolor{blue}{2x}, \textcolor{red}{-1}) \end{aligned} \]
Two vectors are equal when their components are equal, as in the video Finn de kritiske punktene til f ved å bruke Lagranges metode. With the constraint as the third equation, we get:
\[ \begin{aligned} \textcolor{blue}{2x} &= \lambda \cdot \textcolor{blue}{2x} \\ \textcolor{red}{2y} &= \lambda \cdot (\textcolor{red}{-1}) \\ y &= x^2 + 1 \end{aligned} \]
3. Solve the first equation
We move everything over to the left-hand side and factor out \( \textcolor{darkorange}{2x}\text{:} \)
\[ \begin{aligned} 2x - 2\lambda x &= 0 \\ \textcolor{darkorange}{2x}(1 - \lambda) &= 0 \end{aligned} \]
A product is \( 0 \) only when one of the factors is \( 0\text{.} \) That gives two cases:
\[ x = 0 \quad \text{or} \quad \lambda = 1 \]
4. Check the two cases
Putting \( {\lambda = 1} \) into the second equation gives \( {y = -\tfrac{1}{2}}\text{,} \) and then the third has no real solution, since \( x^2 \) is never negative:
\[ x^2 + 1 = -\dfrac{1}{2} \;\Rightarrow\; x^2 = -\dfrac{3}{2} \]
Putting \( {x = 0} \) into the third equation gives \( {y = 1}\text{,} \) and the second gives \( \lambda\text{:} \)
\[ 2 \cdot 1 = -\lambda \;\Rightarrow\; \lambda = -2 \]So Lagrange's method gives only one point, \( (0, 1)\text{.} \)
5. Show that the point is closest
The method only gives the points where \( f \) can have a maximum or a minimum along the constraint, as in the video Lagranges metode. Along the parabola, \( {y = x^2 + 1 \ge 1}\text{,} \) so:
\[ \begin{aligned} f(x, y) &= x^2 + y^2 \\ &\ge 0 + 1^2 = 1 = f(0, 1) \end{aligned} \]No point on the parabola is closer to the origin than \( (0, 1)\text{,} \) and the distance is \( {\sqrt{1} = 1}\text{.} \)
Exercise 5b)
Consider now the portion of the parabola which is below the line Which points have the largest distance from the origin in this case?
Try to explain this situation from the point of view of Lagrange's method.
Show solutionHide solution for exercise 5b
Answer
The two end points have the largest distance, and there is not parallel to the gradient of the constraint:
We use the constraint and the gradients from a). Full credit can still be given when an earlier error is carried forward.
The portion below the line \( {y = 2} \) is an arc with two end points, so we check the end points and see why Lagrange's method did not find them.
1. Find the end points
The parabola meets the line \( {y = 2} \) where:
\[ \begin{aligned} x^2 + 1 &= 2 \\ x^2 &= 1 \\ x &= \pm 1 \end{aligned} \]The portion below the line is the parabola for \( {-1 \le x \le 1}\text{,} \) with the end points \( {\textcolor{green}{(-1, 2)}} \) and \( \textcolor{green}{(1, 2)}\text{:} \)
2. Find the largest distance
We substitute \( {y = x^2 + 1} \) into \( f\text{,} \) as in the video Finn de kritiske punktene ved insettingsmetoden:
\[ f = x^2 + (x^2 + 1)^2 \]Both terms grow when \( x^2 \) grows, so \( f \) is largest where \( x^2 \) is largest, that is at \( {x = \pm 1}\text{:} \)
\[ f(\textcolor{green}{\pm 1, 2}) = 1 + 4 = 5 \]The largest distance is \( \sqrt{5}\text{.} \)
3. Explain with Lagrange's method
In a) we wrote the constraint as \( {g(x, y) = x^2 + 1 - y = 0} \) and found the gradients:
\[ \begin{aligned} \nabla f &= (\textcolor{blue}{2x}, \textcolor{red}{2y}) \\ \nabla g &= (\textcolor{blue}{2x}, \textcolor{red}{-1}) \end{aligned} \]
Lagrange's method only finds the points where \( \nabla f \) is parallel to \( \nabla g\text{.} \) In a) that was only \( (0, 1)\text{,} \) which is the closest point. At the end point \( \textcolor{green}{(1, 2)} \) the gradients are:
\[ \begin{aligned} \nabla f(1, 2) &= (\textcolor{blue}{2}, \textcolor{red}{4}) \\ \nabla g(1, 2) &= (\textcolor{blue}{2}, \textcolor{red}{-1}) \end{aligned} \]
If we require \( {\nabla f = \lambda \nabla g}\text{,} \) the components give two different values of \( \lambda\text{:} \)
\[ \begin{aligned} \textcolor{blue}{2} &= \lambda \cdot \textcolor{blue}{2} \;\Rightarrow\; \lambda = 1 \\ \textcolor{red}{4} &= \lambda \cdot (\textcolor{red}{-1}) \;\Rightarrow\; \lambda = -4 \end{aligned} \]So the gradients are not parallel, and the same holds at \( {\textcolor{green}{(-1, 2)}}\text{.} \)
The largest distance therefore lies at the ends of the arc, where the Lagrange equations do not hold. When the constraint has end points, we must check them in addition to the points the method gives.
Ferdig med settet? Se de andre settene i Matte 3000, eller repeter temaene på fagsiden.