This set practises three lessons: vector fields and line integrals, gradient fields and path independence and testing for gradient fields, potentials and curl. Problem 1 also uses the moment of inertia about the origin from double integrals in polar coordinates. The set follows MIT's Problem Set 8, in our own words.
MIT's set has two parts. Part B holds MIT's three longer problems (15 points), for which OpenCourseWare has no solutions. All three are written out below, with hints and solutions of our own. Part A is a list of short exercises from MIT's own Supplementary Notes, which also hold their solutions. Those are not rewritten here: the last section of this page lists them and links to MIT's exercises and solutions.
MIT's sheet numbers the lectures by its Fall 2007 calendar, which also counts the two exam days before this point. So its numbers are two higher than this site's: MIT's Lecture 21 (vector fields and line integrals) is Lecture 19 here, its Lecture 22 (path independence) is Lecture 20 here, and its Lecture 23 (gradient fields and potentials) is Lecture 21 here. The lecture summaries cited on this page use the same numbers as this site. MIT labels each problem with the day from which it can be done: Problem 1 belongs to Lecture 19, parts (a) to (c) of Problem 2 to Lecture 20, and parts (d) and (e) of Problem 2 and all of Problem 3 to Lecture 21.
How to answer#
Work each problem on paper first. Then type your result in the answer box and press Check. A formula box takes plain typing, for example x*y/r^2, and accepts every correct way of writing the answer. Each formula box says which letters it expects. A number box wants a decimal number, not a fraction or a multiple of π, and its question says how exact your value must be. Angles are in radians. The points, and their split over the parts of a problem, are MIT's. Parts that ask you to show something have no box: open the solution when you are done, compare, and mark yourself. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.
Problem 1#
A line integral that is a moment of inertia
A vector field has only an -component:
In words
vector capital F equals the quantity x squared y plus one third y cubed, i hat
Let be a function that takes only positive values, and let be the part of the graph that runs from the point to the point , with . Let be the region that lies below and above the -axis, so between the vertical lines and .
Show that the line integral is equal to the moment of inertia about the origin of the region , with density . (MIT calls it the polar moment of inertia. It is the of the lesson on polar coordinates.)
Hint
Write the line integral as . Which of the two terms is left for this field? Then use itself as the parameter along the graph.
Hint
In the moment of inertia, . Write the double integral over as an iterated integral with on the inside: for a fixed , between which two values does run? Work out the inner integral only.
Solution
The idea. Both quantities can be reduced to one integral over from to . The line integral gets there by using as the parameter. The double integral gets there by doing its inner integral over . The two integrands turn out to be the same.
The line integral
The lesson writes a line integral in components:
In words
the integral of _ capital C vector capital F dot d vector r equals the integral of _ capital C M d x plus capital N d y
Here and , so only the term is left. Along the graph take as the parameter: , and runs from to . Everything is then in terms of :
In words
the integral of _ capital C vector capital F dot d vector r equals the integral from x one to x two of the quantity x squared f(x) plus one third f(x) cubed, d x
The moment of inertia
The lesson's moment of inertia about the origin is
In words
capital I nought equals the integral of the integral of _ capital R r squared delta d A
With and . The region is swept by vertical segments: for each between and , the height runs from (the -axis) up to (the curve ). This is where is used: the curve lies above the axis.
In words
capital I nought equals the integral from x one to x two of the integral from 0 to f(x) of the quantity x squared plus y squared, d y d x
In the inner integral is a constant:
In words
the integral from 0 to f(x) of the quantity x squared plus y squared, d y equals the quantity x squared y plus one third y cubed, sub 0 to the power f(x) equals x squared f(x) plus one third f(x) cubed
So
In words
capital I nought equals the integral from x one to x two of the quantity x squared f(x) plus one third f(x) cubed, d x equals the integral of _ capital C vector capital F dot d vector r
The component of the field was chosen for this: is the antiderivative of with respect to that is zero at .
Check the result
Try the simplest case (our own example): from to . Then is the unit square. The line integral is . Directly, the moment of inertia of the unit square about its corner at the origin is as well.
A look ahead (our addition): Green's theorem, in the lesson after these three, turns a line integral around a closed curve into a double integral of the curl over the region inside. This problem is a case of it, worked by hand.
Problem 2#
The polar angle as a potential
Consider the vector field
In words
vector capital F (x, y) equals the quantity minus y i hat plus x j hat, all over the quantity x squared plus y squared
It is defined at every point of the plane except the origin.
(a)1 point
In the right half-plane the polar angle of the point is
In words
theta (x, y) equals inverse tan ( y over x ), x greater than 0
Show that is the gradient of this function in the right half-plane. (MIT's remark: the formula for has no meaning where .)
Hint
The derivative of with respect to is . Here : use the chain rule, once with respect to and once with respect to .
Solution
The idea. Calculate the two partial derivatives of and compare them with the two components of .
The partial derivatives
With we have and . The chain rule gives
In words
theta sub x equals 1 over the quantity 1 plus the quantity y over x, all squared, times (- y over x squared ) equals minus y over the quantity x squared plus y squared
In words
theta sub y equals 1 over the quantity 1 plus the quantity y over x, all squared, times 1 over x equals x over the quantity x squared plus y squared
In both lines the top and the bottom were multiplied by .
Compare
These are the two components of the field, so
In words
del theta equals theta sub x i hat plus theta sub y j hat equals the quantity minus y i hat plus x j hat, all over the quantity x squared plus y squared, equals vector capital F for x greater than 0
Check the result
At the point the field is : it points straight up, and going up from is indeed the direction in which the polar angle grows fastest. The size of the field is , with the distance to the origin. That fits too: a step of length along a circle of radius changes the angle by .
(b)2 points
Let be a smooth curve in the right half-plane that runs from the point to the point . The polar coordinates of are and those of are , with both angles between and .
Express in terms of these polar coordinates. In the box, type r1, theta1, r2 and theta2 for the letters that you need. You may not need all four.
Hint
By part (a) the field is a gradient field in the region that holds the whole curve. Which theorem of the lesson gives the line integral of a gradient field without any integration?
Solution
The idea. In the right half-plane , so the fundamental theorem for line integrals applies with the potential .
The fundamental theorem
In words
the integral of _ capital C del f times d vector r equals f( P one ) minus f( P nought )
Here , the curve starts at and ends at , and the whole curve lies in the region where part (a) holds:
In words
the integral of _ capital C vector capital F dot d vector r equals theta (B) minus theta (A) equals theta two minus theta one
The distances and do not appear: the line integral is the angle that the curve sweeps out as seen from the origin.
Check the result
Take a curve along a ray from the origin (our own example), where . The answer is zero. That is right: on a ray the direction of motion is along , and the field is perpendicular to it, because . So the field does no work there.
(c)2 points
Calculate two line integrals directly from the definition, with a parametrisation and without the result of part (b):
- , where is the upper half of the unit circle, from to ;
- , where is the lower half of the unit circle, also from to .
Give both as decimals, to three decimal places.
Hint
On the unit circle take . For the upper half and runs from to . Write in terms of and . The bottom of the field is simple on this circle.
Hint
For the lower half, mind the direction: the curve must still start at and end at . One way is , , with from to .
Solution
The idea. Parametrise each half circle, put everything in terms of the parameter, and integrate. On the unit circle , so there .
The method
In words
the integral of _ capital C vector capital F dot d vector r equals the integral from t one to t two of vector capital F dot d vector r over d t, times d t
The upper half
On : , , with from to . Then and , and
In words
the integral over capital C one of minus y d x plus x d y equals the integral from 0 to pi of the quantity sine squared t plus cos squared t, d t equals the integral from 0 to pi of d t equals pi equals 3.142
The lower half
On : , , with from to . This starts at , passes through and ends at . Now and , while :
In words
the integral over capital C two of minus y d x plus x d y equals the integral from 0 to pi of the quantity minus sine squared t minus cos squared t, d t equals minus the integral from 0 to pi of d t equals minus pi equals minus 3.142
Check the result
The lesson's geometric form is
In words
the integral of _ capital C vector capital F dot d vector r equals the integral of _ capital C vector capital F dot capital T hat d s
On the unit circle the field has size and is tangent to the circle, in the counterclockwise direction. Along the motion is counterclockwise, so and the integral is the length of the half circle, . Along the motion is clockwise, so and the integral is .
The two results also fit the picture of part (b), an angle swept out: going over the top, the direction from the origin to the moving point turns from angle to angle . Going under, it turns the other way, from to . (Part (b) itself cannot be used here, because these curves leave the right half-plane.)
(d)1 point
Show that the curl of is zero at every point of the plane where is defined, not only in the right half-plane .
Hint
The curl is , with and . Use the quotient rule for both partial derivatives.
Solution
The idea. Calculate and with the quotient rule. The formulas hold wherever is not zero, which is every point except the origin.
The definition
In words
c u r l vector capital F equals capital N sub x minus M sub y
The two partial derivatives
In words
capital N sub x equals partial over partial x ( x over the quantity x squared plus y squared, ) equals the quantity the quantity x squared plus y squared, all minus x times 2 x, all over the quantity x squared plus y squared, all squared equals the quantity y squared minus x squared, all over the quantity x squared plus y squared, all squared
In words
M sub y equals partial over partial y ( minus y over the quantity x squared plus y squared, ) equals the quantity minus the quantity x squared plus y squared, all plus y times 2 y, all over the quantity x squared plus y squared, all squared equals the quantity y squared minus x squared, all over the quantity x squared plus y squared, all squared
The curl
The two are equal, so at every point other than the origin. Nothing in this calculation needed .
Check the result
In the right half-plane this had to come out: there by part (a), and the lesson shows that every gradient field has . A check with numbers at a point outside that half-plane, : both formulas give .
(e)2 points
Use the results of parts (a) to (d) to answer two questions, each with its reason. Is conservative over its whole domain, the plane without the origin? Is it conservative over the right half-plane ? A field is conservative (path-independent) in a region when its line integral between two points is the same along every curve in that region that joins them.
Hint
For the whole domain: do you already have two curves with the same start and the same end? For the right half-plane: what does part (b) say about any two curves from to ?
Solution
The idea. One pair of curves with the same end points and different line integrals is enough to show that a field is not conservative. A potential that works in the whole region is enough to show that it is.
The whole domain: not conservative
The half circles and of part (c) both run from to , and both stay inside the domain of . But the line integrals are and . So the line integral depends on the path, and is not conservative over its whole domain.
The same fact as a closed curve: going along and then back along reversed is one counterclockwise trip around the unit circle, and
In words
the loop integral of vector capital F dot d vector r equals the integral over capital C one of vector capital F dot d vector r minus the integral over capital C two of vector capital F dot d vector r equals pi minus (- pi ) equals 2 pi is not equal to 0
Why zero curl does not help here
Part (d) found on the whole domain. The lesson's test turns this into "gradient field" only under a condition:
In words
capital N sub x equals M sub y and vector capital F defined and differentiable at every point of the plane which gives vector capital F is a gradient field
This field is not defined at the origin, so the test does not apply. The problem shows that the condition cannot be dropped. MIT's summary of the next lecture makes the same point with this very field: around the unit circle its line integral is not zero, although its curl is zero wherever it is defined (Lecture 22, p. 2 of the Week 9 summaries).
The right half-plane: conservative
In the region the field is the gradient of the function , which is defined and differentiable in that whole region. By part (b), the line integral along any curve in the region from to is : it depends on the end points only. So is conservative over the right half-plane. The closed curve that gave is no objection, because the unit circle does not lie in the right half-plane.
MIT's closing note, in our words
MIT ends the problem with a note (p. 2 of the sheet). In fact at every point of the domain, if means the polar angle. But the polar angle cannot be made into one single-valued differentiable function on the whole plane without the origin: follow it once around the origin and it comes back larger, so it is fixed only up to multiples of . That is the of the closed curve above. Parts (a) and (b) use the right half-plane for this reason. Any other region where the polar angle can be chosen continuously, with one value at each point, would do as well. The upper half-plane is one (our own example).
Problem 3#
Radial fields with a power of the distance
Let be the distance to the origin, let be a constant, and consider the field
In words
vector capital F equals r to the power n the quantity x i hat plus y j hat
At every point other than the origin it points straight away from the origin, never sideways. For a negative the formula has no meaning at the origin, and the domain of is the plane without the origin.
(a)2 points
Calculate the curl of . MIT's advice: start by finding formulas for the partial derivatives and .
In the two formula boxes, type r for the distance , so that your formulas stay short. They expect the letters x, y, r and n. Write every power of the distance with r, not with x^2 + y^2 or sqrt(x^2 + y^2): the boxes treat r as a letter of its own.
Hint
Differentiate both sides of with respect to , keeping constant. That is quicker than differentiating the square root.
Hint
The components are and . In the factor is a constant, and depends on through : use the chain rule with .
Solution
The idea. The field depends on and partly through . Find and once, then use the chain rule in and .
The derivatives of r
Differentiate with respect to : . In the same way with respect to : . So
In words
r sub x equals x over r, r sub y equals y over r
The two partial derivatives of the field
With and :
In words
capital N sub x equals n r to the power n minus 1, end of power, r sub x times y equals n r to the power n minus 1, end of power, times x over r times y equals n x y r to the power n minus 2, end of power
In words
M sub y equals n r to the power n minus 1, end of power, r sub y times x equals n r to the power n minus 1, end of power, times y over r times x equals n x y r to the power n minus 2, end of power
The curl
In words
c u r l vector capital F equals capital N sub x minus M sub y equals n x y r to the power n minus 2, end of power, minus n x y r to the power n minus 2, end of power, equals 0
This holds for every , at every point other than the origin.
Check the result
Take , where no square root is left: , so and . Directly, and . The formula gives as well.
(b)2 points
Whenever possible, find a potential such that . MIT's advice: look for a potential that depends on and only through the distance, , and watch out for one negative value of for which the general formula does not work.
Give your potentials without an added constant: the general one with no constant term, and the one for the special value of so that it is zero at . The boxes for expect the letters r and n. For the natural logarithm type ln(r) or log(r).
Hint
By the chain rule, and , with and from part (a). Compare with the components and to find what must be.
Hint
You now need an antiderivative of a power of . For which power does the power rule for antiderivatives fail, and what is the antiderivative then?
Solution
The idea. Try . Its gradient is times the gradient of , which part (a) already found. Matching it with gives an ordinary differential equation for that one integration solves.
The gradient of a function of r
With and , the chain rule gives
In words
del g equals g prime (r) r sub x i hat plus g prime (r) r sub y j hat equals g prime (r) over r, times the quantity x i hat plus y j hat
This is to equal . So :
In words
g prime (r) equals r to the power n plus 1, end of power
The general case
When , the power rule gives
In words
g(r) equals r to the power n plus 2, end of power, over the quantity n plus 2, times ( plus c), n is not equal to minus 2
The special case
When , the formula would divide by zero. Then , whose antiderivative is the natural logarithm:
In words
g(r) equals log r ( plus c), n equals minus 2
So a potential exists for every : "whenever possible" turns out to be always. For the potential has a limit at the origin. For the potential (, or when ) tends to at the origin.
Check the result
For the field is and the formula gives , whose gradient is indeed . For : , with , as it should be.
A second route is the lesson's method 1, a line integral, here along a ray from the point at distance to the point at distance . On a ray the field points along the path and has size , so the work is : the same potential, with the constant chosen so that it is zero at . In this form the special case is the limit of the general one: for and it gives , close to .
Compare with Problem 2
For a negative this field, like the field of Problem 2, has zero curl on a domain with a hole at the origin. The test for gradient fields promises nothing there, and Problem 2 shows that a potential can fail to exist. Here it does exist, because we found it. One sign of the difference: around a circle centred at the origin the field of Problem 2 is tangent to the circle and does the work , while this field is perpendicular to the circle and does no work.
One case is worth knowing (our remark): for the field has size and the potential is . That is, in size, the inverse-square pattern of gravity and of the electric force, restricted to a plane and written with the mathematician's sign .
More practice: MIT's own solved exercises#
Part A of MIT's Problem Set 8 (12 points at MIT, not scored here) is a list of short exercises. All of them come from the problems section of MIT's "18.02 Supplementary Notes and Problems", which is on MIT OpenCourseWare under the same licence as the rest of the course, with solutions to the exercises that are not marked with a star. They are not rewritten here: open the exercises (section 4, Line integrals in the plane), try them, then compare with MIT's solutions.
An exercise number such as 4B-1 means section 4, group B, exercise 1; the letters after it are its parts. MIT assigned these, lecture by lecture (the lecture numbers are this site's):
| For | Exercises in section 4 of the Notes |
|---|---|
| Lecture 19: vector fields and line integrals | 4A-1b, d, 4A-2a, b, c, 4A-3a, b, c, d, 4A-4; 4B-1a, b, c, d, 4B-2a, b |
| Lecture 20: gradient fields and path independence | 4C-1, 4C-2, 4C-3 |
| Lecture 21: testing for gradient fields, potentials and curl | 4C-5a (by method 1 of the Notes), 4C-5b (by method 2), 4C-6a, b (by both methods) |
None of these is marked with a star, so each has a solution in the Notes. The two methods for finding a potential are those of the lesson, a line integral and antiderivatives; MIT's list refers to them as they are numbered in section V2 of the Notes, which MIT assigned as reading together with section V1.
Three of the exercises go well with the problems above (our remark). Exercise 4A-4 asks for the field around a straight wire that carries a current: it is the field of Problem 2 times a constant. Exercises 4A-2b and 4A-2c ask for the gradients of and of a general function of , the calculation of Problem 3(b) in the other direction, from the potential to the field.
MIT's list also names sections of the course textbook (Edwards and Penney, Multivariable Calculus, 6th edition) to read. The textbook is not openly licensed and is not used on this site, so they are not part of this page. This set has no exercises from the textbook.