Math 308 Final Exam Practice Problems

Similar documents
Math 331 Homework Assignment Chapter 7 Page 1 of 9

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

+ i. cos(t) + 2 sin(t) + c 2.

MATH 3321 Sample Questions for Exam 3. 3y y, C = Perform the indicated operations, if possible: (a) AC (b) AB (c) B + AC (d) CBA

Math 3301 Homework Set Points ( ) ( ) I ll leave it to you to verify that the eigenvalues and eigenvectors for this matrix are, ( ) ( ) ( ) ( )

Math 216 Second Midterm 28 March, 2013

Elementary Differential Equations, Section 2 Prof. Loftin: Practice Test Problems for Test Find the radius of convergence of the power series

Def. (a, b) is a critical point of the autonomous system. 1 Proper node (stable or unstable) 2 Improper node (stable or unstable)

Find the general solution of the system y = Ay, where

= 2e t e 2t + ( e 2t )e 3t = 2e t e t = e t. Math 20D Final Review

Lecture 38. Almost Linear Systems

FINAL EXAM MAY 20, 2004

MATH 24 EXAM 3 SOLUTIONS

Department of Mathematics IIT Guwahati

20D - Homework Assignment 5

Review for Exam 2. Review for Exam 2.

MATH 251 Examination II April 7, 2014 FORM A. Name: Student Number: Section:

APPM 2360 Section Exam 3 Wednesday November 19, 7:00pm 8:30pm, 2014

4 Second-Order Systems

3. Identify and find the general solution of each of the following first order differential equations.

Final 09/14/2017. Notes and electronic aids are not allowed. You must be seated in your assigned row for your exam to be valid.

MATH 251 Examination II April 4, 2016 FORM A. Name: Student Number: Section:

Nonconstant Coefficients

MATH 2250 Final Exam Solutions

3. Identify and find the general solution of each of the following first order differential equations.

Differential equations

Differential Equations 2280 Sample Midterm Exam 3 with Solutions Exam Date: 24 April 2015 at 12:50pm

Applied Differential Equation. November 30, 2012

Math 232, Final Test, 20 March 2007

Lecture Notes for Math 251: ODE and PDE. Lecture 27: 7.8 Repeated Eigenvalues

Even-Numbered Homework Solutions

MA 527 first midterm review problems Hopefully final version as of October 2nd

Math 312 Lecture Notes Linear Two-dimensional Systems of Differential Equations

Math 216 Final Exam 14 December, 2012

You may use a calculator, but you must show all your work in order to receive credit.

Ma 227 Review for Systems of DEs

Math 215/255 Final Exam (Dec 2005)

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

Math 250B Final Exam Review Session Spring 2015 SOLUTIONS

Chapter 6 Nonlinear Systems and Phenomena. Friday, November 2, 12

Practice Problems for the Final Exam

Solutions to Math 53 Math 53 Practice Final

Problem set 7 Math 207A, Fall 2011 Solutions

Exam Basics. midterm. 1 There will be 9 questions. 2 The first 3 are on pre-midterm material. 3 The next 1 is a mix of old and new material.

Lecture Notes for Math 524

MATH 251 Final Examination December 16, 2015 FORM A. Name: Student Number: Section:

Section 9.3 Phase Plane Portraits (for Planar Systems)

Problem Score Possible Points Total 150

9 - Matrix Methods for Linear Systems

4. Linear Systems. 4A. Review of Matrices A-1. Verify that =

MATH 54 - HINTS TO HOMEWORK 11. Here are a couple of hints to Homework 11! Enjoy! :)

Calculus and Differential Equations II

MATH 23 Exam 2 Review Solutions

MathQuest: Differential Equations

Section 5.4 (Systems of Linear Differential Equation); 9.5 Eigenvalues and Eigenvectors, cont d

Calculus C (ordinary differential equations)

Section 1.4: Second-Order and Higher-Order Equations. Consider a second-order, linear, homogeneous equation with constant coefficients

Systems of differential equations Handout

Solutions to Dynamical Systems 2010 exam. Each question is worth 25 marks.

20D - Homework Assignment 4

ANSWERS Final Exam Math 250b, Section 2 (Professor J. M. Cushing), 15 May 2008 PART 1

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

APPM 2360: Final Exam 10:30am 1:00pm, May 6, 2015.

4. Linear Systems. 4A. Review of Matrices ) , show that AB BA (= A A A).

Math 302 Outcome Statements Winter 2013

MATH 251 Examination II April 3, 2017 FORM A. Name: Student Number: Section:

June 2011 PURDUE UNIVERSITY Study Guide for the Credit Exam in (MA 262) Linear Algebra and Differential Equations

Differential Equations Practice: 2nd Order Linear: Nonhomogeneous Equations: Undetermined Coefficients Page 1

Solution: In standard form (i.e. y + P (t)y = Q(t)) we have y t y = cos(t)

Math 310 Introduction to Ordinary Differential Equations Final Examination August 9, Instructor: John Stockie

Part II Problems and Solutions

Math 216 Final Exam 24 April, 2017

Math 1B Final Exam, Solution. Prof. Mina Aganagic Lecture 2, Spring (6 points) Use substitution and integration by parts to find:

Examples include: (a) the Lorenz system for climate and weather modeling (b) the Hodgkin-Huxley system for neuron modeling

Autonomous Systems and Stability

Problem Score Possible Points Total 150

ODE, part 2. Dynamical systems, differential equations

Old Math 330 Exams. David M. McClendon. Department of Mathematics Ferris State University

APPM 2360: Midterm exam 3 April 19, 2017

Math 20D Final Exam 8 December has eigenvalues 3, 3, 0 and find the eigenvectors associated with 3. ( 2) det

I have read and understood the instructions regarding academic dishonesty:

Math 322. Spring 2015 Review Problems for Midterm 2

MATH 251 Final Examination December 19, 2012 FORM A. Name: Student Number: Section:

Math 273 (51) - Final

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Math 21b Final Exam Thursday, May 15, 2003 Solutions

APPM 2360: Midterm 3 July 12, 2013.

Solutions to Final Exam Sample Problems, Math 246, Spring 2011

8.1 Bifurcations of Equilibria

µ = e R p(t)dt where C is an arbitrary constant. In the presence of an initial value condition

9 11 Solve the initial-value problem Evaluate the integral. 1. y sin 3 x cos 2 x dx. calculation. 1 + i i23

MIDTERM REVIEW AND SAMPLE EXAM. Contents

Di erential Equations

MATH 251 Final Examination August 10, 2011 FORM A. Name: Student Number: Section:

Math 215/255: Elementary Differential Equations I Harish N Dixit, Department of Mathematics, UBC

Solutions of the Sample Problems for the Third In-Class Exam Math 246, Fall 2017, Professor David Levermore

Lecture 15: Ordinary Differential Equations: Second Order

Review Problems for Exam 2

Homogeneous Constant Matrix Systems, Part II

Transcription:

Math 308 Final Exam Practice Problems This review should not be used as your sole source for preparation for the exam You should also re-work all examples given in lecture and all suggested homework problems Consider the differential equation (3 x )y 3xy y = 0 (a) Seek power series solutions of the given differential equation about the point x 0 = 0 Find the recurrence relation (b) Find the first four terms in each of two solutions y and y (c) By evaluating the Wronskian W (y, y )(x 0 ), show that y and y form a fundamental set of solutions (d) If possible, find the general term in each solution Solve the linear system x + x x 3 = 5 x + x x 3 = 4 x x + 3x 3 = 8 by forming the augmented matrix and performing Gaussian elimination 3 Solve the linear system x + x 3x 3 = 3x x x 3 = x + 3x 5x 3 = 3 by forming the augmented matrix and performing Gaussian elimination 4 Solve the linear system x + x + x 3 = 3x x x 3 = 4 x + 5x + 5x 3 = by forming the augmented matrix and performing Gaussian elimination 5 Find the inverse of each matrix, if possible 3 (a) A = 6 4 (b) B = 4 8

6 Find the inverse of each matrix, if possible (a) A = 3 (b) B = 4 7 Solve the initial value problem x = ( 5 3 ) x, x(0) = Describe the behavior of the solution as t 8 Solve the initial value problem 5 x = x, x(0) = 3 Describe the behavior of the solution as t 9 Consider the system where α is a parameter α x = x, (a) Determine the eigenvalues in terms of α (b) Find the critical value(s) of α where the qualitative nature of the phase portrait for the system changes (c) Draw a phase portrait for a value of α slightly below, and for another value slightly above, each critical value 0 Solve the initial value problem 4 x = x, x(0) = 4 7 Describe the behavior of the solution as t Consider the initial value problem x = x, x(0) = 3 3 Find the matrix exponential function e At and use it to solve the initial value problem Describe the behavior of the solution as t

Consider the initial value problem 5 x = x, x(0) = 3 Find the matrix exponential function e At and use it to solve the initial value problem Describe the behavior of the solution as t 3 Find the general solution of the system 4 x = 3 x 4 Find the general solution of the system 0 x = 0 x 0 5 Use the Method of Undetermined Coefficients to solve the nonhomogeneous linear system x = x + e t 3 6 Use the Method of Variation of Parameters to solve the nonhomogeneous linear system 0 t x = x + 0 3

Solutions Solutions may contain errors or typos If you find an error or typo, please notify me at glahodny@mathtamuedu Consider the differential equation (3 x )y 3xy y = 0 (a) Seek power series solutions of the given differential equation about the point x 0 = 0 Find the recurrence relation Consider a solution in the form of a power series about x 0 = 0: y = a n x n n=0 and assume that the series converges in some interval x < ρ Differentiating term by term, we obtain y = y = na n x n, n= n(n )a n x n n= Substituting these series into the differential equation gives 3 3 (3 x ) n(n )a n x n 3x na n x n n= n(n )a n x n n= (n + )(n + )a n+ x n n=0 n= n= n(n )a n x n 3 na n x n n=0 Combining these four series, we obtain n= n(n )a n x n 3 na n x n n=0 [ ] 3(n + )(n + )an+ (n + ) a n x n = 0 n=0 a n x n = 0 n=0 a n x n = 0 n=0 a n x n = 0 For this equation to be satisfied for all x, the coefficient of each power of x must be zero Therefore, we obtain the recurrence relation 3(n + )a n+ (n + )a n = 0, n = 0,,, 3, n=0 4

(b) Find the first four terms in each of two solutions y and y The recurrence relation relates each coefficient to the second one before it Thus, the even-numbered coefficients (a 0, a, a 4, ) and the odd-numbered ones (a, a 3, a 5, ) are determined separately For the even-numbered coefficients, we have a = a 0 3, a 4 = 3a 3 4 = 3 a 0 3 4, a 6 = 5a 4 3 6 = 3 5 a 0 3 3 4 6, Similarly, for the odd-numbered coefficients, we have a 3 = a 3 3, a 5 = 4a 3 3 5 = 4 a 3 3 5, a 7 = 6a 5 3 7 = 4 6 a 3 3 3 5 7, Substituting these coefficients into the power series, we have Therefore, y = a 0 + a x + a 0! x + a 3! x3 + a 0 4! x4 + a 5! x5 + a 0 6! x6 + a = a 0 [ + 3 x + 3 3 4 x4 + 3 5 3 3 4 6 x6 + +a [ x + 3 3 x3 + 4 3 3 5 x5 + 4 6 3 3 3 5 7 x7 + y (x) = + x 6 + x4 4 + 5 43 x6 + y (x) = x + 9 x3 + 8 35 x5 + 6 945 x7 + 7! x7 + ] (c) By evaluating the Wronskian W (y, y )(x 0 ), show that y and y form a fundamental set of solutions ] It follows from the expansions in part (b) that y (0) = and y (0) = 0 differentiating the series for y (x) and y (x), we find that By y (x) = 3 x + 6 x + 5 7 x5 + y (x) = + 3 x + 8 7 x4 + Thus, at x = 0, we have y (0) = 0 and y (0) = Consequently, the Wronskian of y and y at x 0 = 0 is W (y, y )(0) = 0 0 = 0 So y and y form a fundamental set of solutions 5

(d) If possible, find the general term in each solution The results of part (b) suggest that a 0 = and, in general, if n = k, then a n = a k = a 0 3 5 (k ), k =,, 3, 3 k 4 (k) Similarly, a = and if n = k +, then Therefore, Solve the linear system a n = a k+ = y (x) = + y (x) = x + a 4 (k), k =,, 3, 3 k 3 5 (k + ) n= n= 3 5 (n ) 3 n 4 (n) xn, 4 (n) 3 n 3 5 (n + ) xn+ x + x x 3 = 5 x + x x 3 = 4 x x + 3x 3 = 8 by forming the augmented matrix and performing Gaussian elimination The augmented matrix for this linear system is 5 4 3 8 Using Gaussian elimination, we have 5 4 3 8 Thus, the solution is (,, ) 4 5 0 4 4 0 3 0 4 0 0 0 3 0 0 0 0 0 0 0 0 6 R R R 3 + R (R R ) R + R R 3 R (R R 3 )

3 Solve the linear system x + x 3x 3 = 3x x x 3 = x + 3x 5x 3 = 3 by forming the augmented matrix and performing Gaussian elimination The augmented matrix for this linear system is 3 3 3 5 3 Using Gaussian elimination, we have 3 3 3 5 3 3 0 7 7 7 0 0 0 0 0 0 0 0 0 0 0 0 R 3R R 3 R R + R 3 7 R (R 3 + R ) Therefore, x 3 = α is a free variable Using the second equation, we have Using the first equation, we have x = x 3 = α x = x 3 = α Thus, the solution set is {(α, α, α) α R} 7

4 Solve the linear system x + x + x 3 = 3x x x 3 = 4 x + 5x + 5x 3 = by forming the augmented matrix and performing Gaussian elimination The augmented matrix for this linear system is 3 4 5 5 Using Gaussian elimination, we have 3 4 5 5 0 4 4 0 4 4 0 4 4 0 0 0 Since 0, the system is inconsistent There is no solution R 3R R 3 R (R 3 + R ) 5 Find the inverse of each matrix, if possible 3 (a) A = 6 The determinant of A is det(a) = 6 ( 6) = 0 Therefore, A is nonsingular with inverse A = ( = 6 6 3 (b) B = 4 4 8 4 ) The determinant of B is det(b) = 6 6 = 0 Therefore, B is singular and B does not exist 8

6 Find the inverse of each matrix, if possible (a) A = The determinant of A is = = 9 0 Therefore, A is nonsingular and A can be found using Gaussian elimination 0 0 0 0 0 0 0 3 3 0 R R R 0 0 0 0 3 0 3 R 0 0 ( 0 0 R ) 3 3 3 0 0 0 R 3 3 3 3 0 0 0 3 3 0 0 R + R 3 3 3 0 0 R 0 R 3 3 3 0 0 0 3 3 0 0 ( R 3 3 3 ) 0 0 0 3 3 Therefore, we have obtained 3 (b) B = 4 A = 0 3 3 3 3 3 3 0 3 The determinant of B is 3 4 = 3 4 Therefore, B is singular and B does not exist 4 = 0 9

7 Solve the initial value problem x = ( 5 3 ) x, x(0) = Describe the behavior of the solution as t To find the eigenvalues of the coefficient matrix, let 5 λ 3 λ = λ 6λ + 8 = (λ )(λ 4) = 0 The eigenvalues are λ = and λ = 4 If λ =, then 3 v = 0 3 It follows that 3v = v and so v =, 3 T If λ = 4, then v = 0 3 3 It follows that v = v and so v =, T The general solution is v v x(t) = c e t + c 3 e 4t Applying the initial condition, we obtain c + c x(0) = = 3c + c It follows that c = 3/ and c = 7/ Therefore, the solution of the initial value problem is x(t) = 3 e t + 7 e 4t 3 As t, the solution trajectory diverges from the origin along the line x = x 0

8 Solve the initial value problem 5 x = x, x(0) = 3 Describe the behavior of the solution as t To find the eigenvalues of the coefficient matrix, let λ 5 3 λ = λ + λ + = 0 The roots of this quadratic are λ = ( ± 4 8) = ± i The eigenvalues are λ = + i and λ = i If λ = + i, then i 5 v = 0 i It follows that v = ( + i)v and so v = + i, T Splitting the eigenvector into its real and imaginary parts, we obtain v = a + ib = + i 0 Therefore, two real-valued linearly independent solutions are u (t) = e t cos t e t sin t, 0 u (t) = e t sin t + e t cos t 0 The general solution is cos t sin t x(t) = c e t cos t Applying the initial condition, we obtain c + c x(0) = = It follows that c = and c = c v sin t + cos t + c e t sin t Therefore, the solution of the initial value problem is cos t 3 sin t x(t) = e t cos t sin t As t, the solution trajectory spirals towards the origin

9 Consider the system where α is a parameter α x = x, (a) Determine the eigenvalues in terms of α To find the eigenvalues of the coefficient matrix, let λ α λ = λ + λ + α + = 0 The eigenvalues are λ = ( ± 4 4(α + )) = ( ± α) = ± α (b) Find the critical value(s) of α where the qualitative nature of the phase portrait for the system changes The eigenvalues are complex conjugates if α > 0 and are real otherwise Thus, α = 0 is a critical value, where the eigenvalues change from real to complex, or vice versa For < α < 0, both eigenvalues are real and negative, so all trajectories approach the origin which is an asymptotically stable node For α <, both eigenvalues are real (one positive and one negative), so the trajectories diverge from the origin which is a saddle point (c) Draw a phase portrait for a value of α slightly below, and for another value slightly above, each critical value The phase portraits illustrating the behavior of solution trajectories for different values of α are shown below α = α = 05 α = 05 5 5 5 05 05 05 x 0 x 0 x 0-05 -05-05 - - - -5-5 -5 - - - 0 x - - - 0 x - - - 0 x (Note: On the exam, you will not be required to sketch a direction field or phase portrait)

0 Solve the initial value problem 4 x = x, x(0) = 4 7 Describe the behavior of the solution as t 3 To find the eigenvalues of the coefficient matrix, let λ 4 4 7 λ = λ + 6λ + 9 = (λ + 3) = 0 There is a double eigenvalue λ = λ = 3 If λ = 3, then 4 4 v = 0 4 4 It follows that v = v and so v =, T To find a generalized eigenvector w of the coefficient matrix A corresponding to the eigenvalue λ = 3, let (A + 3I)w = v That is, 4 4 /4 4 4 0 0 0 It follows that w = w + /4 and so w = /4, 0 T Thus, the general solution is [ ( )] x(t) = c e 3t + c te 3t + e 3t 40 Applying the initial condition, we obtain ( c + x(0) = c ) 4 = It follows that c = and c = 4 c v 3 Therefore, the solution of the initial value problem is 3 + 4t x(t) = e 3t + 4t As t, the solution trajectory approaches the origin 3

Consider the initial value problem x = x, x(0) = 3 Find the matrix exponential function e At and use it to solve the initial value problem Describe the behavior of the solution as t To find the eigenvalues of the coefficient matrix, let λ 3 λ = λ = (λ + )(λ ) = 0 The eigenvalues are λ = and λ = If λ =, then 3 v = 0 3 It follows that 3v = v and so v =, 3 T If λ =, then v = 0 3 3 It follows that v = v and so v =, T Thus, a fundamental matrix is v v e t e X(t) = t 3e t At the initial time t 0 = 0, we have ( X(0) =, X (0) = 3 e t 3 The matrix exponential function is given by e At = X(t)X (0) = e t + 3 et e t et 3 e t + 3 et 3 e t et Therefore, the solution of the initial value problem is x(t) = e At x 0 = 7 e t 3 e t 3 As t, the solution trajectory diverges from the origin along the line x = x ) 4

Consider the initial value problem 5 x = x, x(0) = 3 Find the matrix exponential function e At and use it to solve the initial value problem Describe the behavior of the solution as t To find the eigenvalues of the coefficient matrix, let λ 5 λ = λ + = 0 The eigenvalues are λ = i and λ = i If λ = i, then i 5 v = 0 i It follows that v = ( + i)v and so v = + i, T Splitting the eigenvector into its real and imaginary parts, we obtain v = a + ib = + i 0 Therefore, two real-valued linearly independent solutions are u (t) = cos t sin t, 0 u (t) = sin t + cos t 0 Thus, a fundamental matrix is cos t sin t sin t + cos t X(t) = cos t sin t At the initial time t 0 = 0, we have X(0) =, X (0) = 0 v 0 The matrix exponential function is given by sin t + cos t 5 sin t e At = X(t)X (0) = sin t cos t sin t Therefore, the solution of the initial value problem is 3 cos t + sin t x(t) = e At x 0 = sin t + cos t 5

3 Find the general solution of the system 4 x = 3 x To find the eigenvalues of the coefficient matrix, let λ 4 3 λ = λ 3 + λ + 5λ 6 λ The eigenvalues are λ =, λ =, and λ 3 = 3 If λ =, then 0 4 0 3 0 0 = (λ )(λ + )(3 λ) = 0 0 0 0 4 0 0 0 0 0 It follows that v 3 = α, v = 4α, v = α, and so v =, 4, T If λ =, then 3 4 0 3 4 0 0 0 0 0 0 0 0 0 0 It follows that v 3 = α, v = α, v = α, and so v =,, T If λ 3 = 3, then 4 0 3 0 4 0 0 0 0 0 0 0 0 0 It follows that v 3 = α, v = α, v = α, and so v 3 =,, T Therefore, the general solution is x(t) = c e t 4 + c e t + c 3 e 3t 6

4 Find the general solution of the system 0 x = 0 x 0 To find the eigenvalues of the coefficient matrix, let λ λ λ = (λ + ) ( λ) = 0 The eigenvalues are λ = and λ = λ 3 = If λ =, then 0 0 0 0 0 0 0 0 0 0 0 It follows that v 3 = α, v = α, v = α, and so v =,, T If λ =, then 0 0 0 0 0 0 0 0 0 0 0 0 It follows that v = α, v 3 = β, v = α β Two linearly independent eigenvectors can be found by taking α = 0 and β = 0, respectively That is, v =, 0, T and v 3 =,, 0 T Therefore, the general solution is x(t) = c e t + c e t 0 + c 3 e t 0 (Note: Since the coefficient matrix is a real symmetric matrix, we are able to find linearly independent eigenvectors for the repeated eigenvalue λ = ) 7

5 Use the Method of Undetermined Coefficients to solve the nonhomogeneous linear system x = x + e t 3 To find the eigenvalues of the coefficient matrix, let λ 3 λ = λ = 0 The eigenvalues are λ = and λ = If λ =, then v = 0 3 3 It follows that v = v and so v =, T It λ =, then 3 v = 0 3 It follows that 3v = v and so v =, 3 T Therefore, the homogeneous solution is x h (t) = c e t + c e t 3 Consider a particular solution of the form v v x p (t) = ate t + be t Substituting the particular solution into the differential equation and collecting terms, we obtain Aa = a Ab = (a + b) It follows that a is an eigenvector of A corresponding to the eigenvalue λ = Thus, a = α, α T, where α is a free variable Therefore, the second equation can be rewritten as α (A I)b = α + The augmented matrix for this linear system is ( α α 3 3 α + 0 0 4 α ) 8

The system can be solved if and only if α =, in which case a =, T augmented matrix is 0 0 0 and the It follows that b = β +, β T, where β is a free variable Choosing β = 0, we have a = b = 0 Thus, a particular solution of the nonhomogeneous system is x p (t) = te t + e t 0 Therefore, the general solution of the nonhomogeneous system is x(t) = c e t + c e t + te t + e t 3 0 9

6 Use the Method of Variation of Parameters to solve the nonhomogeneous linear system 0 t x = x + 0 To find the eigenvalues of the coefficient matrix, let λ λ = λ + = 0 The eigenvalues are λ = i and λ = i If λ = i, then i v = 0 i It follows that v = iv and so v = i, T Splitting the eigenvector into its real and imaginary parts, we obtain 0 v = + i 0 Two linearly independent solutions of the homogeneous system are 0 u (t) = cos t sin t, 0 0 u (t) = sin t + cos t 0 Therefore, a fundamental matrix for the homogeneous system is sin t cos t X(t) = cos t sin t v The inverse of this matrix is sin t cos t X (t) = cos t sin t Thus, X (t)g(t) dt = = = sin t cos t t dt cos t sin t t sin t + cos t t dt cos t + sin t t cos t t sin t cos t + sin t t sin t + t cos t sin t cos t 0

Therefore, a particular solution of the nonhomogeneous sytem is x p (t) = X(t) X (t)g(t) dt sin t cos t t = cos t t sin t cos t + sin t cos t sin t t sin t + t cos t sin t cos t t = t The general solution of the nonhomogeneous equation is sin t cos t x(t) = c + c cos t + sin t ( t t )