Differential Equations a Differential Equation on the Form (1) Y0(X) = F(X)G(Y) Is Called Separable

Differential Equations a Differential Equation on the Form (1) Y0(X) = F(X)G(Y) Is Called Separable

Di®erential equations - quick and dirty Elise Hoff Âby Handelsh¿yskolen BI/Norwegian School of Management Institutt for samfunns¿konomi/Dep. of Economics Tel.: +47 46410780 Contents 1. What is a di®erential equation? 1 2. Separable di®erential equations 2 3. First order linear di®erential equations 4 3.1. Case 1: a and b are constants 5 3.2. Case 2: a is constant, b is a function 5 3.3. Case 3: Both a and b are functions 7 4. Second order linear di®erential equations 7 5. A note on notation 9 6. Want to know more? 9 1. What is a differential equation? A di®erential equation is an equation where a function is the un- known, and where one or more of its derivatives are involved. Example 1. Find a function y(x) such that y0 = 1. This is a di®er- ential equation, and we know how to solve it: Integrating with respect to x on both sides of the equation gives Z Z y0(x)dx = 1dx which implies y(x) + C1 = x + C2 where C1 and C2 are real numbers. Isolating y(x) solves the equation: y(x) = x + (C2 ¡ C1) = x + C where C is some real number. Whenever we are asked to prove that a given function is a solution to a given di®erential equation, we insert the given function into the equation and see that it ¯ts: Example 2. Prove that y(x) = e5x is a solution to the di®erential equation y0 ¡ 5y = 0 1 DEs - quick and dirty 2 In our case, y(x) = e5x, and therefore y0(x) = 5e5x. Thus y0(x) ¡ 5y(x) = 5e5x ¡ 5e5x = 0 Thus the given function y(x) = e5x ¯ts into the given di®erential equa- tion y0 ¡ 5y = 0, and is therefore a solution to the equation. A function is a solution to a given di®erential equation of and only if it ¯ts into the equation: Example 3 (Example 2 continued). Consider the function y(x) = x2. Then y0(x) = 2x and y0(x) ¡ 5y(x) = 2x ¡ 5x2 6= 0 Thus y(x) does not ¯t into the equation y0 ¡ 5y = 0, and is therefore not a solution to this equation. 2. Separable differential equations A di®erential equation on the form (1) y0(x) = f(x)g(y) is called separable. Example 4. (a) y0 = x¢y. This is a separable di®erential equation with f(x) = x and g(y) = y. We can separate the variable x from the function y0 y: The given equation is equivalent to y = x (b) y0 = x ¢ y ¡ x. The right hand side of the equation equals x(y ¡ 1), and this is therefore a separable di®erential equation with f(x) = x and g(y) = y ¡ 1. Again, we can separate the variable x from the function y: The given equation is equivalent y0 to y¡1 = x So how do we solve separable di®erential equations? First, we try to solve the di®erential equation from example 4(a): We must ¯nd a y0 0 dy function y(x) such that y = x. Recall that y is short for dx , and the equation is dy dx = x y dy and pretending that dx is a fraction, we can write this dy = xdx y Integrating on both sides gives Z Z dy = xdx y DEs - quick and dirty 3 that is 1 ln jyj + C = x2 + C 1 2 2 Move C1 over to the right hand side and let C = C2 ¡ C1: 1 ln jyj = x2 + C 2 and therefore 1 x2+C 1 x2 jyj = e 2 = jKje 2 where jKj = eC . This implies that 1 x2 y = Ke 2 where K is a real number. We get one solution for every choice of the dy 0 real number K. If we use the symbols dx for y , the general method for solving separable di®erential equations looks like this: General method for solving separable di®erential equations: Step 1 You have an equation of the form dy = f(x)g(y) dx Step 2 Separate the variable x from the function y: dy = f(x)dx g(y) Step 3 Integrate: Z Z dy = f(x)dx g(y) Calculate the integrals. You get an equation involving x and y. If possible, isolate y, i.e. express y in terms of x. You get in¯nitely many solutions, one for each choice of the integration constant C. Step 4 In addition to the solutions from Step 3, there may be constant solutions. If there exist numbers a such that g(a) = 0, then y(x) = a is a solution for every such a. Example 5. Solve the di®erential equation dy y2 = x + 1 dx Then ¯nd the solution that passes through the point (x; y) = (1; 1). First of all, this is a separable di®erential equation, and Step 2 from above becomes y2dy = (x + 1)dx We integrate: Z Z y2dy = (x + 1)dx DEs - quick and dirty 4 Calculating the integrals gives 1 1 y3 = x2 + x + C 3 2 Notice that there should have been a constant of integration on the left hand side, too, but we include this is the C on the right. It is possible to isolate y from this equation: s µ ¶ · µ ¶¸ 1 1 1 3 y = y(x) = 3 3 x2 + x + C = 3 x2 + x + C 2 2 Every choice of C gives a di®erent solution to the equation. We want to ¯nd the unique solution which has a graph passing through the point (1; 1). Thus y(1) must be 1, which implies the equation s µ ¶ 1 3 3 + 1 + C = 1 2 A cleaned up version of this is r 9 3 + 3C = 1 2 Third power on both sides: 9 + 3C = 1 2 Solving for C gives 1 ¡ 9 7 C = 2 = ¡ 3 6 The special solution passing though (1; 1) is s µ ¶ 1 7 y(x) = 3 3 x2 + x ¡ 2 6 3. First order linear differential equations A di®erential equation of the form (2) y0 + a(x) ¢ y = b(x) where a and b are continuous functions of x, are called ¯rst order linear di®erential equations. There are three separate cases of such di®erential equations: DEs - quick and dirty 5 3.1. Case 1: a and b are constants. In this case, equation 2 becomes y0 + ay = b where a and b are constants, a 6= 0 We will now perform a trick which nobody expects you to understand how we came up with. Hopefully, you will see the beauty, though: If we multiply both sides of this equation by eax, we get the equation (3) y0eax + ayeax = beax The factor eax is called the integrating factor. Now, we recognize the right hand side of equation 3 as the derivative of the product yeax: d (yeax) = y0eax + y(eax)0 = y0eax + ayeax dx Thus equation 3 is equivalent to the equation d (yeax) = beax dx and integrating both sides gives Z b yeax = beaxdx = eax + C a where C is any constant. Now, we can isolate y on the left hand side: b eax + C b y = y(x) = a = + Ce¡ax eax a Notice that there is one solution for every choice of the constant C. To summarize: 0 ¡ax b y + ay = b , y = y(x) = Ce + a for any constant C Example 6. Solve the di®erential equation y0 + 3y = 5 Here, a = 3 and b = 5 and the formula above implies 3 y(x) = Ce¡3x + 5 for any constant C. 3.2. Case 2: a is constant, b is a function. In this case, equation 2 becomes y0 + ay = b(x) The method of multiplying both sides with the integrating factor eax works in this case, too: (4) y0eax + ayax = b(x)eax DEs - quick and dirty 6 The left hand side is the derivative of the product yeax, and equation 4 is therefore equivalent to d (yeax) = b(x)eax dx Integration gives Z yeax = b(x)eaxdx + C and we can isolate y: Z y = y(x) = Ce¡ax + e¡ax b(x)eaxdx When calculating the integral, you do not need to include an integra- tion constant, as this is already included in C. To summarize: R y0 + ay = b(x) , y = y(x) = Ce¡ax + e¡ax eaxb(x)dx Example 7. Solve the di®erential equation y0 + 2y = x. In this case, a = 2 and b = b(x) = x. The formula implies Z (5) y = y(x) = Ce¡2x + e¡2x e2xxdx We calculate the integral using the technique of integration by parts: 0 2x 0 1 2x Let u = x and v = e . Then u = 1 and v = 2 e . Integration by parts gives Z Z 1 1 e2x x dx = xe2x ¡ e2x ¢ 1 dx |{z}|{z} 2 2 |{z} v0 u | {z } |{z} u0 u¢v v that is Z 1 1 e2xxdx = xe2x ¡ e2x 2 4 Inserting this into equation 5 gives µ ¶ 1 1 y = y(x) = Ce¡2x + e¡2x xe2x ¡ e2x 2 4 1 1 = Ce¡2x + x ¡ 2 4 DEs - quick and dirty 7 3.3. Case 3: Both a and b are functions. We will not include the explanation for the solution in this case. We just choose to believe the following: R ¡ R R ¢ y0 + a(x)y = b(x) , y = y(x) = e¡ a(x)dx C + e a(x)dxb(x)dx 0 1 Example 8.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us