APPENDIX C Additional Topics in Differential Equations APPENDIX C. Eact First-Order Equations Eact Differential Equations Integrating Factors Eact Differential Equations In Chapter 6, ou studied applications of differential equations to growth and deca problems. You also learned more about the basic ideas of differential equations and studied the solution technique known as separation of variables. In this appendi, ou will learn more about solving differential equations and using them in real-life applications. This section introduces ou to a method for solving the first-order differential equation M, d N, d 0 for the special case in which this equation represents the eact differential of a function z f,. Definition of an Eact Differential Equation The equation M, d N, d 0 is an eact differential equation if there eists a function f of two variables and having continuous partial derivatives such that f, M, and f, N,. The general solution of the equation is f, C. If f has continuous second partials, then M f f N. This suggests the following test for eactness. THEOREM C. Test for Eactness Let M and N have continuous partial derivatives on an open disk R. The differential equation M, d N, d 0 is eact if and onl if M N. Eactness is a fragile condition in the sense that seemingl minor alterations in an eact equation can destro its eactness. This is demonstrated in the following eample. C
C APPENDIX C Additional Topics in Differential Equations EXAMPLE Testing for Eactness NOTE Ever differential equation of the form M d N d 0 is eact. In other words, a separable differential equation is actuall a special tpe of an eact equation. a. The differential equation d d 0 is eact because M and N. But the equation d d 0 is not eact, even though it is obtained b dividing each side of the first equation b. b. The differential equation cos d sin d 0 is eact because M N and sin sin. cos sin But the equation cos d sin d 0 is not eact, even though it differs from the first equation onl b a single sign. Note that the test for eactness of M, d N, d 0 is the same as the test for determining whether F, M, i N, j is the gradient of a potential function. This means that a general solution f, C to an eact differential equation can be found b the method used to find a potential function for a conservative vector field. EXAMPLE Solving an Eact Differential Equation Solve the differential equation d d 0. Solution The given differential equation is eact because M N. The general solution, f, C, is given b f, M, d d g. 4 0 6 C = 000 C = 00 You can determine g b integrating N, with respect to and reconciling the two epressions for f,. An alternative method is to partiall differentiate this version of f, with respect to and compare the result with N,. In other words, N, f, g g. 8 C = C = 0 g So,, and it follows that g Therefore, gf C., C 8 4 4 8 Figure C. and the general solution is C. Figure C. shows the solution curves that correspond to C, 0, 00, and 000.
APPENDIX C. Eact First-Order Equations C EXAMPLE Solving an Eact Differential Equation Find the particular solution of cos sin d d 0 that satisfies the initial condition when. Solution The differential equation is eact because M Because N, is simpler than M,, it is better to begin b integrating N,. f, g g cos sin N cos sin. f, N, d d g M, g cos sin So, g cos sin and g cos sin d cos C which implies that f, cos C, and the general solution is cos C. General solution π π Figure C. 4 π 4 ( π, ) π π π Appling the given initial condition produces cos C which implies that C 0. So, the particular solution is cos 0. Particular solution The graph of the particular solution is shown in Figure C.. Notice that the graph consists of two parts: the ovals are given b cos 0, and the -ais is given b 0. In Eample, note that if z f, cos, the total differential of z is given b dz f, d f, d cos sin d d M, d N, d. In other words, M d N d 0 is called an eact differential equation because M d N d is eactl the differential of f,.
C4 APPENDIX C Additional Topics in Differential Equations Integrating Factors If the differential equation M, d N, d 0 is not eact, it ma be possible to make it eact b multipling b an appropriate factor u,, which is called an integrating factor for the differential equation. EXAMPLE 4 Multipling b an Integrating Factor a. If the differential equation d d 0 Not an eact equation is multiplied b the integrating factor u,, the resulting equation d d 0 Eact equation is eact the left side is the total differential of. b. If the equation d d 0 Not an eact equation is multiplied b the integrating factor u,, the resulting equation d d 0 Eact equation is eact the left side is the total differential of. Finding an integrating factor can be difficult. However, there are two classes of differential equations whose integrating factors can be found routinel namel, those that possess integrating factors that are functions of either alone or alone. The following theorem, which is presented without proof, outlines a procedure for finding these two special categories of integrating factors. THEOREM C. Integrating Factors Consider the differential equation M, d N, d 0.. If N, M, N, h is a function of alone, then. If is a function of alone, then eh d M, N, M, k ek d is an integrating factor. is an integrating factor. STUDY TIP If either h or k is constant, Theorem C. still applies. As an aid to remembering these formulas, note that the subtracted partial derivative identifies both the denominator and the variable for the integrating factor.
APPENDIX C. Eact First-Order Equations C5 EXAMPLE 5 Finding an Integrating Factor Solve the differential equation d d 0. Solution The given equation is not eact because M, and N, 0. However, because M, N, N, it follows that e h d e d e is an integrating factor. Multipling the given differential equation b produces the eact differential equation e 0 e e d e d 0 whose solution is obtained as follows. h f, N, d e d e g M, f, e g e e g e Therefore, g e and g e e C, which implies that f, e e e C. The general solution is e e e C, or Ce. The net eample shows how a differential equation can help in sketching a force field given b F, M, i N, j. EXAMPLE 6 An Application to Force Fields Force field: F(, ) i Famil of tangent curves to F:. Ce j Sketch the force field given b F, i j b finding and sketching the famil of curves tangent to F. Solution At the point, in the plane, the vector F, has a slope of d d which, in differential form, is d d 0. d d Figure C. From Eample 5, ou know that the general solution of this differential equation is Ce, or Ce. Figure C. shows several representative curves from this famil. Note that the force vector at, is tangent to the curve passing through,.
C6 APPENDIX C Additional Topics in Differential Equations EXERCISES FOR APPENDIX C. In Eercises 0, determine whether the differential equation is eact. If it is, find the general solution.. d d 0. e d e d 0. 0 d 6 0 d 0 4. cos d cos d 0 5. 4 6 d 4 6 d 0 6. e d e d 0 7. d d 0 8. e d d 0 9. d d 0 0. e cos d tan d 0 In Eercises and, (a) sketch an approimate solution of the differential equation satisfing the initial condition on the slope field, (b) find the particular solution that satisfies the initial condition, and (c) use a graphing utilit to graph the particular solution. Compare the graph with the sketch in part (a).. tan 5 d sec d 0. Differential Equation d d 0 4 4 4 4 Figure for Figure for In Eercises 6, find the particular solution that satisfies the initial condition. Differential Equation. d ln d 0 4. d d 0 5. e sin d cos d 0 6. d d 0 4 4 4 4 Initial Condition, 4, 4 Initial Condition 4 0 4 0 In Eercises 7 6, find the integrating factor that is a function of or alone and use it to find the general solution of the differential equation. 7. d 6 d 0 8. d d 0 9. 5 d d 0 0. 5 d d 0. d tan d 0. d d 0. d d 0 4. d d 0 5. d sin d 0 6. d d 0 In Eercises 7 0, use the integrating factor to find the general solution of the differential equation. 7. u, 8. 9. 0.. Show that each epression is an integrating factor for the differential equation (a) (b) (c) (d). Show that the differential equation is eact onl if a b. If a b, show that m n is an integrating factor, where In Eercises 6, use a graphing utilit to graph the famil of curves tangent to the given force field.. 4. F, 5. Integrating Factor u, 5 d d 0 u, 5 d 4 d 0 u, d d 0 d d 0. a b d b a d 0 a m b a b, F, i j i F, 4 i j 6. F, i j Differential Equation 4 d 4 d 0 a b n a b. j
APPENDIX C. Eact First-Order Equations C7 In Eercises 7 and 8, find an equation for the curve with the specified slope passing through the given point. 7. 8. Slope d d d d 9. Cost If C represents the cost of producing units in a manufacturing process, the elasticit of cost is defined as E Find the cost function if the elasticit function is E where C00 500 and 00. 40. Euler s Method Consider the differential equation with the initial condition 0 0. At an point k, k in the domain of F, F k, k ields the slope of the solution at that point. Euler s Method gives a discrete set of estimates of the values of a solution of the differential equation using the iterative formula F, where k k. (a) Write a short paragraph describing the general idea of how Euler s Method works. (b) How will decreasing the magnitude of affect the accurac of Euler s Method? 4. Euler s Method Use Euler s Method (see Eercise 40) to approimate for the values of given in the table if and 0. (Note that the number of iterations increases as decreases.) Sketch a graph of the approimate solution on the direction field in the figure. marginal cost average cost 0 0 k k F k, k Estimate of Point, 0, C C d d. 0.50 0.5 0.0 4. Programming Write a program for a graphing utilit or computer that will perform the calculations of Euler s Method for a specified differential equation, interval,, and initial condition. The output should be a graph of the discrete points approimating the solution. Euler s Method In Eercises 4 46, (a) use the program ou wrote in Eercise 4 to approimate the solution of the differential equation over the indicated interval with the specified value of and the initial condition, (b) solve the differential equation analticall, and (c) use a graphing utilit to graph the particular solution and compare the result with the graph of part (a). Differential Equation 4., 0.0 44., 0. 4 45., 4 0.05 46. 6 0, 5 0. Interval Initial Condition 0 47. Euler s Method Repeat Eercise 45 for and discuss how the accurac of the result changes. 48. Euler s Method Repeat Eercise 46 for 0.5 and discuss how the accurac of the result changes. True or False? In Eercises 49 5, determine whether the statement is true or false. If it is false, eplain wh or give an eample that shows it is false. 49. The differential equation d d 0 is eact. 50. If M d N d 0 is eact, then M d N d 0 is also eact. 5. If M d N d 0 is eact, then f M d g N d 0 is also eact. 5. The differential equation f d g d 0 is eact. The value of, accurate to three decimal places, is 4.. 5 4 4