Solution To ODE
Solution To ODE
2
Sec. 2.1
On pp. 45-46 we extend concepts defined in Chap. 1, notably solution and homogeneous and nonhomogeneous, to second-order ODEs; take a look into Secs. 1.1 and 1.5 before you continue. You will see in this section that a homogeneous linear ODE is of the form y p x y q x y 0. An initial value problem for it will consist of two conditions, prescribing an initial value and an initial slope of the solution, both at the same point x 0 . But on the other hand, a general solution will now involve two arbitrary constants for which some values can be determined from the two initial conditions. Indeed, a general solution is of the form y c1 y1 c2 y2 where y 1 and y 2 are such that they cannot be pooled together with just one arbitrary constant remaining; expressed technically, y 1 and y 2 are linearly independent, meaning that they are not proportional on the interval on which a solution of the initial value problem is sought.
Problem Set 2.1. Page 52 5. General solution. Initial value problem. Substitution shows that x 2 and x
x 0 are solutions. (The simple algebraic derivation of such solutions will be shown in Sec. 2.5 on p. 70.) They are linearly independent (not proportional) on any interval not containing 0 (where x 2 is not defined). Hence y c 1 x 2 c 2 x 2 is a general solution of the given ODE. Set x 1 and use the initial conditions in y and y 2 c 1 x 2 c 2 x 3 . This gives y 1 c 1 c 2 11, y 1 2 c 1 c 2 6. The solution is obtained by inspection or elimination, c 1 4, c 2 7. e 2 a x is not constant, unless a 0. Hence y c 1 e a x c 2 e a x with a 0 can be a general solution of an ODE. You may verify that the ODE is y a 2 y 0. A derivation will be given in the next section.
ax 2
9. Linear independence. e a x /e
11. Linear dependence. This follows by noting that ln x 2 2 ln x. The problem is typical of cases in
which some functional relation is used to show linear dependence. Problem 13 is of the same kind. 0 . It can be reduced to first order if [Case (A)] x does not occur explicitly, or if [Case B] y does not occur explicitly. The ODE y y 3 sin y 0 is Case (A). To reduce it, set z y dy/dx and use y as the independent variable. This can be done by using the chain rule, namely, dy dy dy y dz z z 3 sin y dx dy dx dy where the last equality follows by using the given ODE. Now divide by z 3 and separate variables to get dz sin y dy. z2 Integration gives 1 z cos y c 1 . Next use z dy/dx, hence 1/z dx/dy, and separate again, obtaining dx cos y c 1 dy. By integration, x sin y c 1 y c 2 . This is given on p. A7. The derivation shows that the two arbitrary
21. Reduction to first order. The most general second-order ODE is of the form F x, y, y , y
Chap. 2
11
constants result from the two integrations which finally gave us the answer. The trick of reducing the second derivative is worth remembering.
25. Another reduction. Use of initial conditions. The use of the two initial conditions is similar to the
use of a single initial conditon in Chap. 1. The only difference is that you also have to calculate the first derivative of the general solution, and that you may have to solve a system of two equations in two unknowns by algebra. Problem 25 concerns the initial value problem y ky , y 0 0, y 0 1 (with an unspecified constant of proportionality k) because the solution curve should pass through the origin and have slope 1 at the origin. The reduction to first order is called Case ( B) in Prob. 21 (see just before). It is simpler and more natural than Case (A). Set y z. The reduced problem is z kz, z 0 1. Solution z e k x . By integration and use of the first initial condition, 1 1 1 1 kx y z dx e kx c, y0 c 0, c , y e 1. k k k k [Note that here we solved the two equations for the arbitrary constants individually, not as a system.]
Sec. 2.2
Solving such an ODE (a, b constant) (1) amounts to solving the quadratic equation 2 a b 0. (3) From algebra you know that (3) may have two real roots 1 , 2 or a real double root or complex conjugate roots 1 a i , 1 a i with i 1 and b 1 a 2 . The corresponding general solution of (1) in 2 2 4 these three cases are (6), (7), and (9). In (9) we have oscillations, harmonic if a 0 and damped (going to zero as x increases) if a 0. See Fig. 31 on p. 57. The key in the derivation of (9) is the Euler formula (11) with t x, that is, e i x cos x i sin x which you will also need later.
Problem Set 2.2. Page 59 3. General solution. Problems 1-14 amount to solving quadratic equations. Observe that (3) and (4) refer
to the standard form, namely, the case that y has the coefficient 1. Hence in Prob. 3 you have y 5y 25 y 0, so that the characteristic equation 4
2 2
25 5 4
5 2
0
has the double root 5/2. Hence the ODE has the general solution y c 1 c 2 x e 5x/2 given on p. A7.
2.5 0, whose
3 i.
12
Ordinary Differential Equations (ODEs) 3 3 x B sin x . 2 2 This represents oscillations with an increasing amplitude. An oscillation with decreasing amplitude is obtained in Prob. 23. y e x/2 A cos
Part A
35. Suitable abbreviated notations. The point of the problem is to show that in complicated calculations
it is essential to choose suitable notations. This is a general rule. In the present case the suggestions given on p. A7 look in full detail as follows. a a2 y 1 E c, E e ax/2 , E E, E E 4 2 s sin x, c cos x, a c 2 c s, c 2 c y1 E c E c s E
y1 E c 2 E c E c a2 c2 4 a 2 s 2 c E.
Insert these expressions into the ODE, drop the common factor E (the exponential function). This gives a2 c a s 2c 4 a2 c as 2 bc 0. The sine terms cancel. Also the sum of the cosine terms is zero, as you can see by remembering that 2 b 1 a 2 , namely, 4 1 2 a 4 b 1 2 a 4 1 2 a b 0. 2
Sec. 2.3
Differential Operators
11. Differential operators, general solution. The optional Sec. 2.3 introduces the operator notation and
shows how it can be applied to linear ODEs with constant coefficients. The given ODE is
Chap. 2
13
D 2 4.1 D 3.1 I y D I D 3.1 I y y 4.1 y 3.1 y 0. From the two factors we conclude that a general solution is y c 1 e 3.1 x c 2 e x and D I D 3.1 I c 1 e 3.1 x c 2 e x 0 because DI e x e xe x 0 and D 3.1 I e 3.1 x 3.1 e 3.1 x 3.1 e 3.1 x 0.
Sec. 2.4
Newtons law and Hookes law give the model, namely, the ODE (3) if the damping is negligibly small over the time considered, and (5) if there is damping that cannot be neglected and the model contains the damping term c y . It is remarkable that the three cases in Sec. 2.2 here correspond to three cases in terms of mechanics; see p. 65. The curves in Cases I and II look similar, but their formulas (7) and (8) are different. Case III includes as a limiting case harmonic oscillations (p. 63) in which no damping is present and no energy is taken from the system, so that the motion becomes periodic with the same maximum amplitude C in (4*) at all times. Eq. (4*) also shows the phase shift . Hence it gives a better impression than the sum (4) of sines and cosines. The derivation of (4*) suggested in the text begins with y t C cos 0 t C cos 0 t cos sin 0 t sin C cos cos 0 t C sin sin 0 t A cos 0 t B sin 0 t. By comparing you see that A C cos , B C sin , hence A 2 B 2 C 2 cos 2 C 2 sin 2 C 2 and C sin B sin . tan cos C cos A
Problem Set 2.4. Page 68 3. Pendulum. In the solution given on p. A8, the second derivative is the angular acceleration, hence
L is the acceleration and m L is the corresponding force. The restoring force is caused by the force of gravity mg whose tangential component m g sin is the restoring force and whose normal component m g cos has the direction of the rod in Fig. 41. Also 02 g/L is the analog of 02 k/m in (4) because the models are g k 0 and y m y 0. L
14 k m
Part A k m
1/2
k m
1/2
c2 4mk
1/2
c2 8mk
100/ 8 10 90
17. Overdamping. c 1 e
t c 2 e t 0 gives c 1 /c 2 e t e 2 t . Since the exponential function is nonnegative and you have a minus sign on the right, you see that c 1 /c 2 must be negative to have a solution.
Sec. 2.5
Euler-Cauchy Equations
This is another large class of ODEs that can be solved by algebra, leading to single powers and logarithms, whereas for constant-coefficient ODEs you obtained exponential and trigonometric functions. Three cases appear, as for those other ODEs, and Fig. 47 gives an idea of what kind of solution you can expect. In some cases x 0 must be excluded (when you have a power with a negative exponent), and in other cases the solutions are restricted to positive values for the independent variable x; this happens when a logarithm or a root appears (see Example 1). Note further that the auxiliary equation for determining exponents m in y x m is m m 1 a m b 0, thus m 2 a 1 m b 0, with a 1 as the coefficient of the linear term; here the ODE is written x 2 y axy b y 0, (1) which is no longer in the standard form with y as the first term. Whereas constant-coefficient ODEs are basic in mechanics and electricity, Euler-Cauchy equations are less important. A typical application is shown on p. 72.
Problem Set 2.5. Page 72 1. General solution. Problems 1-10 are solved as explained in the text by determining the roots of the
auxiliary equation (3). For the ODE x 2 y 6y 0 you obtain m m 1 6 m2 m 6 m 3 m 2 0 and from this the general solution y c 1 x 3 c 2 x 2 valid for all x 0.
7 x y 16 y 0 has the auxiliary equation m m 1 7 m 16 m 2 8 m 16 m 4 2 0. According to (7), a general solution for positive x is y c 1 c 2 ln x x 4 . x y 2 y 0 has the auxiliary equation 2 m 2 m 1 i m 1 i 0.
A basis of complex solutions is x 1i , x 1 i . From it you obtain real solutions by a trick that introduces exponential functions, namely, by first writing (Eulers formula!)
Chap. 2
15
x 1 i x 1 x i xe i ln x x cos ln x i sin ln x and then taking linear combinations to obtain a real basis of solutions x cos ln x , and x sin ln x for positive x or writing ln | x | as in the solution on p. A8 if you want to admit all x
0.
13. Initial value problem. Initial values cannot be prescribed at x 0 because the coefficients of an
Euler-Cauchy equation in standard form y a/x y b/x 2 y 0 are infinite at x 0. Choosing x 1 makes the problem simpler than other values would do because ln 1 0. The given ODE x 2 y 2 x y 100.25 y 0 has the auxiliary equation m 2 m 100.25 m 0.5 10 i m 0.5 10 i 0. Solutions are 0.5 10i. A general solution for positive x, involving the corresponding real solutions, is y x 0.5 A cos 10 ln x B sin 10 ln x . You need the derivative (chain rule!) y 0.5x 1.5 A cos 10 ln x B sin 10 ln x 10 x . Hence y 1 A 2 since the cosine gives 1 and the sine gives 0. Similarly, with A 2 inserted, y 1 1 0 0 10 B 11, hence B 1. This yields the answer given on p. A8. x
0.5
A sin 10 ln x B cos 10 ln x
Sec. 2.6
The Wronskian W y 1 , y 2 of two solutions y 1 and y 2 of an ODE is defined by (6), Sec. 2.6. It is conveniently written as a second-order determinant (but this is not essential for using it; you need not be familiar with determinants here). It serves for checking linear independence or dependence, which is important in obtaining bases of solutions. The latter are needed, for instance, in connection with initial value problems, where a single solution will generally not be sufficient for satisfying two given initial conditions. Of course, two functions are linearly independent if and only if their quotient is not constant. To check this, you would not need Wronskians, but we discuss them here in the simple case of second-order ODEs as a preparation for Chapter 3 on higher order ODEs, where Wronskians will show their power and will be very useful.
Problem Set 2.6. Page 77 1. Wronskian. The solutions form a basis for an ODE with constant coefficients, which is obtained from
the characteristic equation is 0.5 0.5 2
0.5 x
0.25 0, namely, y e
0.5 x 0.5 x 0.5 x
W e 0.5 x , e
0.5 e
e 0.5 x 0.5 e
0.5 x
0.5 e 0.5 x
0.5 0.5 1. If a lengthy calculation gives a simple result, you may suspect that there may be a simpler way. In the present case, you can verify that, by the quotient rule, W y2 y1 y 12 y2 y1 y2 1 y2 y1 y 12 y 2 y 1 y2 y1. (A)
16
Part A
0.5 x
e
and e
e x . Multiplication by y 12 e x gives 1.
e2 k x 1 k x e 2k x .
kx
13. Damped oscillations. You see from the given solutions that the roots of the characteristic equation are
complex conjugates, namely, 1 1 0.8 i and 2 1 0.8 i. Hence, using the familiar formula a b a b a 2 b 2 , you obtain the characteristic equation 1 2 1 0.8 i 1 0.8 i 1
2
0.8 2
2 2 1.64 0. The Wronskian is obtained from (6) , or you can calculate it more simply from the general formula in Prob. 3 (see the solution above), namely, y 1 e x cos 0.8 x, y 2 e x sin 0.8 x, and y 2 /y 1 tan 0.8 x, y 2 /y 1 1/ cos 2 0.8 x 0.8 so that multiplication by y 12 (see the formula) gives W 0.8 e 2 x .
17. Double root. From the form of the given functions you see that they are solutions of a linear ODE with
constant coefficients, and the x in the second solution shows you that it is the case of a double root of the characteristic equation, the root being 3.8 . Hence the characteristic equation is 3.8 2 2 7.6 14.44 2 0. Hence the ODE is y 7.6 y 14.44 2 y 0. For the Wronskian W you need y 1 e 3.8 x , y 2 xe 3.8 x and the derivatives y 1 3.8 e 3.8 x , y 2 1 x 3.8 e 3.8 x . Hence the Wronskian is
Chap. 2 W y1 y2 e e
3.8 x 7.6 x 7.6 x
17
xe
3.8 x
3.8 e
3.8 x
3.8 x x 3.8
e
7.6 x
The simplification is due to the fact that the quotient of the two solutions is x and its derivative is 1. Can you see that this is typical of all ODEs with constant coefficients that have a double root of the characteristic equation? Can you see that also the cases of two real roots and of complex roots must lead to substantial simplifications? In the last formula you used that e a 2 e 2 a , where a 3.8 x.
Sec. 2.7
Nonhomogeneous ODEs
This section and problem set concern nonhomogeneous linear ODEs y p x y q x y r x (1) where r x is not identically zero r x 0 . The new task is the determination of a particular solution y of (1). For this you can use the method of undetermined coefficients. Because of the Modification Rule it is necessary to first determine a general solution of the homogeneous ODE since the form of y p differs depending on whether or not the function (or a term of it) on the right side of the ODE is a solution of the homogeneous ODE. If you forget to take this into account, you will not be able to determine the coefficients; in this sense the method will warn you that you made a mistake.
Problem Set 2.7. Page 83 1. General solution. The characteristic equation of the homogeneous ODE is
2 3 2 1 2 0. You see that it has the solutions 1 and 2. Hence a general solution of the homogeneous ODE y 3 y 2 y 0 is y h c 1 e x c 2 e 2x . The function 30 e 2x on the right is not a solution of the homogeneous ODE. Hence you do not apply the Modification Rule. Table 2.1 requires that you start from y p C e 2x . Two differentiations give y p 2 C e 2x and y p 4 C e 2x . Substitution of y and its derivatives into the given ODE yields 4 C e 2x 3 2 C e 2x 2 C e 2x 12 C e 2x 30 e 2x . Hence 12 C 30, C 30/12 2.5. This gives the answer (a general solution of the given ODE; see page A8) y c 1 e x c 2 e 2x 2.5e 2x .
11. Modification rule. The homogeneous ODE y 1.44 y 0 has the characteristic equation
2 1.44 0. Its roots are 1.2 i and 1.2 i. Hence a real general solution of the homogeneous ODE is y h c 1 cos 1.2 x c 2 sin 1.2x. You now see that the right side of the nonhomogeneous ODE 24 cos 1.2 x is a solution of the homogeneous ODE. Hence you need the Modification Rule for a simple root. That is, you multiply your choice function K cos 1.2 x M sin 1.2 x in Table 2.1 by x, obtaining
18
Ordinary Differential Equations (ODEs) y p x K cos 1.2 x M sin 1.2 x . By differentiation, y p K cos 1.2 x M sin 1.2 x x 1.2 K sin 1.2 x 1.2 M cos 1.2 x
Part A
y p 2 1.2 K sin 1.2 x 1.2 M cos 1.2 x x 1.44 K cos 1.2 x 1.44 M sin 1.2 x . You now substitute y p and y p into y 1.44 y 24 cos 1.2 x. Then 1.44 y p and x in y p cancel and you are left with 2 1.2 K sin 1.2 x 1.2 M cos 1.2 x 24 cos 1.2 x. Equating the cosine terms gives 2.4 M 24, hence M 10. There is no sine term on the right. Hence K must be zero. You thus obtain the answer given on p. A8 y c 1 cos 1.2 x c 2 sin 1.2 x 10 x sin 1.2 x.
y 12 y 0 has the characteristic equation 12 0. The usual formula for the solutions of a quadratic equation gives
1 1 49 1 7 1 12 , thus 3 and 4. 4 2 4 2 2 2 Hence a general solution of the homogeneous ODE is yh c1e 3 x c2 e4 x. You now see that the terms on the right side of the given ODE are not solutions of the homogeneous ODE. Hence you do not apply the Modification Rule, but simply start from the choice function yp K3 x3 K2 x2 K1 x K0. Its derivatives are yp 3 K3 x2 2 K2 x K1 yp 6 K3 x 2 K2. Substitution into the given ODE yields 6 K3 x 2 K2 3 K 3 x 2 2 K 2 x K 1 12 K 3 x 3 K 2 x 2 K 1 x K 0 144 x 3 12.5. Now compare powers of x on both sides. The x 3 -terms give 12 K 3 144, so that K 3 12. Furthermore, the x 2 -terms give 3 K 3 12 K 2 0 since there is no x 2 -term on the right. That is, 3 12 12 K 2 0 and K 2 3. The x-terms give 6 K 3 2 K 2 12 K 1 0 since there is no x-term on the right. Thus, 6 12 2 3 12 K 1 and K 1 6.5. Finally, from the constant terms on both sides you obtain 2 K 2 K 1 12 K 0 12.5, thus 6 6.5 12 K 0 12.5, K 0 0. You have obtained a general solution of the given ODE, y y h y p c 1 e 3 x c 2 e 4 x 12 x 3 3 x 2 6.5 x 0. Only now can you consider the initial conditions. (Why not earlier?) The first condition is y 0 5 and gives y 0 c 1 c 2 5, hence c2 5 c1. For the second initial condition y 0 0.5 you need the derivative y 3 c 1 e 3 x 4 c 2 e 4x 36 x 2 6 x 6.5 and its value y 0 3 c 1 4 c 2 6.5 3 c1 4 5 c1 6.5 7 c 1 13.5. This must equal 0.5. Hence c 1 2 and thus c 2 5 c 1 3. With the values of the constants thus
Chap. 2
19
determined you obtain the answer of the initial value problem given on p. A9, y 2 e 3x 3 e 4x 12 x 3 3 x 2 6.5 x.
Sec. 2.8
In the solution a, b of (4) in the formula before (5) (the formula without number) the denominator is the coefficient determinant; furthermore, for a the numerator is the determinant F0 0 k c m
2
F0 k
m 2 .
Problem Set 2.8. Page 90 1. Steady-state solution. Because of the function r 130 cos 3 t you have to choose
y p K cos 3t M sin 3t. By differentiation, y p 3 K sin 3 t 3 M cos 3 t y p 9 K cos 3 t 9 M sin 3 t. Substitute this into the ODE y 6 y 8 y 130 cos 3t. To get a simple formula, use the abbreviations C cos 3t and S sin 3t. Then 9 K C 9 M S 6 3 K S 3 M C 8 K C M S 130 C. Collect the C-terms and equate their sum to 130. Collect the S-terms and equate their sum to 0 because there is no sine term on the right side of the ODE. You obtain 9 K 18 M 8 K K 18 M 130 9 M 18 K 8 M 18 K M 0. From the second equation, M 18 K. Then from the first equation, K 18 18K 130, K 130/325 0.4. Hence M 18K 7.2. The steady-state solution is (cf. p. A9) y 0.4 cos 3 t 7.2 sin 3 t.
9. Transient solution. The homogeneous ODE y 2 y 0.75 y 0 has the characteristic equation
1 3 0. 2 2 Hence the roots are 1/2 and 3/2. A general solution of the homogeneous ODE is y h c 1 e t/2 c 2 e 3t/2 . To obtain a general solution of the given ODE you need a particular solution y p . According to the method of undetermined coefficients (Sec. 2.7) set y p K cos t M sin t. Differentiate to get y p K sin t M cos t 2 2 0.75 y p K cos t M sin t. Substitute this into the given ODE. Abbreviate C cos t, S sin t. You obtain K C M S 2 K S M C 0.75 K C M S 13S. Collect the C-terms and equate their sum to 0 (why?)
20
Part A
Collect the S-terms and equate their sum to 13: M 2 K 0.75 M 13. Since K 8 M, conclude that this gives 1 65 M 16 M 0.75 M 4 M 64 M 3 M M 13, M 4 4 Hence K 8M 32/5. This confirms the answer on p. A9 that the transient solution is 32 4 y y h y p c 1 e t/2 c 2 e 3 t/2 cos t sin t. 5 5
4 . 5
Chap. 2
21
Sec. 2.9
Problem Set 2.9. Page 97 5. LC-circuit. Modeling of the circuit is the same as for the RLC-circuit. Thus,
L I Q/C E t . By differentiation, L I I/C E t . Here L 0.2, 1/C 20, E t sin t, E t cos t, so that 0.2 I 20 I cos t, thus I 100 I 5 cos t. 2 The characteristic equation 100 0 has the roots 10 i, so that a real solution of the homogeneous ODE is I h c 1 cos 10 t c 2 sin 10 t. Now determine a particular solution I p of the nonhomogeneous ODE by the method of undetermined coefficients in Sec. 2.7, starting from I p K cos t M sin t. Substitute this and the derivatives I p K sin t M cos t I p K cos t M sin t into the nonhomogeneous ODE I 100 I 5 cos t, obtaining K cos t M sin t 100 K cos t M sin t 5 cos t. Equating the cosine terms on both sides, you get K 100 K 5, hence K 5/99. The sine terms give M 100 M 0, hence M 0. You thus have the general solution of the nonhomogeneous ODE 5 I I h I p c 1 cos 10 t c 2 sin 10 t cos t. 99 Now use the initial conditions I 0 0 and I 0 0. You obtain 5 5 0, thus c1 . I 0 c1 99 99 Differentiation gives 5 I t 10 c 1 sin 10 t 10 c 2 cos 10 t sin t. 99 Since sin 0 0, this gives I 0 10 c 2 0, so that c 2 0. You thus obtain the answer (cf. p. A9) 5 It cos t cos 10 t . 99
13. Transient current. You must find a general solution of the nonhomogeneous ODE. Since R 6,
L 0.2, 1/C 40, E 110 sin 10t, E 1100 cos 10 t, this ODE is 0.2 I 6 I 40 I E 1100 cos 10t. Multiply by 5 to get the standard form with I as the first term, I 30 I 200 I 5500 cos 10 t. From the characteristic equation 2 30 200 20 10 0
22
Part A
you see that a general solution of the homogeneous ODE is I h c 1 e 20 t c 2 e 10 t . This will go to zero as t increases, regardless of initial conditions (which are not given in this problem). You also need a particular solution I p of the nonhomogeneous ODE; this will be the steady-state solution. You obtain it by the method of undetermined coefficients, starting from I p K cos 10 t M sin 10 t. By differentiation you have I p 10 K sin 10 t 10 M cos 10 t I p 100 K cos 10 t 100 M sin 10 t. Substitute all this into the nonhomogeneous ODE in standard form, abbreviating C cos 10 t, S sin 10 t. You obtain 100 KC 100 MS 30 10 KS 10 MC 200 KC MS 5500 C. Equate the sum of the S-terms to zero, 100 M 300 K 200 M 0, 100 M 300 K, M 3 K. Equate the sum of the C-terms to 5500 (the right side), 100 K 300 M 200 K 5500, 100 K 300 3 K 1000 K 5500. You see that K 5.5, M 3K 16.5, and have the solution (cf. p. A9) I I h I p c 1 e 20 t c 2 e 10 t 5.5 cos 10 t 16.5 sin 10 t.
Sec. 2.10
This method is general, in contrast to the method of undetermined coefficients, which is restricted to constant-coefficient ODEs with special right sides. Nevertheless, the method of undetermined coefficients is more important to the engineer and physicist because it can take care of cases of the usual periodic driving forces (electromotive forces). The present method reduces the problem of solving a linear ODE to that of the evaluation of two integrals. Hence it is an extension of the solution method for linear first-order ODEs in Sec. 1.5.
Problem Set 2.10. Page 101 3. General solution. The solution formula (2) was obtained for the standard form of an ODE. In the
present problem, divide the given nonhomogeneous Euler-Cauchy equation x 2 y 2 x y 2 y x 3 cos x by x 2 in order to see what r x in (2) is. You obtain 2 2 y x y x 2 y x cos x. The auxiliary equation for the homogeneous ODE is needed to determine y 1 and y 2 . It is m m 1 2 m 2 m 2 3 m 2 m 2 m 1 0. The roots are 1 and 2. Hence you have the basis of solutions y 1 x, y 2 x 2 . You also need the corresponding Wronskian W x x2 1 2x 2 x2 x2 x2.
Now use (2) (and integrate by parts in the first integral), obtaining
Chap. 2
23
x x cos x dx x2
x x cos x dx x 2
cos x dx
x cos x x sin x x 2 sin x x cos x. Using this particular solution, you obtain the general solution given on p. A9 y c 1 x c 2 x 2 x cos x. You would obtain this solution directly if you added constants of integration when you evaluated the integrals.
5. General solution. The solution on p. A9 shows that undetermined coefficients would not help. It also
shows that the basis of solutions y 1 cos x, y 2 sin x has been used. The corresponding Wronskian is simply W cos x sin x sin x cos x tan x dx cos 2 x sin 2 x 1.
sin x cos x
cos x
c1
tan x dx sin x
sin x dx
sin x
cos x c 2 .
You see that cos x sin x appears twice, with opposite sign; hence these terms cancel and you are left with the general solution y c 1 cos x c 2 sin x cos x sin x ln | sec x tan x | sin x cos x. (We denoted one of the arbitrary constants by c 1 to have c 1 in the final solution.)
11. Choice of method. y 4 y cosh 2 x can be solved more easily by undetermined coefficients because
the integrals occurring in the variation of parameters are somewhat complicated. Derive that y h c 1 cos 2 x c 2 sin 2x. For y p start from y p K cosh 2 x M sinh 2 x and use y p 4K cosh 2 x 4M sinh 2 x. Substitute this into the ODE to get 4K cosh 2 x 4M sinh 2 x 4 K cosh 2 x M sinh 2 x 8K cosh 2x 8M sinh 2 x cosh 2 x. Compare both sides to get K 1/8 and M 0. You thus have the general solution 1 y c 1 cos 2 x c 2 sin 2 x cosh 2 x 8 1 (not 8 x cosh 2 x; misprint in the first printing).
Part A
1 ux 2 u x
3/2
1/2
3/2
3 ux 4
5/2
Substitute this into the homogeneous ODE to get 3 1 1 u x 1/2 x 2 ux 1/2 0. u x 3/2 u x 1/2 u x 1/2 u x 1/2 4 2 4 1 The second term cancels the fourth term. The third term plus the fifth term cancel - 4 u x 1/2 . Divide the remaining ODE by x 3/2 , obtaining u u 0 and the general solution u c 1 cos x c 2 sin x, so that y h ux 1/2 c 1 cos x c 2 sin x / x . Now obtain a particular solution of the nonhomogeneous equation. For this you need y 1 x 1/2 cos x, y 2 x 1/2 sin x. You also need r x 1/2 sin x obtained by dividing the given ODE by x 2 , to get the standard form. Calculate the Wronskian x W 1 x 2
3/2 1/2
cos x x
1/2
x sin x
1/2
1/2
sin x
1/2
cos x
1 x 2
3/2
sin x x
cos x
1 x.
cos x sin x
x x
1/2
1/2
x x
1/2
1/2
cos x sin x
x
1/2
cos 2 x
1 1/2 x cos x 2 1 because the terms 2 x 1/2 cos 2 x sin x cancel each other. (Drop the second term in y p in the answer on p. A9 erroneously given in the first printing.)