
1 Functions of several variables Graphs of functions An equation of the form z = f(x; y)thus describes a surface. We can think of z as the height of the surface above the x; y plane. (or below if it is negative). 2 Partial derivatives For any function f(x; y) we get @f by dierentiating w.r.t. keeping constant @x x y y @f by dierentiating w.r.t. keeping constant @y y x x We often drop the subscripts . Furthermore, sometimes @f is written @x fx and @f is written . @y fy Dierentiating again we get @ @f @2f also written @x @x = @x2 fxx @ @f @2f also written @y @x = @y@x fyx 2 @ @f @ f also written @x @y = @x@y fxy 2 @ @f @ f also written @y @y = @y2 fyy For all sensible functions fxy = fyx: Mathematical denition of the partial derivative Mathematical denition of the partial derivative is similar: @f f(x + ∆x; y) − f(x; y) = lim @x ∆x!0 ∆x @f f(x; y + ∆y) − f(x; y) = lim @y ∆y!0 ∆y Recall that df gives the rate of change of . Similarly @f corresponds to the dx f @x rate of change of in the positive direction. And @f corresponds to f x @y the rate of change of f in the positive y direction. 1 Multi-variable partial derivatives Partial derivatives are dened for multi-variable functions in a sim- ilar way: For a function of n variables, f(x1; x2; : : : ; xn), we get: @f by dierentiating w.r.t. the variable keeping all other variables @x xi constanti Mathematically we dene @f f(x x ; : : : ; x + ∆x ; : : : ; x ) − f(x x ; : : : ; x ; : : : ; x ) = lim 1; 2 i i n 1; 2 i n @xi ∆xi!0 ∆xi The total dierential @f @f df = dx + dy @x @y We call df, dened by this equation, the total dierential of f. Exact and Inexact dierentials Not all dierentials are total dierentials of a function. For example y dx + x dy is the total dierential df of the function f(x; y) = xy + c where c is a constant (Check this!). However try to nd a function f(x; y) whose total dierential is x dy + 3y dx. It is impossible, there is no such function. Such a dierential which is not the total dierential of any function is known as an inexact dierential. On the other hand a function which is the total dierential of a function is known as an exact dierential. A dierential A(x; y) dx + B(x; y) dy is exact if and only if A = B . § y x ¤ ¦ ¥ The multi-variable case This works similarly. The total dierential of a multi-variable function f(x1; x2; : : : ; xn)is n X @f df = dx : @x i i=1 i A dierential n X gi(x1; x2; : : : ; xn)dxi i=1 2 is exact if it is the total dierential of a function, ie if gi = @f=@xi for some function f, and inexact otherwise. A necessary and sucient condition for a dierential to be exact is: @g @g i = j : @xj @xi For all i; j = 1; : : : ; n: The chain rule Multi variable case: If f = f(x; y) and x and y and both function of just t then df @f dx @f dy = + dt @x dt @y dt Change of variables Suppose that x = x(u; v) and y = y(u; v) where u; v are two other variables. Then we have: @f @f @x @f @y = + @u @x @u @y @u @f @f @x @f @y = + @v @x @v @y @v Note that @f is at constant but @x is at constant . @x y @u v 3 Partial dierential equations An equation involving functions of two or more variables and some of its spatial derivatives is a p.d.e. Here we solve some simple examples that can be done easily. 3 Simple Examples Example 4: Find the general solution of @2z . z(x; y) @x@y = x − y Integration w.r.t keeping constant gives x2 . And with x y zy = 2 − xy + G(y) respect to y gives xy z = (x − y) + f(x) + g(y) 2 where f and g are again arbitrary dierentiable functions. Example 6: Find the general solution of ux . u(x; y) uxx + x = 3x + 4 2 Let p(x; y) = ux then xpx + p = 3x + 4x can be integrated straightaway xp = x3 + 2x2 + f(y) f(y) u = x2 + 2x + x x and then integrating again gives x3 u = + x2 + f(y) log(x) + g(y): 3 More interesting examples −2 Example 9: The wave equation uxx − c utt = 0. This is the type of equation describing the string, and many other systems. The way to solve this problem can be seen by rewriting it. Then again following example 8 by the chain rule @xu = @su@xs + @ru@xr = @su + @ru @tu = @su@ts + @ru@tr = c@su − c@ru Then the equation becomes urs = 0: Integrating as in example 3 gives u = f(r) + g(s) = f(x + ct) + g(x − ct). This is d'Alembert's solution. This is the sum of a left moving wave with speed c and a right moving wave. 4 4 Taylor expansions (Riley 5.7) This last equation makes it obvious how to generalize; a function of two variables expanded about (x; y) = (x0; y0) can be found by rst expanding about x = x0 and then about y = y0; 1 f(x; y) = f(x + ∆x; y + ∆y) = f + ∆x f j + ∆y f j + (∆x2f + 2∆x∆yf + ∆y2f )j + ::: 0 0 x y 2 xx xy yy where the vertical line j indicates setting x ! x0 and y ! y0. 5 Critical points Want to nd where local maxima minima or saddle points are. A critical point is a point at which both fx = 0 and fy = 0. Local maxima and minima Defn: A point (x0; y0) is said to be a local maximum if f(x0; y0) > f(x; y) for all points (x; y) in a suciently small neighbourhood surrounding (x0; y0). Defn: A point (x0; y0) is said to be a local minimum if f(x0; y0) < f(x; y) for all points (x; y) in a suciently small neighbourhood surrounding (x0; y0). A necessary condition for a maximum, minimum or saddle is that fx = fy = 0. 2 The test for what sort of critical point it is is let M = fxxfyy − (fxy) • If M > 0 and fxx > 0 then local minimum • If M > 0 and fxx < 0 then local maximum • If M < 0 then saddle point • If M = 0 then inconclusive 5 Proof: the function near x0; y0 is 1 2 2 2 f(x0 + ∆x; y0 + ∆y) = f(x0; y0) + (∆x fxx + 2∆x∆y fxyfxx + ∆y fyyfxx) + ::: 2fxx 1 2 2 = f(x0; y0) + ((∆x fxx + ∆y fxy) + ∆y M) + :::: 2fxx If fxx > 0 and M > 0 then f(x; y)−f(x0; y0) > 0 and f(x0; y0) is a minimum. If fxx < 0 then the reverse is true. If M < 0 then for some values of ∆x; ∆y, f(x; y) − f(x0; y0) is positive and for others it's negative. 6 Double integrals (Riley 6.1) Interpretation as volume under a surface • An important example of double integration region is when f(x; y) = 1; the volume under this surface is clearly just the area of the in- tegration region; ZZ V = dA = A: R Double integrals over regions Suppose that instead the region R is dened by a ≤ x ≤ b u(x) ≤ y ≤ v(x) where u; v are some functions. Integration becomes ZZ Z b Z v(x) f(x; y)dA = f(x; y)dy dx: R a u(x) Change of variables in double integration (Riley 6.4.1) J = jxuyv − xvyujis known as the Jacobian and is sometimes denoted @(x; y) = J = jx y − x y j: @(u; v) u v v u ZZ ZZ @(x; y) ZZ f(x; y)dxdy = f(x(u; v); y(u; v)) dudv = f(x(u; v); y(u; v))jxuyv−xvyujdudv: R R @(u; v) R 6 Use of polar coordinates Here x = r cos θ, y = r sin θ @(x; y) J = = jx y − x y j = j cos θ(r cos θ) − (−r sin θ) sin θj = r @(r; θ) r θ θ r and so again from the previous subsection the area element dA = J dr dθ = r dr dθ. 7 Extension to triple integration The total mass can be written as the triple integral ZZZ M = ρ dV V where V is the integration volume. Cylindrical polar coordinates ZZZ ZZZ f(x; y; z) dxdydz = f(r cos φ, r sin φ, z) rdrdφdz V V Applications: volumes, masses, centres of masses and centroids Masses and volumes already seen. Centre of mass of a body has coordinates x;¯ y;¯ z¯ where Z Z x¯ ρ dV = x ρ dV and similar for y; z: Denition: Centroid= what the centre of mass of an object would be if it had constant density (even if it doesn't.) (Use above formula with ρ = 1) 7 Change of variables for triple integrals: Spherical polar coordinates @x @y @z @u @u @u @(x; y; z) @x @y @z dV = dx dy dz = = @v @v @v : @(u; v; w) @x @y @z @w @w @w Cylindrical polar coordinates Here we have coordinates (r; φ, z)where x = r cos φ, y = r sin φ, z = z so the Jacobian becomes cos φ sin φ 0 @(x; y; z) = −r sin φ r cos φ 0 = r @(r; φ, z) 0 0 1 as we saw already.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages14 Page
-
File Size-