Second order linear differential equation Variation of constants Interactive tests Robert Mařík April 3, 2009 Look at three or four or twenty my quizzes and then fill in my please! To create your own test from based on this one you will need free AcroT^XeDucation bundle, the T[=X source attached here and to follow instruction on home site. 1. Theory Definice 1 (second order linear differential equation) Let p, q be real numbers, f be functions continuous on the interval I. The equation y" + py' + qy = f(x) (1) is said to be a second order linear differential equation with constant coefficients. Definice 2 (special types of 2nd order LDE) Equation (1) is said to be homogeneous iff{x) = 0 for all x € / and nonhomogeneous otherwise. Definice 3 (associated homogeneous equation) Consider nonhomogeneous equation (1). Homogeneous equation y" + py' + qy = 0. (2) with the left-hand side identical with equation (1) is called a homogeneous equation associated to the nonhomogeneous equation (1). Věta 1 (general solution of nonhomogeneous second order LDE) Lety-i(x) andy2{x) be fundamental system of solutions of the homogeneous LDE (2) andyp(x) be an arbitrary particular solution of the nonhomogeneous LDE (1). Then the function y{x, C,, C2) = Cm{x) + C2y2{x) + yp{x), C, € IR, C2 € IR (3) is a general solution of the nonhomogeneous LDE (1). Věta 2 (solution of the nonhomogeneous LDE with constant coefficients) Consider the second order LDE with constant coefficients y" + py' + qy = f(x). (4) Lety-l(x) and y2(x) be a fundamental system of solutions of the associated homogeneous equation. LetA(x) andB(x) be differentiable functions with derivatives A'(x) and B'(x) which satisfy the system of equations A'(x)y,(x) + B'(x)y2(x) = 0, A'{x)y\{x) + B'{x)y'2{x) = f{x). The function yp{x) defined by the relation yp(x) = A(x)y, (x) + B(x)y2(x) (6) is a particular solution of (4). The function y(x) = C,y,(x) + C2y2(x) + yp(x), C, e IR,C2 € IR, is a general solution of (4). 2. Tests On the following pages you find some tests which guide you throug the process of solving second order LDE via variation of constants. • The functions from the fundamental system are not unique. If you choose the fundamental system as on the lectures, your answer is unique up to the order of the functions. • If your answer on the fundamental system is correct (or if you scratch your answer and asks for help by pressing "?"), follow the hint which tells you which one of these two functions is y-\(x) and which one is y2{x). • In the linear system for A', B' choose y-, and y2 as suggested by the quiz. Then the answers to the questions on A' and B' are unique. • The functions A and B are unique up to an additive constant. • The particular solution is unique up to an additive factor which is a linear combination of the functions from the fundamental system. This test is able to grade the users answer on particular solution correctly. Thus both answers y = 1 and y = 1 + sin(x) + 2 cos(x) are correct for the equation y" + y = 1. • In the field with general solution all functions y = 1 + As\n(x) + Bcos(x), y = 1 + sin(x) + Acos(x) + 3ßsin(x) or y = 1 + As\n(x) - B(cos(x) - sin(x)) are equivalent, as excepted from the fact that there are many posibilities how to write the general solution. Quiz Solve y" + y = 1. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" + y = x. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" - 3y' + 2y = ex. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" + Ay = x. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" + y = x + 2. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" - 2y' + y =------------. \lA-x1 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable). 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-i (x) + B(x)y2{x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" - 2y' + y = —. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-i (x) + B(x)y2{x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" - by' + 6y = e2x. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" + y = --------. sinx 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable). 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" + 2y' - 3y = ex. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" - 4y = e2x. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y = Quiz Solve y" - Ay = xex. 1. Find the characteristic equation for the associated homogeneous equation (use z as a variable) 2. Find the fundamental system (two functions separated by commas). 3. Look for the particular solution in the form yp = A(x)y-l (x) + B(x)y2(x) Write the system for A' and B' ■A'{x)+ -B'{x) = 0, ■A'{x)+ -B'{x) = 4. Solving this system we get A'(x) = B'(x) = 5. Integrating we get A(x) = B(x) = 6. Find particular solution. yP = 7. Find general solution, use constants A and B. y =