DAVE3700 konteeksamen 2021 – 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.
4. mars 2021
Exercises
5 exercises
Exercise 1
Consider the curves
Exercise 1a)
Determine the region bounded by the curves and
Show solutionHide solution for exercise 1a
Answer
lies between the parabolas, from to
The region lies between the two curves and runs from one intersection point to the other. We therefore find the intersection points by setting \( {f(x) = g(x)}\text{.} \)
1. Draw a sketch
We draw a sketch first. \( \textcolor{blue}{f} \) is a parabola that opens upward, and \( \textcolor{red}{g} \) is a parabola that opens downward, with its vertex at \( (0, 2)\text{:} \)
2. Find the intersection points
The curves intersect where \( {f(x) = g(x)}\text{,} \) as in the video Bestem regionen R i planet som er begrenset av kurvene:
\[ \begin{aligned} \textcolor{blue}{x^2} &= \textcolor{red}{2 - x^2} \\ 2x^2 &= 2 \\ x^2 &= 1 \\ x &= -1 \quad \text{or} \quad x = 1 \end{aligned} \]
We put these into \( f \) and find the \( {y\text{-value}} \) at both points:
\[ \begin{aligned} f(-1) &= (-1)^2 = 1 \\ f(1) &= 1^2 = 1 \end{aligned} \]So the curves intersect at \( {(-1, 1)} \) and \( (1, 1)\text{.} \)
3. Find the curve on top
We subtract \( \textcolor{blue}{f} \) from \( \textcolor{red}{g} \) and factor:
\[ \textcolor{red}{g(x)} - \textcolor{blue}{f(x)} = 2 - 2x^2 = 2(1 - x^2) \]
For \( {-1 < x < 1} \) we have \( {x^2 < 1}\text{,} \) so the expression is positive. Then \( \textcolor{red}{g} \) lies above \( \textcolor{blue}{f} \) between the intersection points, and for each \( x \) the coordinate \( y \) goes from \( \textcolor{blue}{x^2} \) up to \( {\textcolor{red}{2 - x^2}}\text{:} \)
\[ \begin{aligned} R = \{(x, y) :\ &-1 \le x \le 1, \\ &\textcolor{blue}{x^2} \le y \le \textcolor{red}{2 - x^2}\} \end{aligned} \]
Exercise 1b)
Compute the area of the region
Show solutionHide solution for exercise 1b
Answer
We use the region from a). Full credit can still be given when an earlier error is carried forward.
The area is the double integral of \( 1 \) over \( R\text{.} \) We integrate first with respect to \( y\text{,} \) from the lower curve to the upper one.
1. Draw a sketch
In a) we found:
\[ \begin{aligned} R = \{(x, y) :\ &-1 \le x \le 1, \\ &\textcolor{blue}{x^2} \le y \le \textcolor{red}{2 - x^2}\} \end{aligned} \]
We draw a sketch of the region. It lies between the parabolas, which intersect at \( {(-1, 1)} \) and \( (1, 1)\text{:} \)
2. Set up the integral
The area of a region is the double integral of \( 1 \) over the region, as in the video Regn ut arealet av R med en dobbeltintegral:
\[ A = \iint_R 1\,dA \]
For each \( x \) the coordinate \( y \) goes from \( \textcolor{blue}{x^2} \) up to \( {\textcolor{red}{2 - x^2}}\text{,} \) and \( x \) goes from \( {-1} \) to \( 1\text{:} \)
\[ A = \int_{-1}^{1} \int_{\textcolor{blue}{x^2}}^{\textcolor{red}{2 - x^2}} 1\,dy\,dx \]
3. Compute the inner integral
We take the inner integral first:
\[ \begin{aligned} \int_{\textcolor{blue}{x^2}}^{\textcolor{red}{2 - x^2}} 1\,dy &= \Big[ y \Big]_{\textcolor{blue}{x^2}}^{\textcolor{red}{2 - x^2}} \\ &= \textcolor{red}{2 - x^2} - \textcolor{blue}{x^2} \\ &= 2 - 2x^2 \end{aligned} \]
4. Compute the outer integral
For \( {n \neq -1} \) the power rule tells us that:
\[ \int x^n\,dx = \dfrac{x^{n + 1}}{n + 1} + C \]If you are unsure about the power rule, you can watch the video Basic integrasjonsregler/formler.
We integrate term by term and insert the limits:
\[ \begin{aligned} A &= \int_{-1}^{1} (2 - 2x^2)\,dx \\ &= \left[ 2x - \dfrac{2}{3}x^3 \right]_{-1}^{1} \\ &= \left( 2 - \dfrac{2}{3} \right) - \left( -2 + \dfrac{2}{3} \right) \\ &= \dfrac{4}{3} + \dfrac{4}{3} = \dfrac{8}{3} \end{aligned} \]
Exercise 2
- Flere oppgaver om fluks,
- Flere oppgaver om konservative vektorfelt,
- Flere oppgaver om linjeintegraler,
- Flere oppgaver om parameterframstilling
Let be the circle Consider the vector field
Exercise 2a)
Compute the flux of across where is the outgoing normal vector to
Show solutionHide solution for exercise 2a
Answer
We parametrize the circle and write \( \vec{n} \) and \( ds \) in terms of \( t\text{.} \) Then the flux becomes an ordinary integral in \( t\text{.} \)
1. Draw a sketch
We draw a sketch first. \( C \) is the circle with center at the origin and radius \( 2\text{.} \) The blue arrows show \( \vec{F} \) at four points on the circle, for example \( {\vec{F}(2, 0) = (0, 2)}\text{,} \) and \( \vec{n} \) points out of the circle:
2. Parametrize the circle
We parametrize a circle with radius \( 2 \) with cosine and sine, as in the video Sirkel. One full turn is \( {0 \le t \le 2\pi}\text{:} \)
\[ \vec{r}(t) = (2\cos t,\ 2\sin t) \]
Along the circle \( {x = 2\cos t} \) and \( {y = 2\sin t}\text{,} \) so the field becomes:
\[ \textcolor{blue}{\vec{F}(\vec{r}(t))} = \textcolor{blue}{(-2\sin t,\ 2\cos t)} \]
3. Find the normal vector and ds
We differentiate component by component and get the tangent vector:
\[ \vec{r}\,'(t) = (-2\sin t,\ 2\cos t) \]
We get a normal vector by swapping the components and changing the sign of one of them, as in the video Regn ut linjeintegralet ved å bruke definisjonen:
\[ (a,\ b) \;\Rightarrow\; (-b,\ a) \;\;\text{or}\;\; (b,\ -a) \]
Here \( {a = -2\sin t} \) and \( {b = 2\cos t}\text{.} \) We choose \( {(b, -a)}\text{,} \) which points outward, and divide by its length \( 2\text{,} \) the radius:
\[ \textcolor{red}{\vec{n}} = \dfrac{(2\cos t,\ 2\sin t)}{2} = \textcolor{red}{(\cos t,\ \sin t)} \]
\( ds \) is the length of the tangent vector times \( dt\text{,} \) and \( {\sin^2 t + \cos^2 t = 1}\text{:} \)
\[ \begin{aligned} \textcolor{green}{ds} &= |\vec{r}\,'(t)|\,dt \\ &= \sqrt{4\sin^2 t + 4\cos^2 t}\,dt \\ &= \textcolor{green}{2\,dt} \end{aligned} \]If you are unsure about \( ds\text{,} \) you can watch the video Regn ut linjeintegralet ved å bruke definisjonen.
4. Compute the flux
We take the dot product component by component:
\[ \begin{aligned} \textcolor{blue}{\vec{F}} \cdot \textcolor{red}{\vec{n}} &= \textcolor{blue}{-2\sin t}\,\textcolor{red}{\cos t} + \textcolor{blue}{2\cos t}\,\textcolor{red}{\sin t} \\ &= 0 \end{aligned} \]
Plugging this in, we get:
\[ \Phi = \oint_C \textcolor{blue}{\vec{F}} \cdot \textcolor{red}{\vec{n}}\,\textcolor{green}{ds} = \int_0^{2\pi} 0 \cdot \textcolor{green}{2\,dt} = 0 \]\( \vec{F} \) is perpendicular to \( \vec{n} \) at every point on the circle, so nothing flows out through \( C\text{.} \)
Kontroll: The divergence theorem in the plane gives the same: \( {\nabla \cdot \vec{F} = \dfrac{\partial (-y)}{\partial x} + \dfrac{\partial x}{\partial y} = 0}\text{,} \) so the flux out of \( C \) is \( 0\text{.} \)
Exercise 2b)
Compute the work of along
Show solutionHide solution for exercise 2b
Answer
Around counterclockwise, the work is:
We parametrize the circle and put it into the formula for the line integral. Then we get an ordinary integral in \( t\text{.} \)
1. Draw a sketch
We draw a sketch first. We go around \( C \) once counterclockwise, which is the usual direction for \( \oint\text{.} \) The blue arrows show that \( \vec{F} \) points the same way:
2. Parametrize the circle
We parametrize a circle with radius \( 2 \) with cosine and sine, as in the video Sirkel. One full turn is \( {0 \le t \le 2\pi}\text{,} \) and as \( t \) increases, we go counterclockwise:
\[ \vec{r}(t) = (2\cos t,\ 2\sin t) \]
3. Set up the line integral
The formula for the line integral tells us that:
\[ \oint_C \vec{F} \cdot d\vec{r} = \int_a^b \textcolor{blue}{\vec{F}(\vec{r}(t))} \cdot \textcolor{red}{\vec{r}\,'(t)}\,dt \]If you are unsure about this one, you can watch the video Linjeintegral i vektorfelt & Arbeid.
We put \( {x = 2\cos t} \) and \( {y = 2\sin t} \) into \( {\vec{F} = (-y, x)} \) and differentiate \( \vec{r}(t)\text{.} \) Here:
\[ \begin{aligned} \textcolor{blue}{\vec{F}(\vec{r}(t))} &= \textcolor{blue}{(-2\sin t,\ 2\cos t)} \\ \textcolor{red}{\vec{r}\,'(t)} &= \textcolor{red}{(-2\sin t,\ 2\cos t)} \end{aligned} \]
4. Compute the integral
We take the dot product component by component and use that \( {\sin^2 t + \cos^2 t = 1}\text{:} \)
\[ \begin{aligned} \textcolor{blue}{\vec{F}} \cdot \textcolor{red}{\vec{r}\,'} &= 4\sin^2 t + 4\cos^2 t \\ &= 4(\sin^2 t + \cos^2 t) = 4 \end{aligned} \]
Plugging this in, we get:
\[ W = \int_0^{2\pi} 4\,dt = \Big[ 4t \Big]_0^{2\pi} = 8\pi \]
Kontroll: Green's theorem gives the same: with \( {P = -y} \) and \( {Q = x} \) we have \( {\dfrac{\partial Q}{\partial x} - \dfrac{\partial P}{\partial y} = 2}\text{,} \) and \( 2 \) times the area \( 4\pi \) of the disk is \( 8\pi\text{.} \)
Exercise 2c)
Is a conservative vector field?
Show solutionHide solution for exercise 2c
Answer
The work around the circle is and the curl is not zero:
We use the work from b). Full credit can still be given when an earlier error is carried forward.
In a conservative field the line integral around a closed curve is equal to \( 0\text{.} \) We therefore compare with the work from b), and check with the curl.
1. Use the work from b)
In a conservative field the line integral around a closed curve is equal to \( 0\text{,} \) as in the video Hva er et konservativt vektorfelt:
\[ \vec{F} \text{ conservative} \;\Rightarrow\; \oint_C \vec{F} \cdot d\vec{r} = 0 \]
In b) we found that the work around the circle is:
\[ \oint_C \vec{F} \cdot d\vec{r} = 8\pi \neq 0 \]Then \( \vec{F} \) cannot be conservative.
2. Check with the curl
A conservative field has curl equal to zero, as in the video Hva er et konservativt vektorfelt:
\[ \vec{F} \text{ conservative} \;\Rightarrow\; \nabla \times \vec{F} = \vec{0} \]
For \( {\vec{F} = (\textcolor{blue}{P}, \textcolor{red}{Q})} \) we write \( 0 \) as the third component, as in the video Finn ut om vektorfeltet er konservativt. Then the curl is:
\[ \nabla \times \vec{F} = \left( 0, 0, \dfrac{\partial \textcolor{red}{Q}}{\partial x} - \dfrac{\partial \textcolor{blue}{P}}{\partial y} \right) \]
Here:
\[ \begin{aligned} \textcolor{blue}{P} &= \textcolor{blue}{-y} & \dfrac{\partial \textcolor{blue}{P}}{\partial y} &= -1 \\ \textcolor{red}{Q} &= \textcolor{red}{x} & \dfrac{\partial \textcolor{red}{Q}}{\partial x} &= 1 \end{aligned} \]
Plugging this in, we get:
\[ \begin{aligned} \nabla \times \vec{F} &= (0, 0, 1 - (-1)) \\ &= (0, 0, 2) \neq \vec{0} \end{aligned} \]The curl is not zero, so this confirms that \( \vec{F} \) is not conservative.
Exercise 3
- Flere oppgaver om banefart,
- Flere oppgaver om buelengde,
- Flere oppgaver om parameterframstilling,
- Flere oppgaver om vektorer
Consider a particle with velocity
Exercise 3a)
Determine the position vector with initial condition
Show solutionHide solution for exercise 3a
Answer
The velocity is the derivative of the position. We therefore integrate \( \vec{v}(t) \) and find the constants with the initial condition.
1. Integrate the velocity
The relation between position and velocity tells us that:
\[ \begin{aligned} \vec{v}(t) &= \vec{r}\,'(t) \\ \vec{r}(t) &= \int \vec{v}(t)\,dt \end{aligned} \]If you are unsure about this, you can watch the video Regn ut posisjonen med initialbetingelsene.
We use the integrals of sine and cosine, as in the video Basic integrasjonsregler/formler:
\[ \begin{aligned} \int \sin t\,dt &= -\cos t + C \\ \int \cos t\,dt &= \sin t + C \end{aligned} \]
We integrate component by component, each with its own constant. The first components are blue and the second components red:
\[ \begin{aligned} \vec{r}(t) &= \left( \textcolor{blue}{\int \sin t\,dt}, \textcolor{red}{\int \cos t\,dt} \right) \\ &= (\textcolor{blue}{-\cos t + C_1}, \textcolor{red}{\sin t + C_2}) \end{aligned} \]
2. Find the constants
We put in \( {t = 0} \) and use \( {\vec{r}(0) = (0, 0)}\text{.} \) Since \( {\cos 0 = 1} \) and \( {\sin 0 = 0}\text{,} \) we get:
\[ \begin{aligned} \vec{r}(0) = (\textcolor{blue}{-1 + C_1}, \textcolor{red}{C_2}) &= (\textcolor{blue}{0}, \textcolor{red}{0}) \\ C_1 = 1, \quad C_2 &= 0 \end{aligned} \]
This gives us:
\[ \vec{r}(t) = (\textcolor{blue}{1 - \cos t}, \textcolor{red}{\sin t}) \]
Kontroll: \( {\vec{r}\,'(t) = (\sin t, \cos t) = \vec{v}(t)} \) and \( {\vec{r}(0) = (1 - 1, 0) = (0, 0)}\text{.} \)
Exercise 3b)
Compute the distance crossed by the particle from the time to an arbitrary time with
Show solutionHide solution for exercise 3b
Answer
Even if you did not solve a), you can solve this one: the velocity vector is given in the problem text.
The distance is the arc length of the path. We therefore integrate the speed \( |\vec{v}(t)| \) from \( {t = 0} \) to \( {t = b}\text{.} \)
1. Draw a sketch
In a) we found:
\[ \vec{r}(t) = (1 - \cos t,\ \sin t) \]
With \( {x = 1 - \cos t} \) and \( {y = \sin t} \) we have:
\[ (x - 1)^2 + y^2 = \cos^2 t + \sin^2 t = 1 \]
The path is therefore the circle with center \( {M = (1, 0)} \) and radius \( 1\text{.} \) The particle starts at the origin \( O\text{,} \) and since \( {\vec{r}\left( \tfrac{\pi}{2} \right) = (1, 1)}\text{,} \) it moves clockwise, with the velocity vector along the circle:
2. Write down the arc length
The formula for arc length tells us that:
\[ \begin{aligned} \ell &= \int_a^b |\vec{v}(t)|\,dt \\ &= \int_a^b \sqrt{\textcolor{blue}{x'(t)}^2 + \textcolor{red}{y'(t)}^2}\,dt \end{aligned} \]If you are unsure about this one, you can watch the video Regn ut buelengden.
Here \( {\vec{v}(t) = (\textcolor{blue}{\sin t}, \textcolor{red}{\cos t})}\text{,} \) so the speed is:
\[ |\vec{v}(t)| = \sqrt{\textcolor{blue}{\sin^2 t} + \textcolor{red}{\cos^2 t}} = \sqrt{1} = 1 \]
3. Compute the integral
Plugging this in, with the limits \( 0 \) and \( b\text{,} \) we get:
\[ \ell = \int_0^b 1\,dt = \Big[ t \Big]_0^b = b \]The particle has constant speed \( 1\text{,} \) so it covers the distance \( b \) in the time \( b\text{.} \)
Exercise 3c)
Compute the acceleration vector Is this vector ever zero?
Show solutionHide solution for exercise 3c
Answer
The length of is always so the vector is never zero:
The acceleration is the derivative of the velocity. We differentiate \( \vec{v}(t) \) component by component and look at the length of the vector.
1. Differentiate the velocity
The relation between velocity and acceleration tells us that:
\[ \vec{a}(t) = \vec{v}\,'(t) \]If you are unsure about this, you can watch the video Regn ut farten og akselerasjonen til partikkelen.
We differentiate component by component. The first components are blue and the second components red:
\[ \begin{aligned} \vec{a}(t) &= \left( \textcolor{blue}{(\sin t)'}, \textcolor{red}{(\cos t)'} \right) \\ &= (\textcolor{blue}{\cos t}, \textcolor{red}{-\sin t}) \end{aligned} \]
2. Find the length of the vector
A vector is zero only when its length is \( 0\text{.} \) With \( {\cos^2 t + \sin^2 t = 1} \) the length is:
\[ |\vec{a}(t)| = \sqrt{\textcolor{blue}{\cos^2 t} + (\textcolor{red}{-\sin t})^2} = 1 \]The length is \( 1 \) for all \( t\text{,} \) so \( \vec{a}(t) \) is never zero.
Exercise 4
- Flere oppgaver om divergensteoremet,
- Flere oppgaver om fluks,
- Flere oppgaver om kulekoordinater,
- Flere oppgaver om trippelintegraler
Exercise 4a)
Compute the triple integral
where is the ball
Show solutionHide solution for exercise 4a
Answer
The region is a ball, and the integrand is the square of the distance to the origin. We therefore switch to spherical coordinates.
1. Draw a sketch
We draw a sketch first. \( T \) is the ball with center at the origin and radius \( 1\text{.} \) A point \( P \) in the ball has the distance \( \textcolor{blue}{\rho} \) to the origin, the angle \( \varphi \) from the \( {z\text{-axis}} \) and the angle \( \theta \) in the \( {xy\text{-plane:}} \)
2. Rewrite in spherical coordinates
Spherical coordinates tell us that:
\[ \begin{aligned} x^2 + y^2 + z^2 &= \textcolor{blue}{\rho^2} \\ dV &= \textcolor{red}{\rho^2 \sin\varphi}\,d\rho\,d\varphi\,d\theta \end{aligned} \]If you are unsure about this, you can watch the video Regn ut fluksen ut av kulen ved å bruke divergenssetningen.
The ball goes from the origin out to radius \( 1\text{,} \) from the top to the bottom and all the way around, as in the video Regn ut fluksen ut av kulen ved å bruke divergenssetningen:
\[ \begin{aligned} 0 &\le \rho \le 1 \\ 0 &\le \varphi \le \pi \\ 0 &\le \theta \le 2\pi \end{aligned} \]
Plugging this in, we get:
\[ \begin{aligned} &\iiint_T (x^2 + y^2 + z^2)\,dV \\ &= \int_0^{2\pi} \int_0^{\pi} \int_0^1 \textcolor{blue}{\rho^2} \cdot \textcolor{red}{\rho^2 \sin\varphi}\,d\rho\,d\varphi\,d\theta \\ &= \int_0^{2\pi} \int_0^{\pi} \int_0^1 \rho^4 \sin\varphi\,d\rho\,d\varphi\,d\theta \end{aligned} \]
3. Compute the integrals
We take the innermost integral first. Since we integrate with respect to \( \rho\text{,} \) \( \sin\varphi \) is a constant:
\[ \begin{aligned} \int_0^1 \rho^4 \sin\varphi\,d\rho &= \sin\varphi \left[ \dfrac{\rho^5}{5} \right]_0^1 \\ &= \dfrac{1}{5}\sin\varphi \end{aligned} \]
Then we take the integral with respect to \( \varphi\text{.} \) With \( {\cos \pi = -1} \) and \( {\cos 0 = 1} \) we get:
\[ \begin{aligned} \int_0^{\pi} \dfrac{1}{5}\sin\varphi\,d\varphi &= \dfrac{1}{5}\Big[ -\cos\varphi \Big]_0^{\pi} \\ &= \dfrac{1}{5}(1 + 1) = \dfrac{2}{5} \end{aligned} \]
Finally we take the integral with respect to \( \theta\text{:} \)
\[ \int_0^{2\pi} \dfrac{2}{5}\,d\theta = \dfrac{2}{5} \cdot 2\pi = \dfrac{4\pi}{5} \]
Exercise 4b)
Let be the sphere and consider
Compute the flux where is the ingoing unit normal vector to the surface
Show solutionHide solution for exercise 4b
Answer
With the inward normal vector, the flux is:
We use the integral from a). Full credit can still be given when an earlier error is carried forward.
The sphere \( S \) is closed, so we use the divergence theorem. It gives the flux out of the ball, and here \( \vec{n} \) points inward.
1. Draw a sketch
We draw a sketch first. \( S \) is the surface of the ball \( T \) from a), and the inward normal vector \( \vec{n} \) points toward the center:
2. Use the divergence theorem
The divergence theorem tells us that the flux out of a closed surface is:
\[ \iint_S \vec{F} \cdot \vec{n}_{\text{out}}\,dS = \iiint_T \nabla \cdot \vec{F}\,dV \]If you are unsure about this one, you can watch the video Regn ut fluksen ut av kulen ved å bruke divergenssetningen.
The inward normal vector is the opposite of the outward one, \( {\vec{n} = -\vec{n}_{\text{out}}}\text{.} \) Then the flux changes sign:
\[ \begin{aligned} \Phi &= \iint_S \vec{F} \cdot \vec{n}\,dS \\ &= -\iiint_T \nabla \cdot \vec{F}\,dV \end{aligned} \]
3. Compute the divergence
The divergence is the sum of the partial derivatives, each component differentiated with respect to its own variable, as in the video Utregning av divergens:
\[ \nabla \cdot \vec{F} = \textcolor{blue}{\dfrac{\partial F_1}{\partial x}} + \textcolor{red}{\dfrac{\partial F_2}{\partial y}} + \textcolor{green}{\dfrac{\partial F_3}{\partial z}} \]
Here:
\[ \textcolor{blue}{F_1 = x^3}, \quad \textcolor{red}{F_2 = y^3}, \quad \textcolor{green}{F_3 = z^3} \]
Plugging this in, we get:
\[ \begin{aligned} \nabla \cdot \vec{F} &= \textcolor{blue}{3x^2} + \textcolor{red}{3y^2} + \textcolor{green}{3z^2} \\ &= 3(x^2 + y^2 + z^2) \end{aligned} \]
4. Use the integral from a)
In a) we found:
\[ \iiint_T (x^2 + y^2 + z^2)\,dV = \textcolor{darkorange}{\dfrac{4\pi}{5}} \]
This gives us:
\[ \begin{aligned} \Phi &= -\iiint_T 3(x^2 + y^2 + z^2)\,dV \\ &= -3 \cdot \textcolor{darkorange}{\dfrac{4\pi}{5}} = -\dfrac{12\pi}{5} \end{aligned} \]The flux is negative because the field flows out of the ball, in the opposite direction to \( \vec{n}\text{.} \)
Exercise 5
Consider the function together with the constraint that is is restricted to a circle of radius
Exercise 5a)
Write down the Lagrange equations for this case.
Show solutionHide solution for exercise 5a
Answer
The Lagrange equations are:
We use Lagrange's method. It gives three equations in three unknowns: two from the gradients and one from the constraint.
1. Draw a sketch
We draw a sketch first. The constraint is the circle with center at the origin and radius \( 1\text{:} \)
2. Write down the Lagrange equations
Lagrange's method tells us that:
\[ \nabla f = \lambda \nabla g, \qquad g(x, y) = 1 \]If you are unsure about this one, you can watch the video Lagranges metode.
The gradient consists of the partial derivatives, with respect to \( x \) in blue and with respect to \( y \) in red, 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}} \right) \]
Here:
\[ \begin{aligned} \nabla f &= (\textcolor{blue}{2x}, \textcolor{red}{1}) \\ \nabla g &= (\textcolor{blue}{2x}, \textcolor{red}{2y}) \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}{1} &= \lambda \cdot \textcolor{red}{2y} \\ x^2 + y^2 &= 1 \end{aligned} \]
Exercise 5b)
Find all solutions to the Lagrange equations.
Show solutionHide solution for exercise 5b
Answer
The Lagrange equations have four solutions
We solve the equations from a). Full credit can still be given when an earlier error is carried forward.
The first equation can be factored. It gives two cases, which we solve one at a time with the other two equations.
1. Solve the first equation
In a) we found:
\[ \begin{aligned} 2x &= 2\lambda x \\ 1 &= 2\lambda y \\ x^2 + y^2 &= 1 \end{aligned} \]
We move everything in the first equation over to the left 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{.} \) This gives two cases:
\[ x = 0 \quad \text{or} \quad \lambda = 1 \]
2. Solve the first case
We put \( {x = 0} \) into the other equations, as in the video Finn de kritiske punktene til f ved å bruke Lagranges metode. The constraint gives:
\[ \begin{aligned} y^2 &= 1 \\ y &= -1 \quad \text{or} \quad y = 1 \end{aligned} \]
The second equation gives \( {\lambda = \dfrac{1}{2y}}\text{:} \)
\[ \begin{aligned} y = 1: \quad \lambda &= \dfrac{1}{2} \\ y = -1: \quad \lambda &= -\dfrac{1}{2} \end{aligned} \]
3. Solve the second case
Putting \( {\lambda = 1} \) into the second equation, we get:
\[ 1 = 2y \quad \Rightarrow \quad y = \dfrac{1}{2} \]
The constraint then gives:
\[ \begin{aligned} x^2 + \dfrac{1}{4} &= 1 \\ x^2 &= \dfrac{3}{4} \\ x &= -\dfrac{\sqrt{3}}{2} \quad \text{or} \quad x = \dfrac{\sqrt{3}}{2} \end{aligned} \]
Ferdig med settet? Se de andre settene i Matte 3000, eller repeter temaene på fagsiden.