Lecture 14: Forced/free motion; variation of parameters

Similar documents
Math 266 Midterm Exam 2

Math 115 HW #10 Solutions

Linear Second Order ODEs

Applications of Second-Order Differential Equations

Math 3313: Differential Equations Second-order ordinary differential equations

MAT187H1F Lec0101 Burbulla

20D - Homework Assignment 4

MATH 24 EXAM 3 SOLUTIONS

Thursday, August 4, 2011

Work sheet / Things to know. Chapter 3

The Harmonic Oscillator

APPLICATIONS OF SECOND-ORDER DIFFERENTIAL EQUATIONS

1. (10 points) Find the general solution to the following second-order differential equation:

Topic 5 Notes Jeremy Orloff. 5 Homogeneous, linear, constant coefficient differential equations

Chapter 3: Second Order Equations

Calculus IV - HW 3. Due 7/ Give the general solution to the following differential equations: y = c 1 e 5t + c 2 e 5t. y = c 1 e 2t + c 2 e 4t.

4.2 Homogeneous Linear Equations

Damped Oscillation Solution

Second order linear equations

Ex. 1. Find the general solution for each of the following differential equations:

Math Assignment 5

Forced Mechanical Vibrations

F = ma, F R + F S = mx.

Damped Harmonic Oscillator

A: Brief Review of Ordinary Differential Equations

EXAM 2 MARCH 17, 2004

Finish up undetermined coefficients (on the midterm, on WW3) Physics applications - mass springs (not on midterm, on WW4)

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

3.4.1 Distinct Real Roots

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

MA 266 Review Topics - Exam # 2 (updated)

Solutions to Math 53 Math 53 Practice Final

/ \ ( )-----/\/\/\/ \ / In Lecture 3 we offered this as an example of a first order LTI system.

dx n a 1(x) dy

DIFFERENTIAL EQUATIONS REVIEW. Here are notes to special make-up discussion 35 on November 21, in case you couldn t make it.

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

AMATH 351 Mar 15, 2013 FINAL REVIEW. Instructor: Jiri Najemnik

Lecture 8: Ordinary Differential Equations

1. Why don t we have to worry about absolute values in the general form for first order differential equations with constant coefficients?

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

APPPHYS 217 Tuesday 6 April 2010

MATH 2250 Final Exam Solutions

Table of contents. d 2 y dx 2, As the equation is linear, these quantities can only be involved in the following manner:

Notes on the Periodically Forced Harmonic Oscillator

Sec 2.2: Infinite Limits / Vertical Asymptotes Sec 2.6: Limits At Infinity / Horizontal Asymptotes

Sec 2.2: Infinite Limits / Vertical Asymptotes Sec 2.6: Limits At Infinity / Horizontal Asymptotes

SECOND ORDER ODE S. 1. A second order differential equation is an equation of the form. F (x, y, y, y ) = 0.

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y:

Math 216 Second Midterm 19 March, 2018

2.4 Models of Oscillation

Lecture 6: Differential Equations Describing Vibrations

5 Linear Dierential Equations

2. Determine whether the following pair of functions are linearly dependent, or linearly independent:

Section Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence.

2t t dt.. So the distance is (t2 +6) 3/2

A First Course in Elementary Differential Equations: Problems and Solutions. Marcel B. Finan Arkansas Tech University c All Rights Reserved

MATH 251 Week 6 Not collected, however you are encouraged to approach all problems to prepare for exam

2.4 Harmonic Oscillator Models

ODE Math 3331 (Summer 2014) June 16, 2014

Math K (24564) - Homework Solutions 02

Short Solutions to Review Material for Test #2 MATH 3200

APPM 2360: Midterm 3 July 12, 2013.

Second Order Linear Equations

C R. Consider from point of view of energy! Consider the RC and LC series circuits shown:

Computer Problems for Methods of Solving Ordinary Differential Equations

Differential Equations Practice: 2nd Order Linear: Nonhomogeneous Equations: Variation of Parameters Page 1

Pure and Practical Resonance in Forced Vibrations

Linear Second-Order Differential Equations LINEAR SECOND-ORDER DIFFERENTIAL EQUATIONS

Response of Second-Order Systems

Damped harmonic oscillator

MIDTERM 1 PRACTICE PROBLEM SOLUTIONS

Math 221 Topics since the second exam

HIGHER-ORDER LINEAR ORDINARY DIFFERENTIAL EQUATIONS II: Nonhomogeneous Equations. David Levermore Department of Mathematics University of Maryland

Physics 2112 Unit 19

Second Order Differential Equations Lecture 6

Solution to Homework 2

Exam II Review: Selected Solutions and Answers

4.9 Anti-derivatives. Definition. An anti-derivative of a function f is a function F such that F (x) = f (x) for all x.

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

Lecture Notes for Math 251: ODE and PDE. Lecture 13: 3.4 Repeated Roots and Reduction Of Order

First Order Linear Ordinary Differential Equations

Forced Oscillation and Resonance

Math 211. Substitute Lecture. November 20, 2000

Worksheet # 2: Higher Order Linear ODEs (SOLUTIONS)

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

Second In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 31 March 2011

17.8 Nonhomogeneous Linear Equations We now consider the problem of solving the nonhomogeneous second-order differential

DIFFERENTIAL EQUATIONS COURSE NOTES, LECTURE 2: TYPES OF DIFFERENTIAL EQUATIONS, SOLVING SEPARABLE ODES.

144 Chapter 3. Second Order Linear Equations

2. Higher-order Linear ODE s

Unforced Mechanical Vibrations

MB4018 Differential equations

Module 25: Outline Resonance & Resonance Driven & LRC Circuits Circuits 2

Fall 2016 Math 2B Suggested Homework Problems Solutions

Name: Problem Possible Actual Score TOTAL 180

Vibrations: Second Order Systems with One Degree of Freedom, Free Response

ODE. Philippe Rukimbira. Department of Mathematics Florida International University PR (FIU) MAP / 92

Inductance, Inductors, RL Circuits & RC Circuits, LC, and RLC Circuits

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation

Math 308 Exam I Practice Problems

Transcription:

Lecture 14: Forced/free motion; variation of parameters Available on Canvas Files tab or http://www.math.ksu.edu/~crytser/teaching Dr. Danny Crytser March 6, 2017

Equation of motion for a spring The equation of motion for a mass m on a spring with spring constant k and damping/friction constant c is

Equation of motion for a spring The equation of motion for a mass m on a spring with spring constant k and damping/friction constant c is mx + cx + kx = 0

Case 0: No damping/friction Assume that we have an ideal spring in which there is no friction.

Case 0: No damping/friction Assume that we have an ideal spring in which there is no friction. This corresponds to a spring equation of mx + kx = 0. This is the same as x + k m x = 0.

Case 0: No damping/friction Assume that we have an ideal spring in which there is no friction. This corresponds to a spring equation of mx + kx = 0. This is the same as x + k x = 0. Since m > 0, there are no real roots to the characteristic polynomial k m λ 2 + k m = 0,

Case 0: No damping/friction Assume that we have an ideal spring in which there is no friction. This corresponds to a spring equation of mx + kx = 0. This is the same as x + k x = 0. Since m k > 0, there are no real roots to the characteristic polynomial m λ 2 + k = 0,and we instead get basic solutions sin( k t) and m m k cos( t). m

Case 0: No damping/friction Assume that we have an ideal spring in which there is no friction. This corresponds to a spring equation of mx + kx = 0. This is the same as x + k x = 0. Since m k > 0, there are no real roots to the characteristic polynomial m λ 2 + k = 0,and we instead get basic solutions sin( k t) and m m cos( t). The general solution is k m k k x(t) = a sin( t) + b cos( m m t)

No damping, ctd. In this ideal spring, the mass continues going up and down forever.

No damping, ctd. In this ideal spring, the mass continues going up and down forever. As an example: if x(t) = 4 cos(2t), one of the solutions to the equation x + 4x = 0. Here the vertical axis is x and the horizontal axis is t.

Damping Now suppose that there is damping c > 0 in the spring equation mx + cx + kx = 0. The characteristic polynomial mr 2 + cr + k = 0 has roots r = c ± c 2 4mk 2m and so the system depends on the discriminant c 2 4mk.

Case 1: two real roots If c 2 4mk > 0, then the roots r = 1 2m ( c ± c 2 4mk) are both real, and as c 2 4mk < c 2, they are both negative as well. Call these roots r 1 and r 2. The general solution will be x(t) = c 1 exp(r 1 t) + c 2 exp(r 2 t) and as r 1, r 2 < 0 it will decay to 0 as t. (The term for this system is overdamped the friction in the spring overwhelms the tendency of the spring to bounce.)

Case 2: repeated real roots If c 2 4mk = 0, then there is one root r = c 2m, repeated, which is real and negative. Call this root r. Then the general solution will be x(t) = c 1 exp(rt) + c 2 t exp(rt) This will also converge to 0 as t. These systems are called critically damped. The graph of such a system looks the same as the graph of an overdamped system.

Case 3: complex roots If c 2 4mk < 0, then there are complex conjugate roots r = 1 ( c ± c 2m 2 4mk). The real part of the root is µ = c and the imaginary part is ν = ± 4mk c 2, so 2m 2m ( ) ( ct ct x(t) = c 1 exp sin(νt) + c 2 exp 2m 2m ) cos(νt) (Don t worry no need to learn this formula, although you should be able to find solutions to these systems.) Since c 0 and sin, cos 1, these solutions will still decay to 0 as t, but they will oscillate (go up and down) as they do. A system of this form is called underdamped

Energy of a mass-spring system For a mass-spring system (recall mx + cx + kx = 0) the energy of the mass-spring combination is ENERGY = POTENTIAL ENERGY+KINETIC ENERGY We can find the potential energy using the formula E p = kx2 2 (work done against spring to stretch it to its current position)

Energy of a mass-spring system For a mass-spring system (recall mx + cx + kx = 0) the energy of the mass-spring combination is ENERGY = POTENTIAL ENERGY+KINETIC ENERGY We can find the potential energy using the formula E p = kx2 2 (work done against spring to stretch it to its current position) and the kinetic energy is E k = mv 2 = m(x ) 2. So the total 2 2 energy of the system is E = kx 2 2 + m(x ) 2 2

Energy, ctd. The system obeys the spring equation mx + cx + kx = 0 and has energy function E = kx 2 2 + m(x ) 2 2

Energy, ctd. The system obeys the spring equation mx + cx + kx = 0 and has energy function E = kx 2 2 + m(x ) 2 2 With this information, we can conclude that the energy of the system is non-increasing d dt E = mkxx + m 2 d dt (x ) 2 = mkx x +mx x ) = x (kx +mx )

Energy, ctd. The system obeys the spring equation mx + cx + kx = 0 and has energy function E = kx 2 2 + m(x ) 2 2 With this information, we can conclude that the energy of the system is non-increasing d dt E = mkxx + m 2 d dt (x ) 2 = mkx x +mx x ) = x (kx +mx ) But mx + cx + kx = 0, so mx + kx = cx.

Energy, ctd. The system obeys the spring equation mx + cx + kx = 0 and has energy function E = kx 2 2 + m(x ) 2 2 With this information, we can conclude that the energy of the system is non-increasing d dt E = mkxx + m 2 d dt (x ) 2 = mkx x +mx x ) = x (kx +mx ) But mx + cx + kx = 0, so mx + kx = cx. So we have E = x ( cx ) = c(x ) 2 0, because c is nonnegative.

Energy, ctd. The system obeys the spring equation mx + cx + kx = 0 and has energy function E = kx 2 2 + m(x ) 2 2 With this information, we can conclude that the energy of the system is non-increasing d dt E = mkxx + m 2 d dt (x ) 2 = mkx x +mx x ) = x (kx +mx ) But mx + cx + kx = 0, so mx + kx = cx. So we have E = x ( cx ) = c(x ) 2 0, because c is nonnegative. So energy is not increasing.

Resonance Consider the equation y + 25y = sin(kt) ( )

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0,

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i,

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i, so the homogeneous solution is y h = c 1 sin(5t) + c 2 cos(5t).

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i, so the homogeneous solution is y h = c 1 sin(5t) + c 2 cos(5t). (i) If k = 5, our guess for y p would take the form at sin(5t) + bt cos(5t),

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i, so the homogeneous solution is y h = c 1 sin(5t) + c 2 cos(5t). (i) If k = 5, our guess for y p would take the form at sin(5t) + bt cos(5t), which we could solve to get y p = t cos(5t), which blows up as t. 10

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i, so the homogeneous solution is y h = c 1 sin(5t) + c 2 cos(5t). (i) If k = 5, our guess for y p would take the form at sin(5t) + bt cos(5t), which we could solve to get y p = t cos(5t), which blows up as t. 10 (ii) If k 5, we guess y p = a sin(kt) + b cos(kt),

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i, so the homogeneous solution is y h = c 1 sin(5t) + c 2 cos(5t). (i) If k = 5, our guess for y p would take the form at sin(5t) + bt cos(5t), which we could solve to get y p = t cos(5t), which blows up as t. 10 (ii) If k 5, we guess y p = a sin(kt) + b cos(kt),which we can plug into ( ) to get y p = 1 sin(kt). 25 k 2

Resonance Consider the equation y + 25y = sin(kt) ( ) The associated homogeneous equation y + 25y = 0 has characteristic equation x 2 + 25 = 0, roots ±5i, so the homogeneous solution is y h = c 1 sin(5t) + c 2 cos(5t). (i) If k = 5, our guess for y p would take the form at sin(5t) + bt cos(5t), which we could solve to get y p = t cos(5t), which blows up as t. 10 (ii) If k 5, we guess y p = a sin(kt) + b cos(kt),which we can plug into ( ) to get y p = 1 sin(kt). (Here its 25 k 2 helpful to note y p = k 2 y p )

Resonance, ctd So if our right hand side (sin(kt)) has k = 5 we get a solution that blows up as t.

Resonance, ctd So if our right hand side (sin(kt)) has k = 5 we get a solution that blows up as t. Furthermore, if k is really close to 5, then 25 k 2 is really close to 0, and y p = 1 sin(kt) will 25 k 2 grow to be huge as well.

Resonance, ctd So if our right hand side (sin(kt)) has k = 5 we get a solution that blows up as t. Furthermore, if k is really close to 5, then 25 k 2 is really close to 0, and y p = 1 sin(kt) will 25 k 2 grow to be huge as well. So the thing that makes the system blow up is when the frequency of the right hand side (sometimes called the forcing term) is equal or close to the frequency of the homogeneous (or free) system.

Resonance, ctd So if our right hand side (sin(kt)) has k = 5 we get a solution that blows up as t. Furthermore, if k is really close to 5, then 25 k 2 is really close to 0, and y p = 1 sin(kt) will 25 k 2 grow to be huge as well. So the thing that makes the system blow up is when the frequency of the right hand side (sometimes called the forcing term) is equal or close to the frequency of the homogeneous (or free) system. This is what is known as resonance: when the frequency of the forcing term matches the frequency of the free system, any solution will be unbounded (go to infinity).

Resonance IRL This happens in the real world: when soldiers march across a bridge, they break stride (don t march at same pace as one another). This is because if the frequency of their walking lined up with the natural vibration of the bridge, it could cause resonance in the bridge to rip the structure apart. (1831, Broughton Suspension Bridge in England)

Resonance IRL, ctd. This mathematical example explains why resonance is something that we have to worry about even though we can never land precisely on the exact same frequency as the resonant frequency of the bridge, the response will still blow up if we get close to it.

Resonance IRL, ctd. This mathematical example explains why resonance is something that we have to worry about even though we can never land precisely on the exact same frequency as the resonant frequency of the bridge, the response will still blow up if we get close to it. (Sweeping some details under the rug here in the real world there is a damping effect that changes the meaning of resonance.

Resonance IRL, ctd. This mathematical example explains why resonance is something that we have to worry about even though we can never land precisely on the exact same frequency as the resonant frequency of the bridge, the response will still blow up if we get close to it. (Sweeping some details under the rug here in the real world there is a damping effect that changes the meaning of resonance. Practical resonance versus pure resonance.)

Free versus forced In free motion of a spring, there is no external force acting upon the mass and we get mx + cx + kx = 0 for the equation of motion.

Free versus forced In free motion of a spring, there is no external force acting upon the mass and we get mx + cx + kx = 0 for the equation of motion. In forced motion, there is an external force F (t) acting upon the spring (say a magnet or another spring) and we get a new equation mx + cx + kx = F (t)

Free versus forced In free motion of a spring, there is no external force acting upon the mass and we get mx + cx + kx = 0 for the equation of motion. In forced motion, there is an external force F (t) acting upon the spring (say a magnet or another spring) and we get a new equation mx + cx + kx = F (t) So the relationship between free and forced is the same as the relationship between homogeneous and inhomogeneous.

Relationship with electrical circuits The spring equation mx + cx + kx = F (t)

Relationship with electrical circuits The spring equation mx + cx + kx = F (t) has an electrical analogue LI + RI + I C = E

Relationship with electrical circuits The spring equation has an electrical analogue mx + cx + kx = F (t) LI + RI + I C = E where I = I (t) is the current, L is the inductance, R is the resistance, C is the capacitance, and E is the impressed (external) voltage.

Relationship with electrical circuits The spring equation has an electrical analogue mx + cx + kx = F (t) LI + RI + I C = E where I = I (t) is the current, L is the inductance, R is the resistance, C is the capacitance, and E is the impressed (external) voltage. (I don t know anything else about circuits)

Variation of parameters Some inhomogeneous equations cannot be solved using method of undetermined parameters (i.e. guessing y p ).

Variation of parameters Some inhomogeneous equations cannot be solved using method of undetermined parameters (i.e. guessing y p ). Example y + 3y + 2y = 1 t

Variation of parameters Some inhomogeneous equations cannot be solved using method of undetermined parameters (i.e. guessing y p ). Example y + 3y + 2y = 1 t This example doesn t have any of the familiar forms from our table for guessing y p. How do we find a solution?

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE:

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE: so for y + 3y + 2y = 1 t, the AHE is y + 3y + 2y = 0, and the basic solutions are y 1 = exp( t) and y 2 = exp( 2t).

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE: so for y + 3y + 2y = 1 t, the AHE is y + 3y + 2y = 0, and the basic solutions are y 1 = exp( t) and y 2 = exp( 2t). (ii) We ll need the Wronskian: W (f, g) = fg gf.

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE: so for y + 3y + 2y = 1 t, the AHE is y + 3y + 2y = 0, and the basic solutions are y 1 = exp( t) and y 2 = exp( 2t). (ii) We ll need the Wronskian: W (f, g) = fg gf. Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system,

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE: so for y + 3y + 2y = 1 t, the AHE is y + 3y + 2y = 0, and the basic solutions are y 1 = exp( t) and y 2 = exp( 2t). (ii) We ll need the Wronskian: W (f, g) = fg gf. Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system,with y 1 (t) and y 2 (t) two independent solutions of the AHE,

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE: so for y + 3y + 2y = 1 t, the AHE is y + 3y + 2y = 0, and the basic solutions are y 1 = exp( t) and y 2 = exp( 2t). (ii) We ll need the Wronskian: W (f, g) = fg gf. Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system,with y 1 (t) and y 2 (t) two independent solutions of the AHE,then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt

Ingredients for variation of parameters There are a few things we need in order to do variation of parameters: (i) We ll need two independent solutions of the AHE: so for y + 3y + 2y = 1 t, the AHE is y + 3y + 2y = 0, and the basic solutions are y 1 = exp( t) and y 2 = exp( 2t). (ii) We ll need the Wronskian: W (f, g) = fg gf. Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system,with y 1 (t) and y 2 (t) two independent solutions of the AHE,then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt The general solution is given by y = y h + y p, where y h = c 1 y 1 + c 2 y 2.

Example of var of params y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt

Example of var of params y p (t) = y 1 Suppose we have the system y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt y 2y + y = et (= g(t)) t 2 + 1 Can t do a guess, let s try variation of param s.

Example of var of params y p (t) = y 1 Suppose we have the system y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt y 2y + y = et (= g(t)) t 2 + 1 Can t do a guess, let s try variation of param s. AHE is y 2y + y = 0, which has char eqn x 2 2x + 1 = 0, roots 1, 1.

Example of var of params y p (t) = y 1 Suppose we have the system y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt y 2y + y = et (= g(t)) t 2 + 1 Can t do a guess, let s try variation of param s. AHE is y 2y + y = 0, which has char eqn x 2 2x + 1 = 0, roots 1, 1. So y 1 = e t, y 2 = te t. What is W (y 1, y 2 )?

Example of var of params y p (t) = y 1 Suppose we have the system y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt y 2y + y = et (= g(t)) t 2 + 1 Can t do a guess, let s try variation of param s. AHE is y 2y + y = 0, which has char eqn x 2 2x + 1 = 0, roots 1, 1. So y 1 = e t, y 2 = te t. What is W (y 1, y 2 )? y 1 y 2 y 2 y 1 = e t (e t + te t ) te t (e t ) = e 2t.

Example, ctd y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 Where y 1 = e t, y 2 = te t, g(t) = et. t 2 +1 y 1 g(t) W (y 1, y 2 ) dt

Example, ctd y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 Where y 1 = e t, y 2 = te t, g(t) = y p = e t et. t 2 +1 te t e t dt + (t 2 tet + 1) e2t y 1 g(t) W (y 1, y 2 ) dt e t e t dt (t 2 + 1) e2t

Example, ctd y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 Where y 1 = e t, y 2 = te t, g(t) = y p = e t = e t et. t 2 +1 te t e t dt + (t 2 tet + 1) e2t t dt + t 2 tet + 1 y 1 g(t) W (y 1, y 2 ) dt e t e t dt (t 2 + 1) e2t 1 t 2 + 1 dt

Example, ctd y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 Where y 1 = e t, y 2 = te t, g(t) = y p = e t = e t et. t 2 +1 te t e t dt + (t 2 tet + 1) e2t t dt + t 2 tet + 1 y 1 g(t) W (y 1, y 2 ) dt e t e t dt (t 2 + 1) e2t 1 t 2 + 1 dt = e t (1/2)ln(t 2 + 1) + te t arctan(t)

Example, ctd y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 Where y 1 = e t, y 2 = te t, g(t) = y p = e t = e t et. t 2 +1 te t e t dt + (t 2 tet + 1) e2t t dt + t 2 tet + 1 y 1 g(t) W (y 1, y 2 ) dt e t e t dt (t 2 + 1) e2t 1 t 2 + 1 dt = e t (1/2)ln(t 2 + 1) + te t arctan(t) So y p = e t (t arctan(t) ln( t 2 + 1)),

Example, ctd y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 Where y 1 = e t, y 2 = te t, g(t) = y p = e t = e t et. t 2 +1 te t e t dt + (t 2 tet + 1) e2t t dt + t 2 tet + 1 y 1 g(t) W (y 1, y 2 ) dt e t e t dt (t 2 + 1) e2t 1 t 2 + 1 dt = e t (1/2)ln(t 2 + 1) + te t arctan(t) So y p = e t (t arctan(t) ln( t 2 + 1)),general y = y p + y h = e t (t arctan(t) ln( t 2 + 1)) + c 1 e t + c 2 e 2t.

Example 2 Let the system be y + y = 1 + tan(t)

Example 2 Let the system be y + y = 1 + tan(t) (restrict to t ( π/2, π/2) to avoid singularities)

Example 2 Let the system be y + y = 1 + tan(t) (restrict to t ( π/2, π/2) to avoid singularities) The AHE here is y + y = 0, which has basic solutions y 1 = cos(t) and y 2 = sin(t).

Example 2 Let the system be y + y = 1 + tan(t) (restrict to t ( π/2, π/2) to avoid singularities) The AHE here is y + y = 0, which has basic solutions y 1 = cos(t) and y 2 = sin(t). You can check (nice!) that W (y 1, y 2 ) = 1.

Example 2 Let the system be y + y = 1 + tan(t) (restrict to t ( π/2, π/2) to avoid singularities) The AHE here is y + y = 0, which has basic solutions y 1 = cos(t) and y 2 = sin(t). You can check (nice!) that W (y 1, y 2 ) = 1.

Ex 2: y + y = 1 + tan t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt

Ex 2: y + y = 1 + tan t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt where y 1 = cos(t), y 2 = sin(t), g(t) = 1 + tan(t), W (y 1, y 2 ) = 1.

Ex 2: y + y = 1 + tan t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt where y 1 = cos(t), y 2 = sin(t), g(t) = 1 + tan(t), W (y 1, y 2 ) = 1. [ ] [ ] y p = cos(t) sin(t) + sin(t) tan(t)dt +sin(t) cos(t) + sin(t)dt

Ex 2: y + y = 1 + tan t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt where y 1 = cos(t), y 2 = sin(t), g(t) = 1 + tan(t), W (y 1, y 2 ) = 1. [ ] [ ] y p = cos(t) sin(t) + sin(t) tan(t)dt +sin(t) cos(t) + sin(t)dt = cos(t)(cos(t)+sin(t) ln(sec(t)+tan(t)))+sin(t)(sin(t) cos(t))

Ex 2: y + y = 1 + tan t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt where y 1 = cos(t), y 2 = sin(t), g(t) = 1 + tan(t), W (y 1, y 2 ) = 1. [ ] [ ] y p = cos(t) sin(t) + sin(t) tan(t)dt +sin(t) cos(t) + sin(t)dt = cos(t)(cos(t)+sin(t) ln(sec(t)+tan(t)))+sin(t)(sin(t) cos(t)) = 1 cos(t) ln(sec(t) + tan(t))

Ex 2: y + y = 1 + tan t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt where y 1 = cos(t), y 2 = sin(t), g(t) = 1 + tan(t), W (y 1, y 2 ) = 1. [ ] [ ] y p = cos(t) sin(t) + sin(t) tan(t)dt +sin(t) cos(t) + sin(t)dt = cos(t)(cos(t)+sin(t) ln(sec(t)+tan(t)))+sin(t)(sin(t) cos(t)) = 1 cos(t) ln(sec(t) + tan(t)) Since y h = c 1 cos(t) + c 2 sin(t), we have the general is y = c 1 cos(t) + c 2 sin(t) + 1 cos(t) ln(sec(t) + tan(t)).

More about variation of parameters Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system, with y 1 (t) and y 2 (t) two independent solutions of the AHE, then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 The general solution is given by y = y h + y p, where y h = c 1 y 1 + c 2 y 2. (Restating.) y 1 g(t) W (y 1, y 2 ) dt

More about variation of parameters Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system, with y 1 (t) and y 2 (t) two independent solutions of the AHE, then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 The general solution is given by y = y h + y p, where y h = c 1 y 1 + c 2 y 2. (Restating.) Couple things: y 1 g(t) W (y 1, y 2 ) dt (i) Notice that the functions q(t) and r(t) do not appear in the formula. They are encoded into the basic solutions y 1 and y 2, so we don t lose them.

More about variation of parameters Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system, with y 1 (t) and y 2 (t) two independent solutions of the AHE, then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 The general solution is given by y = y h + y p, where y h = c 1 y 1 + c 2 y 2. (Restating.) Couple things: y 1 g(t) W (y 1, y 2 ) dt (i) Notice that the functions q(t) and r(t) do not appear in the formula. They are encoded into the basic solutions y 1 and y 2, so we don t lose them. (ii) The formula for y p appears to not be symmetric (i.e. different answer if you switch y 1 and y 2 )

More about variation of parameters Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system, with y 1 (t) and y 2 (t) two independent solutions of the AHE, then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 The general solution is given by y = y h + y p, where y h = c 1 y 1 + c 2 y 2. (Restating.) Couple things: y 1 g(t) W (y 1, y 2 ) dt (i) Notice that the functions q(t) and r(t) do not appear in the formula. They are encoded into the basic solutions y 1 and y 2, so we don t lose them. (ii) The formula for y p appears to not be symmetric (i.e. different answer if you switch y 1 and y 2 )but it isn t,

More about variation of parameters Theorem If y + q(t)y + r(t)y = g(t) is an inhomogeneous system, with y 1 (t) and y 2 (t) two independent solutions of the AHE, then a particular solution y p is given by y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 The general solution is given by y = y h + y p, where y h = c 1 y 1 + c 2 y 2. (Restating.) Couple things: y 1 g(t) W (y 1, y 2 ) dt (i) Notice that the functions q(t) and r(t) do not appear in the formula. They are encoded into the basic solutions y 1 and y 2, so we don t lose them. (ii) The formula for y p appears to not be symmetric (i.e. different answer if you switch y 1 and y 2 )but it isn t,because W (y 1, y 2 ) = W (y 2, y 1 ).

Another example We can use variation of parameters to solve variable-coefficient equations, as long as we have two solutions to the associated homogeneous equation.

Another example We can use variation of parameters to solve variable-coefficient equations, as long as we have two solutions to the associated homogeneous equation. ty (t + 1)y + y = t 2 (Inhomogenous, linear, variable coefficient.)

Another example We can use variation of parameters to solve variable-coefficient equations, as long as we have two solutions to the associated homogeneous equation. ty (t + 1)y + y = t 2 (Inhomogenous, linear, variable coefficient.) Need 1 on the leading coefficient, so divide by t:

Another example We can use variation of parameters to solve variable-coefficient equations, as long as we have two solutions to the associated homogeneous equation. ty (t + 1)y + y = t 2 (Inhomogenous, linear, variable coefficient.) Need 1 on the leading coefficient, so divide by t: y t + 1 y + 1 t t y = t Suppose a benevolent person tells you that y 1 = e t and y 2 = t + 1 are both solutions to y t+1 t y + 1 t y = 0.

Another example We can use variation of parameters to solve variable-coefficient equations, as long as we have two solutions to the associated homogeneous equation. ty (t + 1)y + y = t 2 (Inhomogenous, linear, variable coefficient.) Need 1 on the leading coefficient, so divide by t: y t + 1 y + 1 t t y = t Suppose a benevolent person tells you that y 1 = e t and y 2 = t + 1 are both solutions to y t+1 t y + 1 t y = 0. Then we can crank out y p using variation of parameters.

Another example We can use variation of parameters to solve variable-coefficient equations, as long as we have two solutions to the associated homogeneous equation. ty (t + 1)y + y = t 2 (Inhomogenous, linear, variable coefficient.) Need 1 on the leading coefficient, so divide by t: y t + 1 y + 1 t t y = t Suppose a benevolent person tells you that y 1 = e t and y 2 = t + 1 are both solutions to y t+1 t y + 1 t y = 0. Then we can crank out y p using variation of parameters. Helpful to note that W (y 1, y 2 ) = e t e t (t + 1) = te t.

y t+1 t y + 1 t y = t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt

y t+1 t y + 1 t y = t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt Where y 1 = e t, y 2 = t + 1, W (y 1, y 2 ) = te t, g(t) = t.

y t+1 t y + 1 t y = t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt Where y 1 = e t, y 2 = t + 1, W (y 1, y 2 ) = te t, g(t) = t. (t + 1)t y p = e t et t te t dt + (t + 1) te t dt

y t+1 t y + 1 t y = t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt Where y 1 = e t, y 2 = t + 1, W (y 1, y 2 ) = te t, g(t) = t. (t + 1)t y p = e t et t te t dt + (t + 1) te t dt = e t [ ] [ te t + e t dt (t + 1) ] 1dt

y t+1 t y + 1 t y = t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt Where y 1 = e t, y 2 = t + 1, W (y 1, y 2 ) = te t, g(t) = t. (t + 1)t y p = e t et t te t dt + (t + 1) te t dt = e t [ ] [ te t + e t dt (t + 1) ] 1dt = e t [ e t (t + 2) ] (t 2 + t) = t 2 2t 2

y t+1 t y + 1 t y = t y p (t) = y 1 y 2 g(t) W (y 1, y 2 ) dt + y 2 y 1 g(t) W (y 1, y 2 ) dt Where y 1 = e t, y 2 = t + 1, W (y 1, y 2 ) = te t, g(t) = t. (t + 1)t y p = e t et t te t dt + (t + 1) te t dt = e t [ ] [ te t + e t dt (t + 1) ] 1dt = e t [ e t (t + 2) ] (t 2 + t) = t 2 2t 2 General solution: y = y h + y p = c 1 e t + c 2 (t + 1) t 2 2t 2.

Another example y + 2y + y = e x ln x

Another example y + 2y + y = e x ln x The solutions to the homogeneous are y 1 = e x, y 2 = xe x.

Another example y + 2y + y = e x ln x The solutions to the homogeneous are y 1 = e x, y 2 = xe x.. Helpful to know W (y 1, y 2 ) = e 2x

Another example y + 2y + y = e x ln x The solutions to the homogeneous are y 1 = e x, y 2 = xe x.. Helpful to know W (y 1, y 2 ) = e 2x as well as the antiderivatives x ln(x)dx = x 2 x2 ln(x) + and ln(x)dx = x ln(x) x (both 2 4 of these are easy with integration by parts)