Elements of Vector Calculus : Line and Surface Integrals Lecture 2: Electromagnetic Theory Professor D. K. Ghosh, Physics Department, I.I.T., Bombay In this lecture we will talk about special functions of vector fields and about operators which act on vector fields. We begin with the concept of a line integral. We are familiar with normal integrals, which can be regarded as a sum. Let us consider a force acting on a particle in one dimension. The work done in moving the particle from a to b is given ๐ by the integral โซ๐ ๐น(๐ฅ)๐๐ฅ . The particle in this case can move parallel to the x-axis. How do we generalize this to higher dimension? Suppose, the force F acts on a particle taking it along a curve in two or three dimensions. Work done is given by โซ ๐นโ โ ๐๐โ, where the integral is taken along the path in which the particle moves, the path C can be either an open path or a closed path which terminates at its starting point. a C C b Unlike the case of normal integrals that we have learnt in school, the integral here does not depend only on the end-points but they may depend on the details of the path traversed. There are of course exceptions to this. For instance, the work done by gravitational force or electrostatic force depends only on the end points. Such forces are called โconservative forcesโ. Along the curve one can always define a single parameter. For instance, taking time as the parameter, ๐๐โ we can express the work done along the curve as โซ๐ถ ๐นโ โ ๐๐โ = โซ๐ถ ๐นโ โ ๐๐ก = โซ๐ถ ๐นโ โ ๐ฃโ ๐๐ก, where ๐ฃโ is the ๐๐ก velocity of the particle at time t. 1 Example 1 : We will illustrate calculation of the work by computing the work done by a force given by a two dimensional force ๐นโ (๐ฅ, ๐ฆ) = (๐ฅ 2 โ ๐ฆ 2 ) ๐ฬ + 2๐ฅ๐ฆ๐ฬ along three different paths connecting the origin O(0,0) to the point P(2,1). P 3 Q 3 1 2 O (i) The path 1 is a straight line connecting O with P. The equation to the path is y=x/2. 2 1 โซ ๐นโ โ ๐๐โ = โซ ๐น๐ฅ ๐๐ฅ + โซ ๐น๐ฆ ๐๐ฆ = โซ (๐ฅ 2 โ ๐ฆ 2 )๐๐ฅ + โซ 2๐ฅ๐ฆ ๐๐ฆ 0 0 Substituting y=x/2 in the first integral and x=2y in the second, we get, 2 1 3๐ฅ 2 4 10 โ โ โซ ๐น โ ๐๐ = โซ ๐๐ฅ + โซ 4๐ฆ๐๐ฆ = 2 + = 3 3 0 4 0 (ii) The second path is a parabola given by the equation ๐ฆ = ๐ฅ2 . The 4 calculation proceeds exactly as in case (i) and we have, 2 1 ๐ฅ4 34 8 58 )๐๐ฅ + โซ 2. (2โ๐ฆ)๐ฆ ๐๐ฆ = + = 16 15 5 15 0 0 The third path is in two segments, OQ which connects (0,0) to (0,1) and then along QP connecting (0,1) to (2,1). Note that in the first case, x=0 so that ๐นโ = โ๐ฆ 2 ๐ฬ. Thus the integral โซ ๐นโ โ ๐๐โ = โซ (๐ฅ 2 โ (iii) reduces to โซ ๐น๐ฅ ๐๐ฅ. However, along this path dx=0. Thus the work done along this path is zero. 2 From Q to P, dy is zero, and y=1, thus for this path ๐นโ = (๐ฅ 2 โ 1)๐ฬ, โซ ๐นโ โ ๐๐โ = โซ ๐น๐ฅ ๐๐ฅ = 0 2 โซ0 (๐ฅ 2 โ 1)๐๐ฅ = 2 3 We can see from the above example that the integral is path dependent. Example 2 : As a second example, consider a force ๐นโ = โ๐ฆ๐ฬ + ๐ฅ๐ฬ along the first quadrant of a circle ๐ฅ 2 + ๐ฆ 2 = 1 taken in anti-clockwise fashion. Look at the sketch of the path. In this quadrant x and y are both positive. You could sketch the vector field and see that vectors at each point is โsomewhatโ directed upward, implying that the direction of the tangent to the path and the force makes an acute angle. Thus we expect ๐นโ โ ๐๐โ to be positive. 2 1 0 1 Since the particle moves on a circular path of unit radius , we can parameterize the position by ๐ฅ = cos ๐, ๐ฆ = sin ๐, so that ๐๐ฅ = โ sin ๐๐๐, ๐๐ฆ = cos ๐๐๐. Thus โซ๐นโ โ ๐๐โ = โซ (โ๐ฆ๐๐ฅ + ๐ฅ๐๐ฆ) ๐ถ ๐ 2 ๐ถ ๐ 2 0 In general, the line integral depends on the path of integration and not just on its end points. In cases where the value of the integral depends on the path of integration, the force is called โnonconservativeโ. If โซ ๐นโ โ ๐๐โ depends only on its end points, the force is said to be โconservativeโ In = โซ (sin2 ๐ + cos 2 ๐)๐๐ = this case, it can be further seen that โฎ ๐นโ โ ๐๐โ = 0, where the circle symbol over the integration sign means an integral over a closed contour. This becomes obvious if we look at the following. Suppose, we are computing the line integral over a closed path which goes from A to B along a path 1 but return from B to the initial point A through path 2. 3 B 2 1 A ๐ต Since the integral depends only on the end points we can write for the path 1 : โซ๐ด ๐นโ โ ๐๐โ = ๐(๐ต) โ ๐(๐ด), where ๐๐ is ๐๐ง the value of the indefinite integral. In the returning path 2 : we have ๐ด โซ๐ต ๐นโ โ ๐๐โ = ๐(๐ด) โ ๐(๐ต). Thus over the closed contour, we have, โฎ ๐นโ โ ๐๐โ = 0. We will spend some time on conservative field. This is because, we will be dealing with electrostatic field which is a conservative field. Suppose, we have a force field which can be expressed as a gradient of some scalar function, i.e. ๐นโ = โ๐. Note that not all forces can be written this way. But in those cases, where it can be so written, we have, ๐ต ๐ต ๐๐ ๐๐ ๐๐ + ๐ฬ + ๐ฬ ) (๐ฬ๐๐ฅ + ๐ฬ๐๐ฆ + ๐ฬ ๐๐ง) ๐๐ฅ ๐๐ฆ ๐๐ง ๐ด ๐ด ๐ต ๐ต ๐๐ ๐๐ ๐๐ = โซ ( ๐๐ฅ + ๐๐ฆ + ๐๐ง) = โซ ๐๐ = ๐(๐ต) โ ๐(๐ด) ๐๐ฅ ๐๐ฆ ๐๐ง ๐ด ๐ด So if a force field is expressible as a gradient of a scalar function, then the line integral would depend only on end points and not depend on path. Such a field is therefore conservative. We make a statement here that a conservative field can be expressed as a gradient of a scalar field. Generally, in Physics, we define the force as negative gradient of a scalar function ๐, i.e., ๐นโ = โซ ๐นโ โ ๐๐โ = โซ (๐ฬ โโ๐. We call such a function as โpotentialโ . (A mathematician would call ๐ to be a potential, whether we have the negative sign or not; in Physics, the negative gradient of potential is the force). Surface Integral : We define surface integral as an integral of a vector function over a surface. It is given by โซ ๐นโ โ ๐ฬ๐๐, where ๐ฬ is the โoutwardโ normal to the surface over which the integral is taken. We ๐ will shortly define the meaning of the phrase โoutwardโ. The quantity โซ๐ ๐นโ โ ๐ฬ๐๐ is also known as the flux of the vector field through the surface S. Let us consider an open surface. An open surface is bounded by a curve, for instance, a cup or a butterfly net. In both cases, there is a rim which is the bounding curve of the surface. The direction of the outward normal is defined by the โright handed ruleโโif the bounding curve of a surface is traversed in the direction of rotation of a right handed screw, the direction in which the head of the screw moves is the direction of the outward normal. For being able to define a surface integral, we need what are known as โtwo sided surfacesโ. Most of the common surfaces that we meet are two sided, they have an inside surface and an outside surface, separated by an edge or a rim. Take for example, the butterfly net shown here. The circular rim separates the 4 inside surface from the outside surface. One cannot go from a point on the outside surface to the inside surface or vice versa without crossing the edge. ฬ ๐ Defining an outward normal A Mobius strip There are one-sided surfaces too for which one cannot define a surface integral. One such example is a Mobius Strip. A Mobius strip is easily constructed by taking a strip of paper and sticking the short edges after giving a half-turn son that the edge on one side is glued to the other side. In such a case one can seamlessly traverse the entire surface without having to cross an edge. Note that in this case the normal at a point cannot be uniquely defined. Divergence of a Vector : We define divergence of a vector field at a point as the limit of surface integral to the volume enclosed by such a surface as the volume enclosed goes to zero. Thus 5 โซ๐ ๐นโ โ ๐ฬ๐๐ ฮ๐โ0 ฮ๐ This is a point relationship, i.e. a relationship defined at every point in the region where a vector field exists. We imagine an infinitely small volume around the point and compute the surface integral of the vector field over the surface defining this volume. Consider the following. div ๐นโ = lim One the left is a rectangular parallelepiped whose outward normals from the top and the bottom faces are shown. If we imagine the parallelepiped to be sliced into two parts, as shown to the right, while there is no change in the outward normals of the top face of the upper half and the bottom face of the lower half. However at the interface where the section is made, the normals are oppositely directed and the contributions to the surface integral from the two surfaces cancel. The same would be true for the other three pairs of faces of the parallelepiped. Thus, if we have a macroscopic volume defined by a bounding surface, we could split the volume into a large number of small volumes and the surface integrals of all volumes which are inside cancel out leaving us with contribution from the outside surface only. Thus the flux over a closed surface can be written as a sum over the surfaces of elemental volumes which make up the total volume. 1 โซ๐นโ โ ๐ฬ๐๐ = โ โซ ๐นโ โ ๐ฬ๐๐ = โ lim ( โซ ๐นโ โ ๐ฬ๐๐) ฮ๐ ฮ๐โ0 ฮ๐ ฮ๐ ๐ ฮ๐ The quantity in the bracket was defined as the divergence of ๐นโ at the location of the elemental volume. Thus the sum is nothing but an integral of the divergence over the volume of the system. This gives us the Divergence Theorem : 6 โโ โ ๐ โโ ๐ ๐ฝ ฬ ๐ ๐บ = โซ๐๐ข๐ฏ ๐ญ โซ๐ญ ๐บ ๐ฝ Expression for Divergence in Cartesian Coordinates : Since divergence is meaningful in the limit of the volume going to zero, we can calculate it by taking an infinitesimally small parallelepiped of dimensions ฮ๐ฅ × ฮ๐ฆ × ฮ๐ง which is oriented along the axes of the coordinate system. z ๏z ฬ ๐ ฬ ๐ ๏y y ๏x x Consider the flux from two opposite faces shown in the figure. Note that the left face is at some value of y and the normal is directed along โ๐ฬ direction. Thus the flux from this face is โ ๐น๐ฆ (๐ฆ)ฮ๐ฅฮ๐ง . The opposite face is at y+๏y and the normal to this face is along +๐ฬ direction. The flux from the face is +๐น๐ฆ (๐ฆ + ฮ๐ฆ)ฮ๐ฅฮ๐ง . The net outward flux from these two faces can be obtained by subtracting the former expression from the latter. Retaining only first order term in a Taylor series expansion of ๐น๐ฆ , we have ๐๐น๐ฆ ๐น๐ฆ (๐ฆ + ฮ๐ฆ) โ ๐น๐ฆ (๐ฆ) = ฮ๐ฆ ๐๐ฆ Thus the net flux from the two faces is ๐๐น๐ฆ ๐๐ฆ ฮx ฮ๐ฆ ฮ๐ง = ๐๐น๐ฆ ๐๐ฆ ฮ๐ By symmetry, one can get expressions for the contributions from the other two pairs of faces. The net outward flux from the six faces is thus, ๐๐น๐ฅ ๐๐น๐ฆ ๐๐น๐ง ๐นโ โ ๐ฬ๐๐ = ( + + ) ๐๐ ๐๐ฅ ๐๐ฆ ๐๐ง Summing over, we have ๐๐น๐ฅ ๐๐น๐ฆ ๐๐น๐ง โซ๐นโ โ ๐ฬ๐๐ = โซ ( + + ) ๐๐ ๐๐ฆ ๐๐ง ๐ ๐ ๐๐ฅ 7 However, the left hand side of this equation is identically equal to โซ๐ div ๐นโ ๐๐. Since the volume we have taken in arbitrary, we have ๐๐ข๐ฏ ๐ญ = ๐๐ญ๐ ๐๐ญ๐ ๐๐ญ๐ + + ๐๐ ๐๐ ๐๐ This is the Cartesian expression for the divergence of a vector field ๐นโ . We recall that the gradient operator โ was given by โโโ= ๐ฬ๐๐ฅ + ๐ฬ๐๐ฆ + ๐ฬ ๐๐ง Using this, one can write ๐๐ข๐ฏ ๐ญ = โ๐โ โ โ๐ญโ Physically, divergence, as the name suggests, shows how much does the field at a point diverges from its value at that point to the neighbouring region. In the figure below, the vector field ๐นโ = ๐ฬ๐ฅ + ๐ฬ๐ฆ, which has a positive divergence has been plotted in the x-y plane in the range x:[-2,+2] y:[-2,+2]. It can be seen that the fields spread outward from the origin. A field with negative divergence would instead converge. 8 Elements of Vector Calculus : Line and Surface Integrals Lecture 2: Electromagnetic Theory Professor D. K. Ghosh, Physics Department, I.I.T., Bombay Tutorial : 1. Calculate the line integral of the vector field ๐นโ = 4๐ฅ๐ง๐ฬ โ ๐ฆ 2 ๐ฬ + ๐ฆ๐ง๐ฬ along the following two paths joining the origin to the point P(1,1,1). (a) Along a straight line joining the origin to P, (ii) along a path parameterized by ๐ฅ = ๐ก, ๐ฆ = ๐ก 2 , ๐ง = ๐ก 3 . 2. Calculate the line integral of ๐นโ = (๐ฅ 2 + ๐ฆ 2 )๐ฬ + ๐ฅ๐ฆ๐ฬ over a quarter circle in the upper half plane 3. 4. 5. 6. 7. along the path connecting (3,0) to (0,3). What would be the result if the path was taken along the same circular path but in the reverse direction? Calculate the line integral of the scalar function ๐น(๐ฅ, ๐ฆ) = ๐ฅ๐ฆ 3 over the right half of the semi-circle ๐ฅ 2 + ๐ฆ 2 = 4 along the counterclockwise direction from (0,-2) to (0,+2). A two dimensional force field is given by (2๐ฅ๐ฆ 2 + 3๐ฅ 2 )๐ฬ + (2๐ฅ 2 ๐ฆ + 4๐ฆ 3 )๐ฬ. Find a potential function for this force field. Calculate the flux of a constant vector field ๐๐ฬ , through the curved surface of a hemisphere of radius R whose base is in the x-y plane. Calculate the divergence of the position vector ๐โ. Calculate the divergence of ๐นโ = โ๐ง๐ฬ + ๐ฅ๐ง๐ฬ + ๐ง๐ฆ๐ฬ. 8. Calculate the divergence of ๐นโ = ๐ฅ๐ง๐ฬ โ ๐ ๐ง ๐ฬ + cos ๐ง๐ฬ. 9 Solution to Tutorial Problems : 1. (a) Along the straight line path, we have, x=y=z, so that โซ ๐นโ โ ๐๐โ = โซ (๐น๐ฅ ๐๐ฅ + ๐น๐ฆ ๐๐ฆ + ๐น๐ง ๐๐ง) can 1 1 1 4 be expressed as โซ0 4๐ฅ 2 ๐๐ฅ โ โซ0 ๐ฆ 2 ๐๐ฆ + โซ0 ๐ง 2 ๐๐ง = 3 . (b) Substituting the parameterized form, we have, ๐๐ฅ = ๐๐ก, ๐๐ฆ = 2๐ก๐๐ก, ๐๐ง = 3๐ก 2 ๐๐ก. The line 1 1 1 101 integral is โซ0 4๐ก 4 ๐๐ก โ โซ0 2๐ก 5 ๐๐ก + โซ0 3๐ก 7 ๐๐ก = 120 2. The path integral is most conveniently done by parameterizing ๐ฅ = 3 cos ๐ , ๐ฆ = 3 sin ๐, so that ๐ ๐๐ฅ = โ3 sin ๐ , ๐๐ฆ = 3 cos ๐. The integral is then given by โ27 โซ02 sin ๐๐๐ + ๐ 27 โซ02 cos 2 ๐ sin ๐๐๐ = โ18. If the curve is traversed in the opposite direction, the line integral would become +18. 3. Since the path is along a circle of radius 2, we can parameterize by ๐ฅ = 2 cos ๐ , ๐ฆ = 2 sin ๐ ๐๐ = โ(๐๐ฅ)2 + (๐๐ฆ)2 = โ( ๐๐ฅ 2 ๐๐ฆ 2 ) + ( ) ๐๐ = 2๐๐ ๐๐ ๐๐ 0, +2 The line integral is + ๐ 2 โซ 25 cos ๐ sin3 ๐๐๐ ๐ โ2 ๐/2 sin4 ๐ = 32 | = 16 4 โ๐/2 0, -2 4. Let ๐นโ = โ๐, we then have ๐๐ = 2๐ฅ๐ฆ 2 + 3๐ฅ 2 โ ๐ = ๐ฅ 2 ๐ฆ 2 + ๐ฅ 3 + ๐ถ1 (๐ฆ) ๐๐ฅ ๐๐ ๐น๐ฆ = = 2๐ฅ 2 ๐ฆ + 4๐ฆ 3 โ ๐ = ๐ฅ 2 ๐ฆ 2 + ๐ฆ 3 + ๐ถ2 (๐ฅ) ๐๐ฆ The potential function is therefore given by ๐ = ๐ฅ 2 ๐ฆ 2 + ๐ฅ 3 + ๐ฆ 3 + ๐ถ, where C is an arbitrary constant. 5. In this case it is convenient to use the spherical polar coordinates, the surface element is ๐๐ = ๐ 2 sin ๐๐๐๐๐ and it is along the radial direction, which makes an angle ๐ with the z-axis. Thus ๐น๐ฅ = ๐ 2๐ โซ๐ ๐นโ โ ๐๐โ = |๐|๐ 2 โซ0 ๐๐ โซ02 sin ๐ cos ๐๐๐ = |๐|๐ 2 ๐ 10 6. ๐โ = ๐ฅ๐ฬ + ๐ฆ๐ฬ + ๐ง๐ฬ. Thus div ๐โ = 1 + 1 + 1 = 3. (This is an important relation which we use frequently.) 7. โ โ ๐นโ = 0 + 0 + ๐ฆ = ๐ฆ. ๐๐น๐ฆ ๐๐น 8. โ โ ๐นโ = ๐๐ฅ๐ฅ + ๐๐ฆ + ๐ง = ๐ง + 0 โ sin ๐ง = ๐ง โ sin ๐ง Elements of Vector Calculus : Line and Surface Integrals Lecture 2: Electromagnetic Theory Professor D. K. Ghosh, Physics Department, I.I.T., Bombay Self Assessment Quiz 1. Find the line integral of the vector field ๐นโ = (๐ฅ 2 + ๐ฆ 2 )๐ฬ โ 2๐ฅ๐ฆ๐ฬ along a path ๐ฆ = โ๐ฅ from (0,0) to (1,1). 11 2. Calculate the line integral of the vector field ๐นโ = 2๐ฅ๐ฬ + 3๐ฆ๐ฬ + 4๐ง๐ฬ along the following two paths joining the origin to the point P(1,1,1). (a) Along a straight line joining the origin to P, (ii) along a path parameterized by ๐ฅ = ๐ก, ๐ฆ = ๐ก 2 , ๐ง = ๐ก 3 . 3. From the result of Problem 2, can you conclude that the force is conservative? If so, determine a potential function for this vector field. ๐ฅ3 4. A potential function is given by ๐(๐ฅ, ๐ฆ, ๐ง) = ๐3 โ 2๐ฅ๐ฆ๐ง ๐3 + ๐ฆ2๐ง , ๐3 where a, b and c are constants. Find the force field. 5. A conservative force field is given by ๐นโ = (2๐ฅ๐ฆ + ๐ง 3 )๐ฬ + ๐ฅ 2 ๐ฬ + 3๐ฅ๐ง 2 ๐ฬ . Calculate the work done by the force in taking a particle from the origin to the point (1,1,2). ๐โ 6. A force field is given by ๐นโ = โ 3 , where r is the distance of the point from the origin. Calculate the ๐ divergence at a point other than the origin. Solutions to Self Assessment Quiz 1 1 1 1. Substituting ๐ฆ = โ๐ฅ, ๐ฅ = ๐ฆ 2 , the line integral can be expressed as โซ0 (๐ฅ 2 + ๐ฅ)๐๐ฅ โ 2 โซ0 ๐ฆ 3 ๐๐ฆ = 3. 1 1 2. (i) For the straight line path x=y=z, โซ ๐นโ โ ๐๐โ = โซ (๐น๐ฅ ๐๐ฅ + ๐น๐ฆ ๐๐ฆ + ๐น๐ง ๐๐ง = โซ0 2๐ฅ๐๐ฅ + โซ0 3๐ฆ๐๐ฆ + 1 โซ0 4๐ง๐๐ง = 9/2. (ii) For the second path ๐๐ฅ = ๐๐ก, ๐๐ฆ = 2๐ก๐๐ก, ๐๐ง = 3๐ก 2 ๐๐ก, so that โซ ๐นโ โ ๐๐โ = 1 โซ0 (2๐ก + 6๐ก 3 + 12๐ก 5 )๐๐ก = 9/2. 3. Just from the fact that line integrals along two different paths give the same result, one cannot conclude that the force is conservative. However, in this particular case, the vector field happens to be conservative. Let the potential function be ๐, ๐นโ = โ๐. Equating components of the force, we get, ๐๐ ๐น๐ฅ = = 2๐ฅ โ ๐ = ๐ฅ 2 + ๐ถ1 (๐ฆ, ๐ง) ๐๐ฅ ๐๐ 3๐ฆ 2 ๐น๐ฆ = = 3๐ฆ โ ๐ = + ๐ถ2 (๐ฅ, ๐ง) ๐๐ฆ 2 ๐๐ ๐น๐ง = = 4๐ง โ ๐ = 2๐ง 2 + ๐ถ3 (๐ฅ, ๐ฆ) ๐๐ง Clearly, the function is given by ๐ = ๐ฅ 2 + 3๐ฆ 2 2 + 2๐ง 2 + ๐ถ, where C is an arbitrary constant, which can be taken to be zero.The line integral can therefore be written as ๐ 3 9 โโโโโโ โ ๐๐โ = โซ ๐๐ = ๐|1,1,1 โซ โ๐ 0,0,0 = 1 + + 2 = 2 2 ๐ As expected. 4. The components of the force are obtained as follows : ๐น๐ฅ = ๐น๐ง = ๐๐ ๐๐ง =โ 2๐ฅ๐ฆ ๐3 ๐๐ ๐๐ฅ = 3๐ฅ 2 ๐3 โ 2๐ฆ๐ง , ๐3 ๐น๐ฆ = ๐๐ ๐๐ฆ =โ 2๐ฅ๐ง ๐3 + 2๐ฆ๐ง , ๐3 ๐ฆ2 + ๐3 . 5. Since the force is conservative it can be expressed as a gradient of a scalar potential. Writing ๐นโ = โ๐, We can show that the potential is given by ๐ = ๐ฅ 2 ๐ฆ + ๐ฅ๐ง 3 . The work done is ๐(1,1,2) โ ๐(0,0,0) = 9 โ 0 = 9 units. 12 ๐โ 1 6. Given ๐นโ = โ ๐3 , where ๐ = (๐ฅ 2 + ๐ฆ 2 + ๐ง 2 )2 . Using chain rule (since the function depends only on 1 1 3 3 the distance r, โ โ ๐นโ = โ ๐3 โ โ ๐โ โ โ (๐3 ) โ ๐โ = โ ๐3 + ๐4 ๐ = 0. 13
© Copyright 2026 Paperzz