WTW 238 – Mathematics Study Notes Source: Class notes & Textbook Theme 1: Linear systems of differential equations Theme 2: Sequences and series of real numbers Theme 3: Power series Theme 4: Fourier series Theme 5: Partial differential equations Theme 1: Linear systems of differential equations 8 Lectures [week 1 & 2] This theme will carry on from WTW 256 using the eigenvalue – eigenvector method to solve systems of linear systems of differential equations. Special attention will be given to repeated eigenvalues, non-homogenous systems and second order linear systems. Theme 1.1: Eigenvalue – Eigenvector method Theme 1.2: Repeated Eigenvalue solutions Theme 1.3: Non-homogenous linear systems Theme 1.4: Second-order linear systems Pre-knowledge for this theme consists of linear systems (WTW 164), eigenvalue and eigenvectors of a π × π matrix (WTW 256), linear systems of first order differential equations (WTW 256) and finally, the method of undetermined coefficients (WTW 256) Theme 1.1 – Eigenvalue-Eigenvalue method πΜ ′ = π΄ β πΜ Where πΜ is the solution vector and π΄ is a π × π matrix. det(π΄ − π β πΌ) = 0 Where πΌ is an π × π identity matrix and π is the eigenvalues of the matrix π΄. ββββπ is computed by solving the following For an eigenvalue ππ a corresponding eigenvector π system such that the solution is a non-zero vector: ββββπ = 0 β (π΄ − ππ β πΌ) β π Let’s look at an example: π₯ ′ (π‘) π₯ (π‘) 10 5 ( ) β [ 1 ] = [ 1′ ] π₯2 (π‘) π₯2 (π‘) 3 8 1 10 5 det (( )−πβ( 0 3 8 10 − π det (( 3 10 − π det (( 3 0 10 − π )) = det (( 1 3 5 )) 8−π 5 )) = (10 − π)(8 − π) − 15 = π2 − 18π + 65 8−π 5 )) = (π − 13)(π − 5) = 0, 8−π π1 = 13, π2 = 5 5 ββββ1 = (10 − 13 ββββ1 = β0 )βπ (π΄ − π1 β πΌ) β π 3 8 − 13 −3 5 β, ( ) β ββββ π1 = 0 3 −5 ββββ1 = [5] π 3 5 ββββ2 = (10 − 5 ββββ2 = β0 )βπ (π΄ − π2 β πΌ) β π 3 8−5 5 ( 3 5 ββββ ) β π2 = β0, 3 ββββ2 = [ 1 ] π −1 ββββ1 = [5] and Therefore, the eigenvalues π1 = 13 and π2 = 5 have corresponding eigenvectors π 3 1 ββββ π2 = [ ]. −1 Now solving for the functions [ π₯1 (π‘) 1 5 π1 + π2 π π2 π‘ ββββ π2 = π1 π13π‘ [ ] + π2 π 5π‘ [ ] ] = π1 π π1 π‘ ββββ π₯2 (π‘) −1 3 [ π₯1 (π‘) 5π π13π‘ + π2 π 5π‘ ] ] = [ 1 13π‘ π₯2 (π‘) 3π1 π − π2 π 5π‘ Solving another problem with an IVP: π₯ ′ (π‘) π₯ (π‘) 7 −5 ( ) β [ 1 ] = [ 1′ ] , π₯2 (π‘) π₯2 (π‘) 4 3 π₯ (0) 1 [ 1 ]=[ ] π₯2 (0) 0 1 ββββ1 = [4 (2 − 4π)] The eigenvalues π1 = 5 − 4π and π2 = 5 + 4π have corresponding eigenvectors π 1 1 ββββ2 = [4 (2 + 4π)]. and π 1 [ 1 1 π₯1 (π‘) ] = π1 π π1π‘ ββββ π1 + π2 π π2π‘ ββββ π2 = π1 π (5−4π)π‘ [4 (2 − 4π)] + π2 π (5+4π)π‘ [4 (2 + 4π)] π₯2 (π‘) 1 1 [ 1 1 ( (2 − 4π)) π1 π (5−4π)π‘ + ( (2 + 4π)) π2 π (5+4π)π‘ π₯1 (π‘) 4 ]=[ 4 ] π₯2 (π‘) (5−4π)π‘ (5+4π)π‘ π1 π + π2 π 1 1 π 5π‘ (( (2 − 4π)) π1 (cos(4π‘) − π β sin(4π‘)) + ( (2 + 4π)) π2 (cos(4π‘) + π β sin(4π‘))) π₯1 (π‘) 4 4 [ ]=[ ] π₯2 (π‘) 5π‘ π (π1 (cos(4π‘) − π β sin(4π‘)) + π2 (cos(4π‘) + π β sin(4π‘))) 1 1 π 5π‘ ((( − π)) π1 (cos(4π‘) − π β sin(4π‘)) + (( + π)) π2 (cos(4π‘) + π β sin(4π‘))) π₯1 (π‘) 2 2 [ ]=[ ] π₯2 (π‘) 5π‘ π (π1 (cos(4π‘) − π β sin(4π‘)) + π2 (cos(4π‘) + π β sin(4π‘))) 1 1 1 1 π 5π‘ (π1 (( − π) β cos(4π‘) − ( − π) β π β sin(4π‘)) + π2 (( + π) β cos(4π‘) + ( + π) β π β sin(4π‘))) π₯1 (π‘) 2 2 2 2 [ ]=[ ] π₯2 (π‘) 5π‘ π (π1 (cos(4π‘) − π β sin(4π‘)) + π2 (cos(4π‘) + π β sin(4π‘))) [ π₯1 (π‘) ] π₯2 (π‘) 1 π 1 π π 5π‘ (π1 (( cos(4π‘) − π cos(4π‘)) − ( sin(4π‘) + sin(4π‘))) + π2 (( cos(4π‘) + π cos(4π‘)) + ( sin(4π‘) − sin(4π‘)))) 2 2 2 2 =[ ] π 5π‘ (π1 (cos(4π‘) − π β sin(4π‘)) + π2 (cos(4π‘) + π β sin(4π‘))) [ π₯1 (π‘) ] π₯2 (π‘) =π 5π‘ 1 1 1 1 (π1 (( cos(4π‘) − sin(4π‘)) − π ( sin(4π‘) + cos(4π‘))) + π2 (( cos(4π‘) − sin(4π‘)) + π ( sin(4π‘) + cos(4π‘)))) 2 2 2 2 [ ] (π1 (cos(4π‘) − π β sin(4π‘)) + π2 (cos(4π‘) + π β sin(4π‘))) 1 1 π₯ (π‘) π ( cos(4π‘) − sin(4π‘)) + π2 ( sin(4π‘) + cos(4π‘)) [ 1 ] = π 5π‘ [ 1 2 ] 2 π₯2 (π‘) π1 cos(4π‘) + π2 sin(4π‘) [ 1 π₯1 (0) 1 ] = [π1 (2) + π2 ] = [ ] , π₯2 (0) 0 π 1 π2 1 [π ] = [ ] 1 0 1 π₯1 (π‘) 5π‘ ( sin(4π‘) + cos(4π‘)) [ ]=π [ 2 ] π₯2 (π‘) sin(4π‘) Some properties of eigenvalues and eigenvectors: β’ β’ In a lower- or upper triangular or diagonal matrix, the entries on the diagonal of the matrix are the eigenvalues of the matrix. An π × π matrix π΄ has eigenvalues π1 , π2 , … , ππ . The inverted matrix, π΄−1 has the eigenvalues 1 , 1 π1 π2 β’ β’ ,…, 1 ππ . An π × π matrix π΄ has eigenvalues π1 , π2 , … , ππ . The squared matrix, π΄2 has the eigenvalues π21 , π22 , … , π2π . An eigenvalue or eigenvector can never be zero (only applies to theme 1.1). Theme 1.2: Repeated Eigenvalue solutions Multiplicity and completeness, what is it and what does it mean? An eigenvalue with multiplicity of π is said to be complete when the eigenvalue has π unique associated eigenvectors. The multiplicity, π, is the number of repetitions the eigenvalue has. Example time: π₯ ′ (π‘) π₯ (π‘) 1 0 ( ) β [ 1 ] = [ 1′ ] , π₯2 (π‘) 0 1 π₯2 (π‘) 1 det (( 0 0 1 )−πβ( 1 0 1−π det (( 0 [ π₯1 (0) 1 ]=[ ] π₯2 (0) 0 0 1−π )) = det (( 1 0 0 )) 1−π 0 )) = (1 − π)(1 − π) = 0 1−π π1 = π2 = 1 ββββ1 = (1 − 1 (π΄ − π1 β πΌ) β π 0 0 0 ββββ β, ( ) β π1 = 0 0 0 ββββ2 = (1 − 1 (π΄ − π2 β πΌ) β π 1 0 ( 0 [ 0 ββββ β, ) β π2 = 0 0 0 ) β ββββ π1 = β0 1−1 ββββ1 = [1] π 0 0 ββββ2 = β0 )βπ 1−1 ββββ2 = [0] π 1 π₯1 (π‘) 1 0 π1 + π2 π π2 π‘ ββββ π2 = π1 π π‘ [ ] + π2 π π‘ [ ] ] = π1 π π1 π‘ ββββ π₯2 (π‘) 0 1 [ [ π₯1 (π‘) π ππ‘ ] = [ 1 π‘] π₯2 (π‘) π2 π π1 π₯1 (0) 1 ] = [π ] = [ ] π₯2 (0) 0 2 [ π‘ π₯1 (π‘) ] = [π ] π₯2 (π‘) 0 This matrix has complete eigenvalues. What happens when the eigenvalues are incomplete or defective eigenvalues? Let’s have a look at what to do when there is more than one defective eigenvalue. What is meant by a defective eigenvalue? When an eigenvector can not simply be calculated as in the previous example. By choosing a different value for the eigenvector we could get two linearly independent eigenvectors. But this is not the case in defective eigenvalues. Let π΄ be the following matrix and solve the system of linear differential equations: 1 π΄ = (0 4 πΜ ′ = π΄ β πΜ , 1 det ((0 4 5 1 8 1 0 0) − π β ( 0 0 1 1−π det (( 0 4 5 1−π 8 0 1 0 5 1 8 0 0) 1 0 1−π 0)) = det (( 0 1 4 5 1−π 8 0 0 )) 1−π 0 0 )) = (1 − π)(1 − π)(1 − π) = 0 1−π π1 = π2 = π3 = 1 1−1 (π΄ − π1 β πΌ) β ββββ π1 = ( 0 4 0 (0 4 5 0 8 0 π1 = β0, 0) β ββββ 0 1−1 (π΄ − π2 β πΌ) β ββββ π2 = ( 0 4 0 (0 4 5 0 8 0 π2 = ββββ π1 , 0) β ββββ 0 0 (0 4 5 0 8 1−1 (π΄ − π3 β πΌ) β ββββ π3 = ( 0 4 0 (0 4 5 0 8 0 ββββ3 = ββββ π2 , 0) β π 0 5 1−1 8 0 (0 4 5 0 8 5 1−1 8 0 π1 = β0 0 ) β ββββ 1−1 0 ββββ π1 = [0] 1 0 ββββ2 = β0 0 )βπ 1−1 0 0 π2 = [0] , 0) β ββββ 1 0 5 1−1 8 1⁄ 4 ββββ π2 = [ 0 ] 0 0 ββββ3 = 0 β 0 )βπ 1−1 1⁄ 0 4 ββββ ) β π = [ 0 3 0 ], 0 0 − 1⁄10 ββββ π3 = [ 1⁄ ] 20 0 π₯1 (π‘) π‘2 ββββ2 + ββββ [π₯2 (π‘)] = [π π‘ ββββ π1 + π π‘ (π‘ β ββββ π1 + ββββ π2 ) + π π‘ ( β ββββ π +π‘βπ π3 )] 2 1 π₯3 (π‘) 1⁄ 1⁄ − 1⁄10 π₯1 (π‘) 2 0 0 0 π‘ 4 4 [π₯2 (π‘)] = π π‘ [0] + (π‘ β [0] + [ 0 ]) + ( β [0] + π‘ β [ 0 ] + [ 1⁄ ]) 2 20 1 1 1 π₯3 (π‘) 0 0 0 [ ] 1⁄ 1⁄ − 1⁄10 π₯1 (π‘) 0 0 π‘2 0 4 4 π‘ [π₯2 (π‘)] = π [([0] + [ 0 ] + [ 1⁄ ]) + π‘ ([0] + [ 0 ]) + ( β [0])] 2 20 1 1 1 π₯3 (π‘) 0 0 0 3⁄ 0 1⁄ π₯1 (π‘) 20 4 π‘ [π₯2 (π‘)] = π [π1 ([1⁄ ]) + π2 π‘ ([ 0 ]) + π3 π‘ 2 ([ 0 ])] 1⁄ 20 π₯3 (π‘) 1 2 1 Theme 1.3: Non-homogenous linear systems πΜ ′ = π΄ β πΜ + πΉ Where πΜ is the solution vector and π΄ is a π × π matrix and πΉ is a forcing function. We will do three examples: 2 −1 Μ 0 πΜ ′ = [ ]βπ+[ ] 3 −2 3π‘ 1 1 ππ = π1 π π‘ [ ] + π2 π −π‘ [ ] 1 3 π π 0 0 Guess the particular solution: ππ = π‘ [ ] + [ ] , πΉ = π‘ [ ] + [ ] π π 3 0 π 2 [ ]=[ π 3 π π −1 0 ] β [π‘ [ ] + [ ]] + [ ] π π −2 3π‘ π 2 −1 ππ‘ + π 0 [ ]=[ ]β[ ]+[ ] π 3 −2 ππ‘ + π 3π‘ π 2ππ‘ + 2π − ππ‘ − π 0 [ ]=[ ]+[ ] π 3ππ‘ + 3π − 2ππ‘ − 2π 3π‘ π 2ππ‘ − ππ‘ + 2π − π [ ]=[ ] π 3ππ‘ − 2ππ‘ + 3π‘ + 3π − 2π π 2π − π 2π − π [ ] = π‘[ ]+[ ] π 3π − 2π + 3 3π − 2π 0 2π − π [ ] = π‘[ ], 0 3π − 2π + 3 π 3 [ ] = [ ], π 6 π 2π − π [ ]=[ ] π 3π − 2π 3 2π − π [ ]=[ ], 6 3π − 2π π 0 [ ]=[ ] π −3 3 0 1 1 πΜ = ππ + ππ = π‘ [ ] + [ ] + π1 π π‘ [ ] + π2 π −π‘ [ ] 6 −3 1 3 Next example: 4 2 2 Μ πΜ ′ = [ ] β π + [ 2π‘ ] 1 3 π −2 1 ππ = π1 π π‘ [ ] + π2 π 4π‘ [ ] 1 1 π π 4 0 Guess the particular solution: ππ = π 2π‘ [ ] + [ ] , πΉ = π 2π‘ [ ] + [ ] π π 1 0 π π 4 2π 2 2 0 π 2π‘ [ ] = [ ] β [π 2π‘ [ ] + [ ]] + π 2π‘ [ ] + [ ] π π 2π 1 3 1 0 π 2π‘ [ 2π 2 ]=[ 2π 1 4 2 ππ 2π‘ + π 0 ] β [ 2π‘ ] + π 2π‘ [ ] + [ ] 3 ππ + π 1 0 π 2π‘ [ 2π‘ 2π‘ 4 2π 0 ] = [2ππ 2π‘ + 2π + 2ππ2π‘ + 2π] + π 2π‘ [ ] + [ ] 2π 1 0 ππ + π + 3ππ + 3π 2π‘ 2π‘ 2π + 2π + 4] π 2π‘ [ ] = [2ππ2π‘ + 2ππ2π‘ + 2π 2π ππ + 3ππ + π 2π‘ + π + 3π π 2π‘ [ 2π 2π + 2π 2π + 2π + 4 ] = π 2π‘ [ ]+[ ] 2π π + 3π + 1 π + 3π 2π 2π + 2π π 2π‘ [ ] = π 2π‘ [ ], 2π π + 3π + 1 π −1 [ ] = [ ], π 0 0 2π + 2π + 4 [ ]=[ ] 0 π + 3π π −3 [ ]=[ ] π 1 −1 −3 −2 1 πΜ = ππ + ππ = π 2π‘ [ ] + [ ] + π1 π π‘ [ ] + π2 π 4π‘ [ ] 0 1 1 1 The final example: 2 πΜ ′ = [ 3 π‘ −1 Μ ] β π + [ π π‘] −2 −π 1 1 ππ = π1 π π‘ [ ] + π2 π −π‘ [ ] 1 3 π π 1 Guess the particular solution: ππ = π π‘ [ ] + π‘π π‘ [ ] , πΉ = π π‘ [ ] gives duplication. π π −1 π π π 2 π π‘ [ ] + π‘π π‘ [ ] + π π‘ [ ] = [ π π π 3 ππ‘ [ ππ‘ [ π‘ π π −1 ] β [π π‘ [ ] + π‘π π‘ [ ]] + [ π π‘ ] π π −2 −π π‘ π‘ π‘ π π+π 2 −1 ] + π‘π π‘ [ ] = [ ] β [[ πππ‘ + ππ‘π π‘ ]] + [ π π‘ ] π π+π 3 −2 ππ + ππ‘π −π π‘ π‘ π‘ π‘ π‘ π π+π ] + π‘π π‘ [ ] = [ 2πππ‘ + 2ππ‘ππ‘ − ππ π‘ − ππ‘π π‘ ] + [ π π‘ ] π π+π 3ππ + 3ππ‘π − 2ππ − 2ππ‘π −π ππ‘ [ π‘ π‘ π‘ π‘ π‘ π π+π ] + π‘π π‘ [ ] = [ 2πππ‘ − ππ π‘ + π π‘ + 2ππ‘π π‘ − ππ‘π π‘ ] π π+π 3ππ − 2ππ − π + 3ππ‘π − 2ππ‘π π π+π 2π − π + 1 2π − π ππ‘ [ ] + π‘π π‘ [ ] = π π‘ [ ] + π‘π π‘ [ ] π π+π 3π − 2π − 1 3π − 2π π 2π − π π‘π π‘ [ ] = π‘π π‘ [ ], π 3π − 2π π 2π − π [ ]=[ ], π 3π − 2π π π [ ] = [ ], π π ππ‘ [ π+π 2π − π + 1 ] = ππ‘ [ ] π+π 3π − 2π − 1 π+π 2π − π + 1 [ ]=[ ] π+π 3π − 2π − 1 π 0 [ ] = [ ], π −1 π 2 [ ]=[ ] π 2 0 2 1 1 πΜ = ππ + ππ = π π‘ [ ] + π‘π π‘ [ ] + π1 π π‘ [ ] + π2 π −π‘ [ ] −1 2 1 3 Theme 1.4: Second-order linear systems πΜ ′′ = π΄ β πΜ Is a linear second-order homogeneous system of differential equations. In this theme it will be wise to calculate eigenvalues as follows: ππ = −ππ2 As this will be easier to use in the standard solutions given the value of π. π πΜ = ∑ ((ππ cos(ππ π‘) + ππ sin(ππ π‘)) β πβπ ) , ππ < 0 π=1 πΜ = (π0 + π‘π0 ) β πβ0 , π0 = 0 Example: 0 πΜ ′′ = [ 2 0 ] β πΜ −3 0 0 1 0 −π det (( )−πβ( )) = det (( 2 −3 0 1 2 −π det (( 2 0 )) = (−π)(−3 − π) = 0, −3 − π π0 = −π02 = 0, 0 )) −3 − π π0 = 0, π1 = −3 π1 = −π12 = −3 ∴ π1 = √3 ββββ0 = (0 0 ) β π ββββ0 = β0 (π΄ − π0 β πΌ) β π 2 −3 0 ( 2 0 ββββ0 = 0 β, )βπ −3 ββββ1 = (3 (π΄ − π1 β πΌ) β π 2 3 0 ββββ β, ( ) β π1 = 0 2 0 3 ββββ π1 = [ ] 2 0 ββββ ) β π1 = β0 0 ββββ1 = [0] π 1 0 3 πΜ = (π1 cos(√3π‘) + π1 sin(√3π‘)) β [ ] + (π0 + π‘π0 ) β [ ] 1 2 Theme 2: Sequences and series of real numbers 12 Lectures [week 3 & 4 & 5] This theme will introduce series and sequences. The theme will address series of non-negative numbers and convergence tests for various types of series. Theme 2.1: Sequences of real numbers Theme 2.2: Series of real numbers Theme 2.3: Series with non-negative terms Theme 2.4: Absolute- and conditional convergence Pre-knowledge for this theme consists of limits to infinity (WTW 158) and L’Hospitals’ rule of indeterminate forms of limits to infinity (WTW 158). Theme 2.1 – Sequences of real numbers The way a sequence can be written has many forms: {ππ } = 2, 3, 8, 11, … , ππ = 3π − 1, 1 3 7 15 {ππ } = , , , , … , 2 4 8 16 ππ = 1 − π∈β€ 1 , 2π π∈β€ Graphs of sequences are not continuous. Consider the second sequence: ππ = 1 − 1 2π The limit can be easily seen from this sequence. The limit of a sequence is the term to which the general term of a sequence tends to. In the previous demonstration it is easy to see that ππ = 3π − 1 will tend to infinity or diverge. {ππ } diverges as when π approaches ∞, {ππ } approaches ∞. {ππ } on the other hand, is convergent as when π approaches ∞, {ππ } approaches 1, a real number. Therefore, it is said that {ππ } converges to 1. A sequence, {ππ } is said to converge when lim (ππ ) = π∞ = πΏ and πΏ ∈ β, else the sequence π→∞ diverges. Either, πΏ = ∞ or πΏ does not exist. Let’s refresh all the limit operations: lim (ππ + ππ ) = lim (ππ ) + lim (ππ ) ↔ lim (ππ ) & lim (ππ ) ππππ ππ₯ππ π‘ π→∞ π→∞ π→∞ π→∞ π→∞ lim (ππ − ππ ) = lim (ππ ) − lim (ππ ) ↔ lim (ππ ) & lim (ππ ) ππππ ππ₯ππ π‘ π→∞ π→∞ π→∞ π→∞ lim (πΆ) = πΆ, π→∞ πΆ∈β lim (πΆ β ππ ) = πΆ β lim (ππ ) , π→∞ π→∞ π→∞ πΆ∈β lim (ππ β ππ ) = lim (ππ ) β lim (ππ ) ↔ lim (ππ ) & lim (ππ ) ππππ ππ₯ππ π‘ π→∞ lim ( π→∞ π→∞ π→∞ π→∞ π→∞ lim (ππ ) ππ ) = (π→∞ ) ↔ lim (ππ ) & lim (ππ ) ≠ 0 ππππ ππ₯ππ π‘ π→∞ π→∞ ππ lim (ππ ) π→∞ π lim ((ππ )π ) = ( lim (ππ )) , π→∞ π→∞ lim (ππ ) lim ((πΆ)ππ ) = πΆ π→∞ π→∞ , πππ‘ π = π₯ π€ππ‘β π₯ ∈ β πππ‘ π = π₯ π€ππ‘β π₯ ∈ β lim (ln(ππ )) = ln ( πππ (ππ )) , π→∞ πππ‘ π = π₯ π€ππ‘β π₯ ∈ β π→∞ The squeeze theorem: Let πΏ = lim (ππ ) = lim (ππ ) and ππ is such that ππ ≤ ππ ≤ ππ then ππ will converge to πΏ. π→∞ π→∞ The absolute value theorem: Let {ππ } = |{ππ }| which implies {ππ } ≥ {ππ }. If {ππ } converges then {ππ } will also converge. If {ππ } diverges then {ππ } will also diverge. Geometric sequence: {ππ } = π β π π Will converge for the following values of π. |π| < 1: πΆπππ£πππππ π = 1: πΆπππ£πππππ π = 0: πΆπππ£πππππ Any other value of π will cause the sequence to diverge. L’Hospital rule and the indeterminate form: lim ( π→∞ ππ π′ (π₯) ) = lim ( ′ ) , π→∞ π (π₯) ππ ππ , ππ → π(π₯), π(π₯) Remember to apply L’Hospitals rule it must be in the indeterminate form. β’ β’ 0 0 ∞ ∞ β’ 0 β ∞, try π(π₯) = 1 1 π(π₯) β’ ∞−∞ β’ 00 , ∞0 , 1∞ try π(π₯) → ln( π(π₯)) Some proofs: π π π π ln( (1+ ) ) π lim ((1 + ) ) = lim (π ) π→∞ π→∞ π π lim (πβln(1− )) π π π→∞ π ln(1+ ) π ) 1 π→∞ π π lim ( = π 1(∞β0) → πΏ′ π»ππ πππ‘ππ π π(π₯) = ln (1 + ) , π₯ 0 = π 0 → ππππ πΏ′ π»ππ πππ‘ππ, π ln(1+ ) π ) 1 π→∞ π π lim ( = 1 π(π₯) = , π₯ π π π₯ 2 (1+ ) π₯ lim 1 π₯→∞ π₯2 ( ) π lim ( =π π₯→∞ π π) 1+ π₯ π′ (π₯) = −π π π₯ 2 (1 + π₯ ) π ′ (π₯) = − 1 π₯2 = ππ π π lim ((1 + ) ) = π π π→∞ π Another proof: 1 π lim ( √π) = lim (ππ ) π→∞ π→∞ 1 lim (π ln(ππ ) π→∞ π→∞ 1 lim ( ln(π)) π π π→∞ ln(π₯) lim ( ) π π₯→∞ π₯ = ∞ π0 1 ) = lim (π π ln(π) ) = π 0β∞ → πΏ′ π»ππ πππ‘ππ → ππππ πΏ′ π»ππ πππ‘ππ, ln(π₯) lim ( ) π₯ π π₯→∞ 1 lim ( ) π₯ = π π₯→∞ π(π₯) = π₯, π(π₯) = ln(π₯) , = π0 = 1 π lim ( √π) = 1 π→∞ These proofs may be used as standard forms in later paragraphs. π′ (π₯) = 1 π ′ (π₯) = 1 π₯ Upper and lower boundaries: An upperbound is a limit to which the sequence will not exceed. In other words, there exists a constant such that: {ππ } ≤ πΆ1 In the case of the first proof if we let π = 1, then the boundary is π. A lowerbound is a limit to which the sequence will not exceed. In other words, there exists a constant such that: {ππ } ≥ πΆ1 In the case of the second proof the limit is set at 1. π Another case has an upper and lower bound: {ππ } = sin ( 4 π) The last case has no bounds (unbounded): {ππ } = −3π + 5 A convergent sequence is always bounded. In both proofs there were convergent sequences, and both could be bounded either by an upper or lower bound. Do not get confused with the inverse of this theorem: “A bounded sequence is convergent” as this is not always true as can be π seen in the third figure. The sequence {ππ } = sin ( 4 π) is not a convergent sequence as it does not reach a real number at infinity but is bounded. Monotonic sequences? Sequences that are strictly increasing or decreasing is said to be monotonic. The following table shows some tests to test whether sequences are monotonic. Increasing {ππ } = π(π₯) → π ′ (π₯) > 0 for all π₯ {ππ } < {ππ+1 } for all π Decreasing {ππ } = π(π₯) → π ′ (π₯) < 0 for all π₯ {ππ } > {ππ+1 } for all π 1< 1> {ππ+1 } for {ππ } all π {ππ+1 } for {ππ } all π When a sequence is monotonic and bounded the sequence is said to be convergent. In the first two cases the sequences were monotonic and bounded and therefore convergent. The third was bounded but not monotonic and hence divergent. The last case was monotonic but unbounded and hence divergent. If from a sequence a finite number of terms is removed the limit will remain unchanged. Let’s look at it graphically: From each graph more and more terms were removed but the limit stayed unchanged. Theme 2.2 – Series of real numbers A series is a sum of a sequence of numbers. π ππ = ∑{ππ } π=1 The partial sum only contains a finite number of terms of the sequence which is summed up. If the partial sum of a sequence converges to a real value, πΏ, then the sum will converge to the same value. Let ππ = ∑π π=1{ππ } be a partial sum. If lim (ππ ) = πΏ then ππ converges to πΏ and hence ππ is convergent. π→∞ π ππ = ∑{ln(π + 1) − ln(π)} = ln(2) − ln(1) + ln(3) − ln(2) + β― + ln(π + 1) − ln(π) π=1 = − ln(1) + ln(π + 1) lim (ππ ) = − ln(1) + ln(∞) = ∞, π→∞ π 1 1 1 1 1 πππ£πππππ 1 1 1 ππ = ∑ {π π‘ − π π‘+1 } = π 1 − π 2 + π 2 − π 3 + β― + π π − π π+1 = π 1 − π π+1 π=1 1 lim (ππ ) = π 1 − π ∞ = π − 1, π→∞ ππππ£πππππ The above examples are known as telescoping series. One key feature of telescoping series lies in the similar terms they produce that end up cancelling out when added. When testing for convergence it is easier to calculate a partial sum and then taking an infinite limit. π π π=2 π=2 1 1 1 ππ = ∑ { 2 − }, }= ∑{ π −π π−1 π π ∑{ π=2 ππππ‘πππ πππππ‘ππππ 1 1 1 1 1 1 1 1 − } = 1 − + − + β―+ − =1− π−1 π 2 2 3 π−1 π π lim (ππ ) = 1 − π→∞ 1 = 1, ∞ ππππ£πππππ Geometric series: π ππ = ∑{π β π π } , π=1 |π| < 1, |π| ≥ 1, π∞ = π 1−π ππππ£πππππ πππ£πππππ When linearly combining series care should be taken about the convergence and divergence of the resulting series. When combining two convergent series the resulting series will be convergent. When combine a convergent and divergent series the resulting series is always divergent. When combining a divergent and divergent series the resulting series has no conclusion. π π ππ = ∑{ln(π + 1)} − ∑{ln(π)} = ln(2) − ln(1) + ln(3) − ln(2) + β― + ln(π + 1) − ln(π) π=1 π=1 = − ln(1) + ln(π + 1) lim (ππ ) = − ln(1) + ln(∞) = ∞, π→∞ π ππ = π 1 1 1 1 πππ£πππππ 1 ∑ {π π‘ } − ∑ {π π‘+1 } = π 1 + π 2 − π 2 − π 3 + β― + π π − π π+1 = π 1 − π π+1 π=1 π=1 1 lim (ππ ) = π 1 − π ∞ = π − 1, π→∞ 1 1 1 ππππ£πππππ Test for divergence: π ππ = ∑{ππ } π=1 If lim {ππ } ≠ 0 then the series, ππ , does diverge. π→∞ π 1 ππ = ∑ {π π‘ } , π=1 1 lim {π π‘ } = π 0 = 1 ≠ 0 π→∞ 1 Therefore, the series, ∑π π=1 {π π‘ }, diverges. Be careful of the following statement: “ if the limit is zero the series converges”. This is not always true. A convergent series will always have a limit equal to zero, but a zero limit does not conclude convergence. Let’s look at an example of this. Consider the following harmonic series: π 1 1 1 1 1 1 1 1 1 ππ = ∑ { } = 1 + + + + + + + + β― + π 2 3 4 5 6 7 8 π π=1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 + + + β― > 1 + + ( + ) + ( + + + ) += 1 + + + + β― 2 3 π 2 4 4 8 8 8 8 2 2 2 π π π=1 π=1 1 1 ∑{ }>1+∑{ } π 2 1 1 π By inspection it is easy to see that 1 + ∑π π=1 {2} diverges, and since ∑π=1 {π} is larger than the 1 first then by the squeeze theorem ∑π π=1 {π} is divergent. To use the test for divergence: π 1 ππ = ∑ { } π π=1 1 lim { } = 0 π→∞ π Theme 2.3 – Series with non-negative numbers Let’s look at a few tests that may have a conclusion on the convergence of a series. The integral test is one test one may use to determine convergence. The integral test: π ∫ π(π₯) β ππ₯ ≈ ∑ π π π=π ∞ ∫ π(π₯) β ππ₯ ∝ ∑ 0 π(π) β βπ ∞ π(π) π=0 This shows that the behaviour of an integral has the same behaviour as a series. Although this test does not give the value of the series, it may be used to determine convergence. The integral test may only be used if: π(π₯) > 0, π ′ (π₯) < 0, πππ πππ π₯ πππ πππ π₯ > π₯0 , π₯0 ∈ β π(π₯) ππ’π π‘ ππ π ππππ‘πππ’ππ’π ππ’πππ‘πππ In words, the function must be positive, decreasing and continuous. ∞ If the integral, ∫0 π(π₯) β ππ₯, converges then the series will also converge. If the integral diverges, the series will also diverge. P-series: ∞ ∑ π=1 1 1 1 1 1 1 = π+ π+ π+ π+ π+β― π π 1 2 3 4 5 π π π π Let π < 0: ∑∞ π=1 π = 1 + 2 + 3 + β― Using the test for divergence: lim ππ = ∞ ≠ 0, therefore this series is divergent. π→∞ Let π = 0: ∑∞ π=1 1 π0 = 1 10 + 1 20 1 30 + +β―=1+1+1+1+β― Using the test for divergence: lim 1 = 1 ≠ 0, therefore this series is divergent. π→∞ Let 0 < π < 1: ∑∞ π=1 1 ππ = 1 1π + ∞ 1 π₯π Using the integral test: ∫0 1 2π + 1 3π +β― π 1 π₯π β ππ₯ = lim (∫0 π→∞ is divergent because the integral diverges. Let π = 1: Harmonic series. Divergent. And finally let 1 < π: ∑∞ π=1 1 ππ = 1 1π + 1 2π + 1 3π 1 β ππ₯) = lim (1−π π1−π ) = ∞ therefore this series +β― π→∞ ∞ 1 π₯π Using the integral test: ∫0 π 1 π₯π β ππ₯ = lim (∫0 π→∞ −1 1 (π−1) β ππ₯) = lim ((π−1) (π) π→∞ ) = 0 therefore this series is convergent because the integral converges. So, after a long exercise, the p-series is only convergent when π > 1. The next two tests are known as the direct comparison test and the limit comparison test. The direct comparison test is like the squeeze theorem, but it is only focused on one side of the inequality. The side will depend on what is being tested for. Consider two series: ∞ ∞ ∑{ππ } , ∑{ππ } π=1 π=1 ∞ ∞ ∞ If ∑∞ π=1{ππ } converges and ∑π=1{ππ } > ∑π=1{ππ } then ∑π=1{ππ } will converge. ∞ ∞ ∞ If ∑∞ π=1{ππ } diverges and ∑π=1{ππ } < ∑π=1{ππ } then ∑π=1{ππ } will diverge. Makes sense, right? We may not however draw any conclusion from the following: ∞ ∞ If ∑∞ π=1{ππ } converges and ∑π=1{ππ } < ∑π=1{ππ }. (No conclusion) ∞ ∞ If ∑∞ π=1{ππ } diverges and ∑π=1{ππ } > ∑π=1{ππ }. (No conclusion) The limit comparison test: Suppose that the following series have only positive terms ∞ lim ( π→∞ { {ππ } ) = 0, {ππ } lim ( π→∞ {ππ } ) = ∞, {ππ } ∑{ππ } , ∑{ππ } π=1 π=1 ∞ {ππ } lim ( ) = π, π→∞ {ππ } πΌπ: ∞ π ∈ β>0 , ∑{ππ } π€πππ ππβππ£π ππππ ∑{ππ } π=1 ∞ ∞ ∞ π=1 ∑{ππ } ππ ππππ£ππππππ‘, ∑{ππ } π€πππ ππ ππππ£ππππππ‘ π=1 ∞ π=1 ∞ ∑{ππ } ππ πππ£ππππππ‘, ∑{ππ } π€πππ ππ πππ£ππππππ‘ π=1 π=1 Let’s look at a few examples on how to apply these tests: ∞ ∑ π=1 ∞ ∫ 1 ∑∞ π=1 1 1 ππ π2 1 1 ππ π2 π 1 1 1 1 1 1 π₯ β ππ₯ = lim (∫ π π π₯ β ππ₯) = lim (−π π + π 1 ) = π − 1 2 2 π→∞ π→∞ π₯ 1 π₯ is therefore a convergent series by the integral test. } ∞ ∑ π=1 1 > sin(π) , 5 − 2 β sin(π) π −2 < −2 β sin(π) , 3 5 − 2 β sin(π) < π π 3 ∞ ∑∞ π=1 π diverges by the p-series, and since it is less than ∑π=1 5−2βsin(π) , π ∑∞ π=1 5−2βsin(π) π will also diverge by the direct comparison test. ∞ ∑( π=1 ∞ ∑( π=1 2 √π 2 √π + (−1)π ) 3π+1 ∞ )+ ∑( π=1 (−1)π ) 3π+1 2 ∑∞ π=1 ( π) is divergent by the p-series test. √ ∞ ∞ ∞ π=1 π=1 π=1 (−1)π (−1)π 1 1 π ∑ ( π+1 ) < ∑ (| π+1 |) = ∑ ( β ( ) ) 3 3 3 3 (−1)π ∑∞ π=1 ( 3π+1 2 ) converges by the direct comparison test and geometric series. Since ∑∞ π=1 ( π) is divergent and is added to the convergent series (−1)π ∑∞ π=1 ( 3π+1 ), 2 ∑∞ π=1 (√π) + √ (−1)π ∞ ∑π=1 ( π+1 ) will 3 be a divergent series. The final example: ∞ 1 π ∑ (1 + ) π π=1 1 π lim ((1 + ) ) = π 1 ≠ 0 π→∞ π 1 π ∑∞ π=1 (1 + π) diverges by the test for divergence. Note through doing many problems these techniques will become more intuitive. There is no set rule for when to use what. Theme 2.4 – Absolute and conditional convergence An alternating series is a series were terms are alternating between positive and negative terms: ∞ ∑( π=1 (−1)π (−1)1 (−1)2 (−1)3 (−1)5 1 1 1 1 1 + + + +β―=− + − + − +β― )= π 1 2 4 5 1 2 3 4 5 Note the terms are alternating hence the name alternating series. The big question is whether the series converges or diverges. The following test may be used and is known as the alternating series test. Consider the following alternating series: ∞ ∑(−1)π {ππ } = −π1 + π2 − π3 + β― π=1 The series will converge if {ππ } is strictly decreasing and have only positive terms and the limit of the sequence is zero. In math terms {ππ } → π(π₯), π ′ (π₯) < 0 {ππ } > 0 lim ({ππ }) = 0 π→∞ 1 1 Looking at the demonstration, we can see that {ππ } = π. π is decreasing an only has positive 1 π→∞ π terms. The limit lim ( ) does evaluate to zero. Therefore, the series converges by the alternating series test. The two graphs show the series and the sequence respectively. Note that the sequence does converge to zero and the series does converge to a value as well, in this case − ln(2) ≈ −0.69. What can we expect the error to be when we only consider the partial sums of these series? The error will always be less than the absolute value of first term that is neglected of the sequence. An example will demonstrate this well. {ππ } = (−1)π 1 1 1 1 1 1 = −1, , − , , − , , − , … π 2 3 4 5 6 7 ∞ (−1)π 1 1 1 1 π∞ = ∑ = −1 + − + − + β― = − ln(2) π 2 3 4 5 π=1 Consider the partial sum of the first 10 terms: 10 π10 = ∑ π=1 (−1)π 1 1 1 1 = −1 + − + β― − + = −0.6456 π 2 3 9 10 1 11 The next term to be added is π11 = − . This value will overshoot the series value. 1 1 1 1 1 π11 = π10 + π11 = −1 + − + β― − + − = −0.7365 2 3 9 10 11 We can then estimate the error as being less than the next term in the sequence: |π∞ − ππ | = |πππππ| < |ππ+1 | |− ln(2) − (−0.6456)| = 0.0475 < 0.0909 This is always true for convergent alternating series. This is helpful to determine the required terms to estimate the value of a sum. Determine the number of terms required to ensure that the error is less than 0.01. ∞ π∞ = ∑ π=1 (−1)π 1 1 1 1 = −1 + − + − + β― = − ln(2) π 2 3 4 5 {ππ } = (−1)π 1 1 1 1 1 1 = −1, , − , , − , , − , … π 2 3 4 5 6 7 (−1)π+1 1 | |= < 0.01, π+1 π+1 π = 99 What is absolute convergence? When taking the absolute value of an alternating series, it is obviously larger than the original series. If the absolute value of an alternating series is convergent, then by the direct comparison test, the original series is also convergent. This alternating series is then known as absolutely convergent. A series that is only convergent but diverges when the absolute value of the series is taken is conditionally convergent. Let’s look at an example: ∞ π∞ = ∑ π=1 (−1)π = − ln(2) , π ∞ ∞ π=1 π=1 ππππ£πππππ (πππ‘πππππ‘πππ π πππππ π‘ππ π‘) (−1)π 1 π∞ = ∑ | | = ∑ = ∞, π π πππ£πππππ (βπππππππ π πππππ ) This series is referred to as conditionally convergent. The next example: ∞ π∞ = ∑ ( π=1 (−1)π 1 )=− , π 3 4 ∞ ππππ£πππππ (πππ‘πππππ‘πππ π πππππ π‘ππ π‘) ∞ (−1)π 1 π 1 π∞ = ∑ |( π )| = ∑ (( ) ) = , 3 3 2 π=1 ππππ£πππππ (ππππππ‘πππ π πππππ ) π=1 This series is referred to as an absolutely convergent series. Remember that all previous tests may be used to determine convergence. Two new tests are introduced. Ratio and root test. Ratio test: ∑{ππ } ππ+1 πΏ < 1, ∑{ππ } ππππ£πππππ |) = πΏ, π→∞ ππ ππ+1 ππ lim (| πΏ > 1, ∑{ππ } πππ£πππππ |) = πΏ, π→∞ ππ ππ+1 ππ lim (| πΏ = 1, ππ ππππππ’π πππ |) = πΏ, π→∞ ππ ππ lim (| Root test: ∑{ππ } 1 ππ lim (|ππ |π ) = πΏ, π→∞ 1 ππ lim (|ππ |π ) = πΏ, π→∞ πΏ < 1, πΏ > 1, 1 ππ lim (|ππ |π ) = πΏ, πΏ = 1, π→∞ ∑{ππ } ππππ£πππππ ∑{ππ } πππ£πππππ ππ ππππππ’π πππ Example: ∞ ∑ π=1 π! 2π 2 (π + 1)! 2 (π + 1) β (π!) 2π (π + 1) ππ+1 (π+1)2 2 lim (| β |) = lim (| 2π |) |) = lim (| |) = lim (| π2 2π π! π→∞ π→∞ π→∞ π→∞ ππ 2 β2 2 β 2 β 2 (π!) 2 2π (π + 1) (1) lim (| 2π |) = lim (| 2π |) = 0 = πΏ < 1, π→∞ π→∞ 2 2 β2 β 4 β ln(2) ππππ£ππππππ‘ (πππ‘ππ π‘ππ π‘) Theme 3: Power series 10 Lectures [week 6 & 7 & 8] This theme will introduce power series. The theme will address convergence and representation of series as functions. Taylor series and polynomials will be addressed. The final subtheme will solve differential equations using power series. Theme 3.1: Sequences of real numbers Theme 3.2: Series of real numbers Theme 3.3: Series with non-negative terms Theme 3.4: Absolute- and conditional convergence Pre-knowledge for this theme consists of Taylor polynomials (WTW164). Theme 3.1 – Convergence of a power series What is a power series? ∞ ∑ ππ π₯ π = π0 + π1 π₯ + π2 π₯ 2 + π3 π₯ 3 + β― π=0 ππ are constant coefficients of the polynomial terms. A power series about a point π will have a number π which is known as the radius of convergence. Therefore, the series will converge for values of π₯ on an interval π₯ ∈ (π − π , π + π ). ∞ ∑ ππ (π₯ − π)π , π₯ ∈ (π − π , π + π ) π=0 How can we determine the radius of convergence? ∞ 2 π π∞ = ∑ π ( ) β π₯ π 3 π=0 Always, always, always do a ratio test. 2 π π ππ = π ( ) π₯ , 3 ππ+1 2 π+1 π+1 (π = + 1) ( ) π₯ , 3 2 1 | β π₯ β lim (1 + )| < 1, π→∞ 3 π 3 3 − <π₯< , 2 2 −3 πππ π₯ = , 2 πππ π₯ = −3 , 2 2 −1 < π₯ < 1 3 π = 0, ∞ ππ+1 2 1 = β π₯ β (1 + ) ππ 3 π π = 3 2 ∞ 2 π 3 π π∞ = ∑ π β ( ) β (− ) = ∑ π β (−1)π βΉ π·ππ£πππππ (πππ‘. π πππππ π‘ππ π‘) 3 2 π=0 ∞ π π π=0 ∞ 2 3 π∞ = ∑ π β ( ) β ( ) = ∑ π βΉ π·ππ£πππππ (π − π πππππ : π = −1) 3 2 π=0 π=0 Therefore, the series will only converge on the interval: 3 3 π₯ ∈ (− , ) , 2 2 π = 3 2 Theme 3.2 – Representation of functions as power series Recall the geometric series: ∞ π∞ = ∑ ππ π = π=0 π 1−π If we let π = 1 and π = π₯: ∞ π∞ = ∑ π₯ π = π=0 1 1−π₯ Some special (algebraic) manipulations: 1 1 = | 1 − πΌπ₯ 1 − π π→πΌπ₯ 1 1 = | πΌ 1−π₯ 1 − π π→π₯ πΌ 1 1 1 1 = = β | 1 πΌ − π₯ πΌ (1 − π₯) πΌ (1 − π) π→ 1 π₯ πΌ πΌ Through (calculus) manipulation different functions can be represented: ∞ π 1 (π∞ ) = ∑ π β π₯ π−1 = − (1 − π₯)2 ππ₯ π=0 ∞ ∫ π∞ β ππ₯ = ∑ π=1 1 1 π₯ π+1 = − ln(1 − π₯) + πΆ = ln ( )+πΆ π+1 1−π₯ How does integrating and differentiating the power series influence the radius of convergence? ∞ π∞ = ∑ π₯ π = 1 + π₯ + π₯ 2 + π₯ 3 + β― π=0 ∞ π (π ) = ∑ π β π₯ π−1 = 0 + 1 + 2π₯ + 3π₯ 2 + β― ππ₯ ∞ π=0 ∞ ∫ π∞ β ππ₯ = ∑ π=0 1 1 1 1 π₯ π+1 = π₯ + π₯ 2 + π₯ 3 + π₯ 4 + β― π+1 2 3 4 Using the ratio test to find the radius of convergence of the following: ∞ π∞ = ∑ π₯ π = 1 + π₯ + π₯ 2 + π₯ 3 + β― π=0 | lim ( π→∞ π₯ π+1 )| < 1, π₯π −1 < π₯ < 1, π =1 The derivative: ∞ π (π ) = ∑ π β π₯ π−1 = 0 + 1 + 2π₯ + 3π₯ 2 + β― ππ₯ ∞ π=0 | lim ( π→∞ (π + 1)π₯ π )| < 1, ππ₯ π−1 −1 < π₯ < 1, π =1 ∞ ∑ π β (−1)π−1 , πππ π₯ = −1, π·ππ£πππππ (πππ‘. π πππππ π‘ππ π‘) π=0 ∞ −1 < π₯ < 1, πππ π₯ = 1, { π·ππ£πππππ (π − π πππππ : π = −1) ∑π, π=0 And finally, the integral: ∞ ∫ π∞ β ππ₯ = ∑ π=0 | lim ( π→∞ 1 1 1 1 π₯ π+1 = π₯ + π₯ 2 + π₯ 3 + π₯ 4 + β― π+1 2 3 4 (π + 2)π₯ π+2 )| < 1, (π + 1)π₯ π+1 ∞ πππ π₯ = −1, ∑ π=0 ∞ −1 ≤ π₯ < 1, { πππ π₯ = 1, −1 < π₯ < 1, 1 β (−1)π+1 , π+1 ∑ π=0 1 , π+1 π =1 πΆπππ£πππππ (πππ‘. π πππππ π‘ππ π‘) π·ππ£πππππ (πππππ‘ ππππππππ ππ π‘ππ π‘) Note that the radius of convergence remained unchanged, but the interval did change. The ol’reliable: π(π₯) = tan−1 (π₯) π ′ (π₯) = 1 1 1 = = | 2 2 1+π₯ 1 − (−π₯ ) 1 − π½ π½→−π₯2 ∞ ∞ ∞ π=0 π=0 π=0 1 = ∑ π½ π = ∑(−π₯ 2 )π = ∑(−1)π β (π₯ 2π ) 1−π½ ∞ π ′ (π₯) ∞ π = ∑(−1) β π=0 (π₯ 2π ) , −1 (π₯) π(π₯) = tan = ∑(−1)π β π=0 1 β (π₯ 2π+1 ) 2π + 1 Theme 3.3 – Taylor-polynomials and Taylor-series How can a polynomial be used to describe more complex functions such as exponentials and trigonometric functions? π(π₯) = π π₯ π ′ (π₯) = π π₯ , π ′′ (π₯) = π π₯ , π ′′′ (π₯) = π π₯ , ,… , π π (π₯) = π π₯ π π (π) = π π ∞ ππ (π₯) = ∑ π=0 π π (π) β (π₯ − π)π π! ∞ π₯ π(π₯) = π = ∑ π=0 ππ β (π₯ − π)π π! Let us approximate π(π₯) = π π₯ about the point π₯ = 0 by using a few terms from the Taylor polynomial (note that a Taylor polynomial centred about π₯ = 0 is known as a Maclaurin series: 1 ππ₯ ≈ ∑ π=0 1 β (π₯)π = 1 + π₯, π! 1 1 π₯ ∈ (− , ) 2 2 Note that at the point π₯ = 0 the Taylor polynomial is equal to the function but further from the point, the polynomial diverges. By adding more terms, the accuracy may be increased. 4 π₯ π ≈∑ π=0 1 1 1 1 β (π₯)π = 1 + π₯ + π₯ 2 + π₯ 3 + π₯ 4 π! 2 6 24 The polynomial converges to the function the more terms is added. Let’s look at some trigonometric functions: π(π₯) = sin(π₯) π = 0, π ′ (π₯) = cos(π₯) , π ′′ (π₯) = − sin(π₯) , π ′ (0) = 1, ∞ ππ (π₯) = ∑ π=0 π(0) = sin(0) = 0 π ′′ (0) = 0, π ′′′ (π₯) = − cos(π₯) , π ′′′ (0) = −1, π π (π₯) =? ,… , π π (π₯) =? ,… , π π (0) 0 1 0 −1 3 0 4 1 5 0 6 −1 7 β (π₯)π = π₯ 0 + π₯ 1 + π₯ 2 + π₯ + π₯ + π₯ + π₯ + π₯ +β― π! 0! 1! 2! 3! 4! 5! 6! 7! ∞ ππ (π₯) = ∑ π=0 π π (0) 1 1 1 1 β (π₯)π = π₯ 1 − π₯ 3 + π₯ 5 − π₯ 7 + β― π! 1! 3! 5! 7! ∞ π(π₯) = sin(π₯) = ∑ π=0 (−1)π β (π₯)2π+1 (2π + 1)! Similarly, for π(π₯) = cos(π₯): π(π₯) = cos(π₯) π = 0, π ′ (π₯) = − sin(π₯) , π ′′ (π₯) = − cos(π₯) , π ′ (0) = 0, ∞ ππ (π₯) = ∑ π=0 π(0) = cos(0) = 1 π ′′ (0) = −1, π ′′′ (π₯) = sin(π₯) , π ′′′ (0) = 0, ,… , π π (π₯) =? ,… , π π (π₯) =? π π (0) 1 0 −1 2 0 3 1 4 0 5 −1 6 0 7 β (π₯)π = π₯ 0 + π₯ 1 + π₯ + π₯ + π₯ + π₯ + π₯ + π₯ +β― π! 0! 1! 2! 3! 4! 5! 6! 7! ∞ ππ (π₯) = ∑ π=0 π π (0) 1 1 1 1 β (π₯)π = π₯ 0 − π₯ 2 + π₯ 4 − π₯ 6 + β― π! 0! 2! 4! 6! ∞ π(π₯) = cos(π₯) = ∑ π=0 (−1)π β (π₯)2π (2π)! These approximations using only a few terms (four) has a high level of accuracy. ∞ ππ π₯ π = ∑ β (π₯ − π)π , π! π=0 ∞ (−1)π sin(π₯) = ∑ β (π₯)2π+1 , (2π + 1)! π=0 ∞ (−1)π cos(π₯) = ∑ β (π₯)2π (2π)! π=0 The last function if left for the reader as an exercise. Luckily the writer is also a reader. π(π₯) = ln(π₯) π = 1, π ′ (π₯) = ∞ ππ (π₯) = ∑ π=0 1 , π₯ π ′′ (π₯) = − 1 , π₯2 π(π) = 0 π ′′′ (π₯) = (1) β (2) , π₯3 ,… , π π (π₯) =? π π (1) β (π₯ − 1)π π! = (1) β (2) 1 ln(1) 1 1 1 1 + β β (π₯ − 1) − 2 β β (π₯ − 1)2 + β β (π₯ − 1)3 + β― 0! 1 1! 1 2! 13 3! 1 1 1 1 1 1 = 0 + β β (π₯ − 1) − β 2 β (π₯ − 1)2 + β 3 β (π₯ − 1)3 + β― 1 1 2 1 3 1 ∞ =∑ π=1 (−1)π−1 1 1 β (π₯ − 1)π = (π₯ − 1) − β (π₯ − 1)2 + β (π₯ − 1)3 + β― π 2 3 ln(π₯) = π₯ − 1 (π₯ − 1)2 (π₯ − 1)3 − + +β― 1 2 3 Note that the partial Taylor polynomial can be used to approximate the function. If a remainder term is incorporated into the equation such that: π π(π₯) = ππ (π₯) + π π (π₯) = ∑ π=0 π π (π) π π+1 (π) β (π₯ − π)π + β (π₯ − π)π+1 (π + 1)! π! π ∈ (π₯, π) If the limit, lim (π π (π₯)) = 0 then that will result in π(π₯) = π∞ (π₯). π→∞ So, assume that π π+1 (π) = πΎ does exist, then: lim ( π→∞ (π₯ − π)π πΎ β (π₯ − π)π+1 ) = πΎ(π₯ − π) β lim ( )=0 π→∞ (π + 1)! (π + 1)! From this it can be concluded that the Taylor polynomials will always converge to the function. But how far will it converge? How can the radius of convergence be determined? Remember the old friend, the ratio test: ∞ π₯ π(π₯) = π = ∑ π=0 {ππ } = ππ β (π₯ − π)π , π! ππ β (π₯ − π)π π! {ππ+1 } = ππ β (π₯ − π)π+1 (π + 1)! {ππ+1 } π₯ − π = {ππ } π+1 lim (| π→∞ π₯−π |) = 0 β (π₯ − π) π+1 Therefore, for all real values of π₯ the limit will always be 0 and hence, less than 1. This means that the radius of convergence is ∞. Irrespective about which point the polynomial is centred. What is a binomial series? π π (π(π − 1)) 2 (π(π − 1)(π − 2)) 3 ∑ β¨ β© π₯ π = (1 + π₯)π = 1 + ππ₯ + π₯ + π₯ +β― π 2! 3! π=0 (π!) π β¨ β©= π π! (π − π)! Taylors theorem: π π(π₯) = ∑ π=0 π π (π) π(π) π ′ (π) π ′′ (π) (π₯ − π)1 + (π₯ − π)2 + β― + π π (π₯) β (π₯ − π)π + π π (π₯) = + π! 0! 1! 2! π π (π₯) = π π+1 (π) β (π₯ − π)π+1 (π + 1)! The error is estimated by using the remainder when the Taylor series is used to approximate the function value. Let’s look at a Maclaurin series of ln(π₯ + 1) if only the third order is used to approximate the function at ln(1.1). π(π₯) = ln(1 + π₯) , π(0) = 0, π ′ (π₯) = π ′ (0) = 1, 1 , 1+π₯ π ′′ (π₯) = − π ′′ (π₯) = −1, 1 ,… (1 + π₯)2 π ′′′ (0) = 2 π π π=0 π=1 π π (0) π₯2 π₯3 π₯4 π π (0) ∑ β (π₯)π = 0 + π₯ − + − + β― = ∑ β (π₯)π π! 2 3 4 π! π3 (π₯) = π₯ − π₯2 π₯3 + ≈ ln(1 + π₯) , 2 3 π3 (0.1) = 0.1 − π(0.1) = ln(1.1) 0.12 0.13 + = 0.09533 ≈ ln(1.1) = 0.09531 2 3 π π π (π₯) = π(π₯) − ∑ π=0 π π (π) β (π₯ − π)π = 0.0953101 − 0.0953333 = −0.0000232 π! π π (π₯) = −0.0000232 ≈ − 0.14 = −0.000025 4 The error can be approximated using the first term that was neglected in the approximation. Let’s do another example: Approximate the value of: 0 2 ∫ π π₯ β ππ₯ −1 ∞ ∞ 1 π π₯ = ∑ β (π₯)π , π! π π₯2 =∑ π=0 0 ∫ π −1 π₯2 π=0 1 β (π₯)2π π! ∞ ∞ π=0 π=0 0 1 1 1 −1 2π+1 (π₯) β ππ₯ = ∑ β β β (−1)2π+1 | =∑ β π! 2π + 1 π! 2π + 1 −1 ∞ ∑ π=0 1 1 1 1 1 1 1 1 β =1+ + + +β―≈1+ + + π! 2π + 1 3 10 42 3 10 42 0 1 1 1 2 ∫ π π₯ β ππ₯ ≈ 1 + + + = 1.457 3 10 42 −1 Find a Taylor polynomial centred about π₯ = 2 for ln(3π₯ + 2) and approximate the value of ln(7) π(π₯) = ln(2 + 3π₯) , π π (π₯) = π ′ (π₯) = (−1)π−1 β 3π β (π − 1)!, (3π₯ + 2)π 3 , 2 + 3π₯ π ′′ (π₯) = − 1β3β3 ,… (2 + 3π₯)2 3 π π π (2) = (−1)π−1 (π − 1)! β ( ) , 8 π≠0 π(2) = ln(8) ∞ ∞ π=0 π=1 π π (2) π₯2 π₯3 π₯4 π π (2) ∑ β (π₯ − 2)π = ln(8) + π₯ − + − + β― = ln(8) + ∑ β (π₯ − 2)π π! 2 3 4 π! ∞ π(π₯) = ln(2 + 3π₯) = ln(8) + ∑ π=1 (−1)π−1 3 π β ( ) β (π₯ − 2)π π 8 3 1 −1 3 2 1 (π₯ π(π₯) = ln(2 + 3π₯) ≈ ln(8) + ( ) β − 2) + β ( ) β (π₯ − 2)2 8 2 8 1 2 5 3 1 5 −1 3 2 5 π ( ) = ln(7) ≈ ln(8) + ( ) β ( − 2) + β ( ) β ( − 2) = 1.9466 3 8 3 2 8 3 Theme 3.4 – Power series solutions to differential equations Let’s go back to WTW256: ππ¦ + 2π¦(π₯) = 0 ππ₯ Solving this separable DE, it yields the following function: π¦(π₯) = πΆ0 π −2π₯ The power series method assumes that the solution is in the form: ∞ π¦(π₯) = ∑ ππ π₯ π = π0 + π1 π₯ + π2 π₯ 2 + β― π=0 Let’s attempt to solve it using the power series method: ∞ ∑ ππ ∞ (π)π₯ π−1 + 2 ∑ ππ π₯ π = 0 π=1 π=0 Getting all indexes, the same: ∞ ∞ π ∑ ππ+1 (π + 1)π₯ + 2 ∑ ππ π₯ π = 0 π=0 π=0 Make sure all the π₯ exponents are the same. ∞ ∑[ππ+1 (π + 1)π₯ π + 2ππ π₯ π ] = 0, ∴ ππ+1 (π + 1)π₯ π + 2ππ π₯ π = 0 π=0 ππ+1 (π + 1) + 2ππ = 0, ππ+1 = − 2π0 (−1)1 1 = β 2 π0 1 1! 2π1 2 2π0 (−1)2 2 π2 = − =− β− = β 2 π0 2 2 1 2! 2π2 (−1)3 3 π3 = − = β 2 π0 3 3! π (−1) ππ = β 2π π0 π! 2ππ ← π πππ’ππππππ πππππ‘πππ π+1 π=0 π1 = − π=1 π=2 π ∈ [0, ∞), ∞ (−1)π π π¦(π₯) = ∑ β 2 π0 β π₯ π π! π=0 ∞ (−2π₯)π π¦(π₯) = π0 ∑ = π0 π −2π₯ π! π=0 Does this solution converge to the actual solution? Use the ratio test: π∈β€ {ππ } = (−2π₯)π β, π! {ππ+1 } = (−2π₯)π+1 (π + 1)! {ππ+1 } −2π₯ = {ππ } π+1 lim (| π→∞ π₯−π |) = 0 β (−2π₯) π+1 Therefore, for all real values of π₯ the limit will always be 0 and hence, less than 1. This means that the radius of convergence is ∞. The solution converges for all real values of π₯. What are ordinary and singular points? Consider the following DE: π΄(π₯)π¦ ′′ (π₯) + π΅(π₯)π¦ ′ (π₯) + πΆ(π₯)π¦(π₯) = 0, π΄(π₯) = 1 On the interval where π΅(π₯) and πΆ(π₯) can be evaluated and analysed, all these points are known as ordinary points. When these functions cannot be evaluated at a point these points are called singularities. The guaranteed radius of convergence can be determined by noting that all power series solutions are centred around π₯ = 0. Let π be a singularity point on a differential equation series solution. The power series solution will converge on an interval π₯ < |π|. The radius of convergence is therefore π = π. Linearly independent solutions: π¦ ′′ (π₯) + π¦(π₯) = 0 ∞ ∞ π=0 π=0 π2 (∑ ππ π₯ π ) + ∑ ππ π₯ π = 0 ππ₯ 2 ∞ ∑ ππ (π)(π − 1)π₯ ∞ π−2 + ∑ ππ π₯ π = 0 π=2 π=0 ∞ ∞ π ∑ ππ+2 (π + 2)(π + 1)π₯ + ∑ ππ π₯ π = 0 π=0 π=0 ∞ ∑[ππ+2 (π + 2)(π + 1)π₯ π + ππ π₯ π ] = 0 π=0 ππ+2 (π + 2)(π + 1)π₯ π + ππ π₯ π = 0, −π0 (1)(2) −π1 π3 = (2)(3) −π2 π0 π4 = = (4)(3) (1)(2)(3)(4) π2 = ππ+2 = −ππ (π + 2)(π + 1) π=0 π=1 π=2 −π3 π1 π5 = = (4)(5) (2)(3)(4)(5) −π4 −π0 π6 = = (6)(5) (1)(2)(3)(4)(5)(6) −π5 −π1 π7 = = (6)(7) (2)(3)(4)(5)(6)(7) π=3 π=4 π=5 ∞ ∑ ππ π₯ π = π0 + π1 π₯ + π2 π₯ 2 + π3 π₯ 3 + π4 π₯ 4 + π5 π₯ 5 + π6 π₯ 6 + π7 π₯ 7 + β― π=0 = π0 + π1 π₯ − = π0 (1 − π0 2 −π1 3 π0 4 π1 5 −π0 6 −π1 7 π₯ + π₯ + π₯ + π₯ + π₯ + π₯ +β― 2! 3! 4! 5! 6! 7! π₯2 π₯4 π₯6 π₯3 π₯5 π₯7 + − + β― ) + π1 (π₯ − + + + β― ) 2! 4! 6! 3! 5! 7! ∞ ∞ π=0 π=0 (−1)π β π₯ 2π (−1)π β π₯ 2π+1 = π0 β ∑ + π1 β ∑ (2π + 1)! 2π! π¦(π₯) = π0 β cos(π₯) + π1 β sin(π₯) Let’s look at some examples to solve more complex differential equations. (π₯ − 3) ( ππ¦ ) + 2π¦(π₯) = 0 ππ₯ ∞ ∞ (π₯ − 3) ∑ ππ ππ₯ π−1 + 2 ∑ ππ π₯ π = 0 π=1 ∞ π=0 ∞ π ∞ ∑ ππ ππ₯ − 3 ∑ ππ ππ₯ π=1 π−1 + 2 ∑ ππ π₯ π = 0 π=1 ∞ π=0 ∞ π ∞ ∑ ππ ππ₯ − 3 ∑ ππ+1 (π + 1)π₯ + 2 ∑ ππ π₯ π = 0 π=0 π π=0 π=0 ∞ ∑[ππ ππ₯ π − 3ππ+1 (π + 1)π₯ π + 2ππ π₯ π ] = 0 π=0 ππ π − 3ππ+1 (π + 1) + 2ππ = 0, 2 π1 = π0 ( 1 ) 3 3 2 3 3 π2 = π1 ( ) = π0 ( ) ( ) = π0 ( 2 ) 6 3 6 3 4 3 4 4 π3 = π2 ( ) = π0 ( 2 ) ( ) = π0 ( 3 ) 9 3 9 3 π+1 ππ = π0 ( π ) 3 ππ+1 = −2ππ − πππ π+2 = ππ ( ) −3(π + 1) 3π + 3 π=0 π=1 π=2 π = 0,1,2,3, … ∞ ∞ π π¦(π₯) = ∑ ππ π₯ = π0 β ∑ ( π+1 π )π₯ 3π π=0 π=0 π+1 π )π₯ , 3π {ππ+1 } = ( Ratio test: {ππ } = ( π + 2 π+1 )π₯ 3π+1 {ππ+1 } π + 2 π₯ = β {ππ } π+1 3 π+2 π₯ π₯ lim (| β |) = | | < 1 π→∞ π + 1 3 3 −3 < π₯ < 3, π =3 ∞ π₯ = −3, ∑(−1)π (π + 1) , πππ£πππππ (πππ‘. π πππππ π‘ππ π‘) π=0 ∞ −3 < π₯ < 3 βΆ { π₯ = 3, ∑(π + 1) , πππ£πππππ (π‘ππ π‘ πππ πππ£πππππππ) π=0 Testing (separable): ππ¦ 2 + π¦(π₯) = 0 ππ₯ π₯ − 3 ln(π¦(π₯)) = −2 ln(π₯ − 3) + π π¦(π₯) = π0 (π₯ − 3)2 Finding a power series to represent the solution: π(π₯) = ∫ π¦(π₯) β ππ₯ = − π0 +πΆ π₯−3 ∞ π0 π0 π0 π₯ π − +πΆ = + πΆ = πΆ + β ∑ ( ) = π(π₯) 1 π₯−3 3 3 3 (1 − 3 π₯) π=0 ∞ ∞ ∞ π=0 π=1 π=0 ππ¦ π0 π₯ π π0 1 π0 1 π¦(π₯) = β ∑ π ππ₯ π−1 = β ∑ π+1 (π + 1)π₯ π [πΆ + β ∑ ( ) ] = ππ₯ 3 3 3 3 3 3 ∞ (π + 1) π π0 π¦(π₯) = β∑ π₯ 9 3π π=0 They have similar results. Let’s look at another problem. π¦ ′′ (π₯) + π¦(π₯) = π₯ ∞ ∞ ∑ ππ (π)(π − 1)π₯ π−2 + (∑ ππ π₯ π ) = π₯ π=2 π=0 ∞ ∞ π (∑ ππ+2 (π + 2)(π + 1)π₯ ) + (π0 + π1 π₯ + ∑ ππ π₯ π ) = π₯ π=0 π=2 ∞ ∞ π (2π2 + 6π3 π₯ + ∑ ππ+2 (π + 2)(π + 1)π₯ ) + (π0 + π1 π₯ + ∑ ππ π₯ π ) = π₯ π=2 π=2 ∞ ∞ π (∑ ππ+2 (π + 2)(π + 1)π₯ ) + (∑ ππ π₯ π ) = −π0 − π1 π₯ − 2π2 − 6π3 π₯ + π₯ π=2 π=2 ππ+2 (π + 2)(π + 1) + ππ = 0, π0 = −2π2 , −π0 − 2π2 = 0, π1 = 1 − 6π3 , ππ+2 = − −π1 − 6π3 + 1 = 0 ππ (π + 1)(π + 2) π0 (−1)1 π0 = 2 2! (−1)1 (π1 ) π1 π3 = − = (2)(3) 3! (−1)2 (π0 ) 2π2 π4 = = (2)(3)(4) 4! (−1)2 (π1 ) 6π3 π5 = = (2)(3)(4)(5) 5! (−1)3 (π0 ) π4 2π2 π6 = − =− = (5)(6) (2)(3)(4)(5)(6) 6! (−1)3 (π1 ) π5 6π3 π7 = − =− = (6)(7) (2)(3)(4)(5)(6)(7) 7! π2 = (−1)1 π=0 π=1 π=2 π=3 π=4 π=5 ∞ ∑ ππ π₯ π = π0 + π1 π₯ + π2 π₯ 2 + π3 π₯ 3 + π4 π₯ 4 + π5 π₯ 5 + π6 π₯ 6 + π7 π₯ 7 + β― π=0 (−1)0 (π0 ) (−1)1 (π0 ) 2 (−1)1 (π1 ) 3 (−1)2 (π0 ) 4 (−1)2 (π1 ) 5 = π1 π₯ + + π₯ + π₯ + π₯ + π₯ 0! 2! 3! 4! 5! (−1)3 (π0 ) 6 (−1)3 (π1 ) 7 + π₯ + π₯ +β― 6! 7! 1 = 1π₯ 1 + (−1)0 (π0 ) (−1)1 (π0 ) 2 (−1)2 (π0 ) 4 (−1)3 (π0 ) 6 (−1)0 (π1 ) 1 + π₯ + π₯ + π₯ + β―+ π₯ 0! 2! 4! 6! 1! (−1)1 (π1 ) 3 (−1)2 (π1 ) 5 (−1)3 (π1 ) 7 + π₯ + π₯ + π₯ +β― 3! 5! 7! ∞ ∞ π=0 π=0 (−1)π 2π (−1)π π¦(π₯) = π₯ + π0 β ∑ ( ) π₯ + π1 β ∑ ( ) π₯ 2π+1 (2π)! (2π + 1)! 1 π¦(π₯) = π₯ 1 + π0 β cos(π₯) + π1 β sin(π₯) The final example: π¦ ′′ (π₯) − 2π₯π¦ ′ (π₯) − 4π¦(π₯) = 0 ∞ ∞ ∑ ππ (π)(π − 1)π₯ π−2 ∞ − 2π₯ ∑ ππ π=2 (π)π₯ π−1 − 4 ∑ ππ π₯ π = 0 π=1 ∞ π=0 ∞ π ∞ (2π2 + ∑ ππ+2 (π + 2)(π + 1)π₯ ) − 2 (∑ ππ π=1 (π)π₯ π ) − 4 (π0 + ∑ ππ π₯ π ) = 0 π=1 π=1 ∞ ∑ π₯ π [ππ+2 (π + 2)(π + 1) − 2ππ (π) − 4ππ ] = −2(π2 ) + 4(π0 ) π=1 −2π2 + 4π0 = 0, ππ+2 (π + 2)(π + 1) − 2ππ (π) − 4ππ = 0 π2 = 2π0 , ππ+2 = 2ππ (π + 1) 2π0 (1) 2π1 π3 = (2) 2π2 2 2π0 (2)2 (π0 ) π4 = = β = (3) (3) (1) (1)(3) 2π3 2 2π1 (2)2 (π1 ) π5 = = β = (4) (4) (2) (2)(4) (2)3 (π0 ) 2π4 2 2 2π0 π6 = = β β = (5) (5) (3) (1) (1)(3)(5) (2)3 (π1 ) 2π5 2 2 2π1 π7 = = β β = (6) (6) (4) (2) (2)(4)(6) π2 = ∞ π=0 π=1 π=2 π=3 π=4 π=5 ∑ ππ π₯ π = π0 + π1 π₯ + π2 π₯ 2 + π3 π₯ 3 + π4 π₯ 4 + π5 π₯ 5 + π6 π₯ 6 + π7 π₯ 7 + β― π=0 = π0 + π1 π₯ + = π0 ( (2)3 π0 6 (2)3 π1 7 2π0 2 2π1 3 (2)2 π0 4 (2)2 π1 5 π₯ + π₯ + π₯ + π₯ + π₯ + π₯ +β― (1) (2) (1)(3) (2)(4) (1)(3)(5) (2)(4)(6) (2)1 π₯ 2 (2)2 π₯ 4 (2)3 π₯ 6 (2)1 π₯ 3 (2)2 π₯ 5 (2)3 π₯ 7 + + + β― ) + π1 π₯ + π1 ( + + + β―) (1) (1)(3) (1)(3)(5) (2) (2)(4) (2)(4)(6) 1 β 3 β 5 β 7 β― (2π − 1) = 1 β 3 β 5 β 7 β― (2π − 1) β (2π)! 2 β 4 β 6 β 8 β― (2π) = π 2 β 4 β 6 β 8 β― (2π) 2 (π)! 2 β 4 β 6 β 8 β― (2π) = (2π )(1 β 2 β 3 β 4 β― (π)) = 2π (π!) ∞ ∞ π=0 π=0 (π!)(2π₯)2π (π₯ 2π+1 ) = π0 β ∑ ( ) + π1 ∑ ( ) (2π)! (π!) Theme 4 – Fourier series 6 Lectures [week 8 & 9] This theme will introduce Fourier series and the Fourier transforms. The convergence of the Fourier series and the special cases like Fourier-sine and -cosine series. Theme 4.1: General Fourier series and convergence Theme 4.2: Fourier-sine and -cosine series. Pre-knowledge for this theme consists of factor integration (WTW 164) and even and odd functions (WTW 158). Theme 4.1: General Fourier series and convergence. Recap: Even and odd functions When π(π₯) = π(−π₯), π(π₯) is known as an even function. An example is π(π₯) = cos(π₯) When −π(π₯) = π(−π₯), π(π₯) is known as an even function. An example is π(π₯) = sin(π₯) Orthogonal functions: Functions are orthogonal when their inner product is zero. The inner product is the integral of the product of the functions on that interval. π ∫ (π1 (π₯) β π2 (π₯)) β ππ₯ = 0 π Let’s look at sin(π₯) and cos(π₯). π πππ₯ πππ₯ ) cos ( ) ππ₯ π π −π π 1 2πππ₯ ∫ sin ( ) ππ₯ π −π 2 1 π 2πππ₯ π (− β β cos ( ))| 2 2ππ π −π π (− ) β (cos(2ππ) − cos(2ππ)) 4ππ =0 πππ₯ πππ₯ sin ( π ) and cos ( π ) are ∫ sin ( π πππ₯ πππ₯ ) sin ( ) ππ₯ π π −π π, π=π ={ 0, ππ‘βπππ€ππ π ∫ sin ( π πππ₯ πππ₯ ) cos ( ) ππ₯ π π −π π, π=π ={ 0, ππ‘βπππ€ππ π ∫ cos ( orthogonal on the interval π₯ ∈ [−π, π]. A Fourier series transform takes a given function and approximates it by summating a finite or infinite number of sine and cosine terms. The Fourier transform has the following standard form: ∞ ∞ π=1 π=1 π0 πππ₯ πππ₯ β±(π₯) = + ∑ ππ cos ( ) + ∑ ππ sin ( ) 2 π π Let us derive formulas for the three coefficients. Let ∞ ∞ π(π₯) = π0 + ∑ ππ cos(ππ₯) + ∑ ππ sin(ππ₯) , π=1 −π < π₯ < π π=1 Integrate the equation: π π π ∞ π ∞ ∫ π(π₯) β ππ₯ = ∫ π0 β ππ₯ + ∫ ∑ ππ cos(ππ₯) β ππ₯ + ∫ ∑ ππ sin(ππ₯) β ππ₯ −π −π π π −π π=1 −π π=1 ∞ ∞ π π ∫ π(π₯) β ππ₯ = ∫ π0 β ππ₯ + ∑ ππ ∫ cos(ππ₯) β ππ₯ + ∑ ππ ∫ sin(ππ₯) β ππ₯ −π −π −π π=1 −π π=1 π ∞ π ∫ π(π₯) β ππ₯ = π0 (π + π) + 2 ∑ ππ ∫ cos(ππ₯) β ππ₯ 0 π=1 −π π ∞ 1 ∫ π(π₯) β ππ₯ = 2ππ0 + 2 ∑ ππ ( (sin(ππ) − sin(0)) ) π π=1 −π π π 1 π0 = β ∫ π(π₯) β ππ₯ 2π ∫ π(π₯) β ππ₯ = 2ππ0 , −π −π For the term ππ , multiply all terms with cos(ππ₯): ∞ ∞ π(π₯) cos(ππ₯) = π0 cos(ππ₯) + ∑ ππ cos(ππ₯) cos(ππ₯) + ∑ ππ sin(ππ₯) cos(ππ₯) π=1 π=1 Integrate the equation: π π ∞ ∞ π π ∫ π(π₯) cos(ππ₯) β ππ₯ = ∫ π0 cos(ππ₯) β ππ₯ + ∑ ππ ∫ cos(ππ₯) cos(ππ₯) β ππ₯ + ∑ ππ ∫ sin(ππ₯) cos(ππ₯) β ππ₯ −π −π −π π=1 π ∞ π=1 −π π ∫ π(π₯) cos(ππ₯) β ππ₯ = 0 + ∑ ππ ∫ cos(ππ₯) cos(ππ₯) β ππ₯ + 0 π=1 −π π −π ∞ ∫ π(π₯) cos(ππ₯) β ππ₯ = ∑ ππ ({0, −π π, π=π ππ‘βπππ€ππ π) π=1 The summation falls away as the only non-zero term will be the term where π = π. π ∫ π(π₯) cos(ππ₯) β ππ₯ = ππ π, −π For the term ππ , multiply all terms with sin(ππ₯): π 1 ππ = ∫ π(π₯) cos(ππ₯) β ππ₯ π −π ∞ ∞ π(π₯) sin(ππ₯) = π0 sin(ππ₯) + ∑ ππ cos(ππ₯) sin(ππ₯) + ∑ ππ sin(ππ₯) sin(ππ₯) π=1 π=1 Integrate the equation: π π ∞ ∞ π π ∫ π(π₯) sin(ππ₯) β ππ₯ = ∫ π0 sin(ππ₯) β ππ₯ + ∑ ππ ∫ cos(ππ₯) sin(ππ₯) β ππ₯ + ∑ ππ ∫ sin(ππ₯) sin(ππ₯) β ππ₯ −π −π π=1 −π −π π=1 π ∞ π ∫ π(π₯) sin(ππ₯) β ππ₯ = 0 + 0 + ∑ ππ ∫ sin(ππ₯) sin(ππ₯) β ππ₯ π=1 −π π −π ∞ ∫ π(π₯) sin(ππ₯) β ππ₯ = ∑ ππ ({0, π, π=π ππ‘βπππ€ππ π) π=1 −π The summation falls away as the only non-zero term will be the term where π = π. π π ∫ π(π₯) sin(ππ₯) β ππ₯ = ππ π, −π 1 ππ = ∫ π(π₯) sin(ππ₯) β ππ₯ π −π Note that these formulas only apply to a function that has a period of 2π. When the most general case is considered, the period must be adjusted accordingly: π 1 π0 = β ∫ π(π₯) β ππ₯, 2π π π 1 πππ₯ ππ = ∫ π(π₯) cos ( ) β ππ₯, π π π π= π 1 πππ₯ ππ = ∫ π(π₯) sin ( ) β ππ₯ π π π (π − π) 2 Let’s look at a simple example: π(π₯) = π₯, π= −1 < π₯ < 1 1 − (−1) =1 2 ∞ ∞ π=1 π=1 π0 πππ₯ πππ₯ β±(π₯) = + ∑ ππ cos ( ) + ∑ ππ sin ( ) 2 π π 1 1 1 1 π0 = β ∫ π₯ β ππ₯ = π₯ 2 | = 0 2(1) 4 −1 −1 1 1 ππ = ∫ π₯ cos(πππ₯) β ππ₯ = πππ(ππ. )|π−π = 0 1 −1 1 1 (−1)π+1 2 2 π (−1) = ππ = ∫ π₯ sin(πππ₯) β ππ₯ = 2 ∫ π₯ sin(πππ₯) β ππ₯ = − ππ ππ −1 ∞ β±(π₯) = ∑ π=1 0 (−1)π+1 2 2 1 2 1 sin(πππ₯) = sin(ππ₯) − sin(2ππ₯) + sin(3ππ₯) − sin(4ππ₯) + β― ππ π π 3π 2π π π(π₯) ≈ ∑ π=1 (−1)π+1 2 sin(πππ₯) ππ π=1 π=4 π = 50 It is expected that there are only sine terms as sine is an odd function like π(π₯) = π₯. If π(π₯) is an even function only cosine and the constant term will play a role in the Fourier transform. Note that the transform converges to the function (if it didn’t, that would be embarrassing). The transform at a jump discontinuity will converge to the average value between the two points. As in the above case, there is a jump at π₯ = 1 from π(1− ) = 1 to π(1+ ) = −1, the Fourier transform, β±(π₯), converges to 0 as it is the average between the two values. Let’s look at a function that is neither odd nor even. π(π₯) = π₯ 2 + 1, π= 0<π₯<2 2−0 =1 2 ∞ ∞ π=1 π=1 π0 πππ₯ πππ₯ β±(π₯) = + ∑ ππ cos ( ) + ∑ ππ sin ( ) 2 π π 2 2 1 3 8 14 π0 = ∫(π₯ + 1) β ππ₯ = ( π₯ + π₯)| = ( + 2) = 3 3 3 0 2 0 π0 = 2 14 3 2 2 ππ = ∫(π₯ + 1) cos(πππ₯) β ππ₯ = ∫(π₯ 0 0 2 2 2 2) cos(πππ₯) β ππ₯ + ∫ cos(πππ₯) β ππ₯ 0 2 2 π₯2 2π₯ 1 π₯ sin(πππ₯)| − ∫ sin(ππ₯) β ππ₯ + ( sin(πππ₯))| = 2 ∫ sin(ππ₯) β ππ₯ ππ ππ ππ ππ 0 0 0 0 2 2 2π₯ 2 −4 4 (− cos(πππ₯))| − ∫ cos(πππ₯) β ππ₯ = − ( cos(2ππ)) = (ππ)2 (ππ)2 (ππ)2 (ππ)2 0 0 ππ = 2 4 (ππ)2 2 2 2 ππ = ∫(π₯ + 1) sin(πππ₯) β ππ₯ = ∫(π₯ 0 2) sin(πππ₯) β ππ₯ + ∫ sin(πππ₯) β ππ₯ 0 2 0 2 2 2 π₯2 π₯ −1 −4 π₯ cos(πππ₯))| + 2 ∫ cos(πππ₯) β ππ₯ + ( cos(πππ₯))| = + 2∫ cos(πππ₯) β ππ₯ (− ππ ππ ππ ππ ππ 0 0 0 0 2 2 −4 2 2 −4 4 −4 (sin(2ππ) − 0)) = +( sin(πππ₯))| +∫ sin(πππ₯) β ππ₯ = +( 2 2 2 (ππ) (ππ) (ππ) ππ ππ ππ 0 0 ππ = −4 ππ ∞ ∞ π=1 π=1 7 4 −4 β±(π₯) = + ∑ cos(πππ₯) + ∑ sin(πππ₯) 2 (ππ) 3 ππ β±(π₯) = 7 4 1 −4 −2 + 2 cos(ππ₯) + 2 cos(2ππ₯) + β― + sin(ππ₯) + sin(2ππ₯) + β― 3 π π π π π=1 π=4 π = 50 Find the Fourier series of the following piece wise function (square wave): 0, π(π₯) = { π₯, π= −1 < π₯ < 0 0<π₯<1 1 − (−1) =1 2 ∞ ∞ π=1 π=1 π0 β±(π₯) = + ∑ ππ cos(πππ₯) + ∑ ππ sin(πππ₯) 2 0 1 1 1 1 2 1 1 π0 = ∫ 0ππ₯ + ∫ π₯ππ₯ = ( π₯ )| = 2 2 4 4 0 −1 0 π0 = 1 4 1 1 1 π₯ 1 ππ = ∫ π₯ cos(πππ₯) β ππ₯ = ( sin(πππ₯))| − ∫ sin(πππ₯) ππ₯ ππ ππ 0 0 0 0, π = ππ£ππ 1 (−1)π 1 1 ( cos(πππ₯))| = − = { −2 , π = πππ (ππ)2 (ππ)2 (ππ)2 0 (ππ)2 ππ = −2 2 ((2π − 1)π) 1 1 1 π₯ 1 ππ = ∫ π₯ sin(πππ₯) β ππ₯ = (− cos(πππ₯))| + ∫ cos(πππ₯) ππ₯ ππ ππ 0 0 0 1 (−1)π+1 (−1)π+1 1 +( cos(πππ₯))| = (ππ)2 ππ ππ 0 ππ = (−1)π+1 ππ ∞ ∞ π=1 π=1 (−1)π+1 1 −2 β±(π₯) = + ∑ sin(πππ₯) 2 cos((2π − 1)ππ₯) + ∑ 4 ππ ((2π − 1)π) β±(π₯) = 1 −2 −2 1 −1 + 2 cos(ππ₯) + 2 cos(3ππ₯) + β― + sin(ππ₯) + sin(2ππ₯) + β― 4 π 9π π 2π π=1 π=4 π = 50 Remember that absolute valued functions may be re-written as piecewise functions: π(π₯) = |sin(π₯)|, π(π₯) = { − sin(π₯) , sin(π₯) , π₯ ∈ (−π, π) −π < π₯ < 0 0<π₯<π sin(ππ) = 0, cos(ππ) = (−1)π , π∈β€ We can use the Fourier series to calculate the value of a series. Use the previous example to determine the value of the series given below. 0, π(π₯) = { π₯, ∞ ∞ π=1 π=1 (−1)π+1 −2 −1 < π₯ < 0 1 = +∑ cos((2π − 1)ππ₯) + ∑ sin(πππ₯) 2 0<π₯<1 4 ππ ((2π − 1)π) Determine the value of: ∞ ∑ π=1 1 (2π − 1)2 cos((2π − 1)ππ₯) = cos(2ππ) = 1, sin(πππ₯) → sin(0) = 0, ∞ π₯=0 ππΎ 1 −2 0= +∑ 2 4 ((2π − 1)π) π=1 ∞ π2 1 =∑ 2 8 π=1 ((2π − 1)) Theme 4.2 – Fourier sine series and Fourier cosine series The product of even and odd functions: Let π(π₯) be an even function and π(π₯) an odd function: β(π₯) = π(π₯) β π(π₯) β(−π₯) = π(−π₯) β π(−π₯) β(−π₯) = π(π₯) β π(π₯) β(−π₯) = β(π₯) β(π₯) = π₯ 2 cos(2ππ₯) β(π₯) = π(π₯) β π(π₯) β(−π₯) = π(−π₯) β π(−π₯) β(−π₯) = (−1)2 β π(π₯) β π(π₯) β(−π₯) = β(π₯) β(π₯) = π₯ sin(ππ₯) β(π₯) = π(π₯) β π(π₯) β(−π₯) = π(−π₯) β π(−π₯) β(−π₯) = −π(π₯) β π(π₯) β(−π₯) = −β(π₯) π β(π₯) = π₯ cos ( π₯) 2 As stated previously, odd functions only have sine terms. The even functions have a constant term as well as cosine terms. π π 1 1 1 π0 = ∫ π(π₯)ππ₯ = ∫ π(π₯)ππ₯ = (πΉ(π) − πΉ(0)) 2π π π −π 0 π π 1 2 ππ = ∫ π(π₯) cos(π₯) ππ₯ = ∫ π(π₯) cos(π₯) ππ₯ π π −π 0 π 1 ππ = ∫ π(π₯) sin(π₯) ππ₯ = 0 π −π And for an odd function π(π₯): π 1 π0 = ∫ π(π₯)ππ₯ = 0 2π −π π 1 ππ = ∫ π(π₯) cos(π₯) ππ₯ = 0 π −π π π 1 2 ππ = ∫ π(π₯) sin(π₯) ππ₯ = ∫ π(π₯) sin(π₯) ππ₯ π π −π 0 For even expansions of functions, the Fourier cosine series is used. The odd expansion uses only sine terms. What is meant by even and odd expansions? Good question. Consider the following function: π(π₯) = π₯ 2 + 1, π(π₯) = π₯ 2 + 1, 0<π₯<2 π(π₯) = π₯ 2 + 1, 0<π₯<2 −2 < π₯ < 2, ππ£ππ π(π₯) = π₯ 2 + 1, −2 < π₯ < 2, πππ −2 < π₯ < 2, πππ Let’s look at the Fourier expansions: π(π₯) = π₯ 2 + 1, π(π₯) = π₯ 2 + 1, −2 < π₯ < 2, ππ£ππ 0<π₯<2 π(π₯) = π₯ 2 + 1, Solving DE’s using Fourier series. There are two different types of problems, Dirichlet conditions and Neumann conditions: Dirichlet ππ¦ ′′ + ππ¦ = π(π₯), π₯(0) = π₯(πΏ) = 0 Use the Fourier sine series to solve Neumann ππ¦ ′′ + ππ¦ = π(π₯), π₯ ′ (0) = π₯ ′ (πΏ) = 0 Use the Fourier cosine series to solve Consider the following DE: Dirichlet: π¦ ′′ (π₯) + 3π¦(π₯) = 3 − π₯, π¦(0) = π¦(3) = 0 π =3−0=3 ∞ ∞ π=1 π=1 πππ₯ πππ₯ π¦(π₯) = ∑ ππ sin ( ) = ∑ ππ sin ( ) π 3 ∞ π¦ ′ (π₯) ∞ ππ πππ₯ = ∑ ππ cos ( ), 3 3 π¦ ′′ (π₯) π=1 ππ 2 πππ₯ = − ∑ ππ ( ) sin ( ) 3 3 π=1 π(π₯) = 3 − π₯ ∞ ∞ π=1 π=1 πππ₯ πππ₯ β±π πππ {3 − π₯} = ∑ π΅π sin ( ) = ∑ π΅π sin ( ) π 3 π 3 2 π₯ππ 2 π₯ππ 6 π΅π = ∫(3 − π₯) sin ( ) ππ₯ = ∫(3 − π₯) sin ( ) ππ₯ = π π 3 3 ππ 0 0 ∞ β±π πππ {3 − π₯} = ∑ π=1 6 πππ₯ sin ( ) ππ 3 π¦ ′′ (π₯) + 3π¦(π₯) = 3 − π₯ ∞ ∞ ∞ π=1 π=1 π=1 ππ 2 πππ₯ πππ₯ 6 πππ₯ − ∑ ππ ( ) sin ( ) + 3 ∑ ππ sin ( )=∑ sin ( ) 3 3 3 ππ 3 ∞ ∞ ∞ π=1 π=1 π=1 ππ 2 6 − ∑ ππ ( ) + 3 ∑ ππ = ∑ 3 ππ ππ 2 6 −ππ ( ) + 3ππ = , 3 ππ ππ = ∞ π¦(π₯) = ∑ π=1 6 2 ππ ππ (3 − ( 3 ) ) , ππ = 54 πππ₯ sin ( ) 2 ππ(27 − (ππ) ) 3 54 ππ(27 − (ππ)2 ) Neumann: 2π¦ ′′ (π₯) − π¦(π₯) = 3 − π₯, π¦ ′ (0) = π¦ ′ (3) = 0 ∞ ∞ π=1 π=1 π0 πππ₯ π0 πππ₯ π¦(π₯) = + ∑ ππ cos ( )= + ∑ ππ cos ( ) 2 π 2 3 ∞ π¦ ′ (π₯) ππ πππ₯ = − ∑ ππ sin ( ), 3 3 ∞ π¦ ′′ (π₯) π=1 ππ 2 πππ₯ = − ∑ ππ ( ) cos ( ) 3 3 π=1 π(π₯) = 3 − π₯ ∞ ∞ π=1 π=1 πππ₯ πππ₯ β±πππ πππ {3 − π₯} = π΄0 + ∑ π΄π cos ( ) = π΄0 + ∑ π΄π cos ( ) π 3 π 3 1 1 3 π΄0 = ∫ π(π₯)ππ₯ = ∫ 3 − π₯ππ₯ = π 3 2 0 0 π 3 0, π = ππ£ππ 2 πππ₯ 2 πππ₯ π΄π = ∫ π(π₯) cos ( ) ππ₯ = ∫(3 − π₯) cos ( ) ππ₯ = { 12 , π = πππ π π 3 3 (ππ)2 0 0 ∞ 3 12 πππ₯ β±πππ πππ {3 − π₯} = + ∑ cos ( ) 2 (ππ) 2 3 π=1 2π¦ ′′ (π₯) − π¦(π₯) = 3 − π₯ ∞ ∞ ∞ π=1 π=1 π=1 (2π − 1)ππ₯ ππ 2 πππ₯ π0 πππ₯ 3 12 −2 ∑ ππ ( ) cos ( ) − − ∑ ππ cos ( )= +∑ cos ( ) 2 3 3 2 3 2 3 ((2π − 1)π) − π0 3 = , 2 2 π0 = −3 (2π − 1)ππ₯ ππ 2 πππ₯ πππ₯ 12 −2ππ ( ) cos ( ) − ππ cos ( )= cos ( ) 2 3 3 3 3 ((2π − 1)π) 12 πππ₯ πππ₯ ππ 2 cos ( ), π = πππ 2 −ππ cos ( ) (2 ( ) + 1) = {(ππ) 3 3 3 0, π = ππ£ππ πππ₯ ππ 2 12 πππ₯ −ππ cos ( ) (2 ( ) + 1) = cos ( ), 2 (ππ) 3 3 3 ππ = ∞ −108 (ππ)2 (2π2 π 2 + 9) , ππ 2 12 −ππ (2 ( ) + 1) = (ππ)2 3 π → 2π − 1 (2π − 1)ππ₯ −3 108 π¦(π₯) = −∑ cos ( ) 2 2 3 ((2π − 1)π) (2(2π − 1)2 π 2 + 9) π=1 Theme 5 – Partial differential equations 13 Lectures [week 10 & 11 & 12] This theme will introduce eigenvalue problems and partial differential equations. The wave and heat equation Fourier solutions. Theme 5.1: Eigenvalue problems. Theme 5.2: The heat equation. Theme 5.3: The wave equation. Pre-knowledge for this theme consists of linear second order differential equations (WTW256). Theme 5.1: Eigenvalue problems. What is a boundary value problem? A boundary value problem is a type of differential equation whose conditions are at the boundary. Examples hereof: β’ 2D-flow over a stationary body: Due to the no-slip condition, the flow at the boundary (the body) will be zero and at some velocity at the free surface. ππ’ π=πβ , π’(0) = 0, π’(πΏ) = π ππ¦ β’ Fixed-fixed vibrating string: Due to the fixed-fixed condition the endpoints will not displace, hence the displacements at the boundaries are zero. π2π¦ π2π¦ 2 = π β , π¦(0, π‘) = π¦(πΏ, π‘) = 0 ππ‘ 2 ππ₯ 2 β’ Cantilever beam with loading: The cantilevered side will have a zero slope and zero displacement. π2 π£ π(π₯) = πΈπΌ β 2 , π£(0) = π£ ′ (0) = 0 ππ₯ Consider the following eigenvalue problem: π¦ ′′ (π₯) + (π(π))π¦ ′ (π₯) + π(π)π¦(π₯) = 0 The characteristic equation: π2 + π(π)π + π(π) = 0 [π(π)]2 − 4π(π) < 0, π ∈ β, πππππππ₯ 2 {[π(π)] − 4π(π) = 0, π ∈ β, ππππ ππππππ‘ππ [π(π)]2 − 4π(π) > 0, π ∈ β, ππππ π’ππππ’π Find the eigenvalue as well as the associated eigenfunction: π¦ ′′ (π₯) + ππ¦(π₯) = 0, π¦(0) = π¦(πΏ) = 0 π = 0, 2 π + π = 0, {π > 0, π¦(π₯) = π΄π‘ + π΅ π¦(π₯) = πΆ1 cos(√ππ₯) + πΆ2 sin(√ππ₯) π < 0, π¦(π₯) = πΆ1 π √ππ₯ + πΆ2 π₯π √ππ₯ For π = 0 (the boring one, not an eigenvalue): π¦(0) = π΅ = 0, π¦(πΏ) = π΄πΏ = 0, π¦(π₯) = 0 For π > 0: π¦(0) = πΆ1 = 0, π¦(πΏ) = πΆ2 sin(√ππΏ) = 0, sin(√ππΏ) = 0 = sin(ππ) , ππ 2 π=( ) πΏ πΆ2 ≠ 0 πππ₯ π¦(π₯) = πΆ2 sin ( ) πΏ For π < 0 (not an eigenvalue): π¦(πΏ) = πΆ2 πΏπ √ππΏ = 0, π¦(0) = πΆ1 = 0, πΆ2 = 0 π¦(π₯) = 0 Another example: π¦ ′′ (π₯) + ππ¦(π₯) = 0, π¦ ′ (0) = π¦ ′ (πΏ) = 0 π = 0, π2 + π = 0, {π > 0, π¦(π₯) = π΄π‘ + π΅ π¦(π₯) = πΆ1 cos(√ππ₯) + πΆ2 sin(√ππ₯) π < 0, π¦(π₯) = πΆ1 π √ππ₯ + πΆ2 π₯π √ππ₯ For π = 0: π¦ ′ (0) = π΄ = 0, π¦ ′ (πΏ) = π΄ = 0, π¦(π₯) = π΅, π΅∈β π¦(π₯) = 1 For π > 0: π¦ ′ (π₯) = πΆ2 √π cos(√ππ₯) − πΆ1 √π sin(√ππ₯) π¦(0) = πΆ2 √π = 0, π¦(πΏ) = −πΆ1 √π sin(√ππΏ) = 0, sin(√ππΏ) = 0 = sin(ππ) , πΆ1 ≠ 0 ππ 2 π=( ) πΏ πππ₯ π¦(π₯) = cos ( ) πΏ For π < 0 (Not an eigen value): π¦ ′ (π₯) = πΆ1 √ππ √ππ₯ + πΆ2 √ππ₯π √ππ₯ + πΆ2 π √ππ₯ π¦ ′ (0) = πΆ1 √π + πΆ2 = 0, π¦ ′ (πΏ) = πΆ2 √ππΏπ √ππΏ = 0, πΆ2 = 0 π¦(π₯) = 0 The last example: π¦ ′′ (π₯) + 2π¦ ′ (π₯) + (1 + π)π¦(π₯) = 0, π2 + 2π + (π + 1) = 0, π= π¦(0) = π¦(1) = 0 −2 ± √4 − 4(1 + π) = −1 ± π√π 2 For π = 0 (Not an eigen value): π¦(π₯) = πΆ1 π −π₯ + πΆ2 π₯π −π₯ π¦(1) = πΆ2 π −1 = 0, π¦(0) = πΆ1 = 0, π¦(π₯) = 0 For π > 0: π¦(π₯) = πΆ1 π −π₯ cos(√ππ₯) + πΆ2 π −π₯ sin(√ππ₯) π¦(1) = πΆ2 π −1 sin(√π) = 0, π¦(0) = πΆ1 = 0, sin(√π) = 0 = sin(ππ) , πΆ2 ≠ 0 π = (ππ)2 π¦(π₯) = π −π₯ sin(πππ₯) For π < 0 (Not an eigenvalue): π¦(π₯) = πΆ1 π (−1+√π)π₯ + πΆ2 π (−1−√π)π₯ π¦(1) = πΆ1 π (−1+√π) + πΆ2 π (−1−√π) = πΆ1 (π √π − π −√π ) = 0 π¦(0) = πΆ1 + πΆ2 = 0, π √π − π −√π ≠ 0 πΆ1 = 0, π¦(π₯) = 0 Standard eigenvalue problems’ solution: π¦ ′′ (π₯) + ππ¦(π₯) = 0, π¦ ′′ (π₯) + ππ¦(π₯) = 0, π¦(0) = π¦(πΏ) = 0, π¦ ′ (0) =π¦ ′ (πΏ) = 0, ππ 2 π=( ) , πΏ πππ₯ π¦(π₯) = sin ( ) πΏ ππ 2 ( π={ πΏ) , 0 π¦(π₯) = { πππ₯ cos ( ) πΏ 1 2 π¦ ′′ (π₯) + ππ¦(π₯) = 0, π¦ ′ (0) = π¦(πΏ) = 0, π=( (2π − 1)π ) , 2πΏ π¦(π₯) = cos ( 2 π¦ ′′ (π₯) + ππ¦(π₯) = 0, π¦ ′ (0) = π¦(πΏ) = 0, (2π − 1)π π=( ) , 2πΏ π¦(π₯) = sin ( (2π − 1)ππ₯ ) 2πΏ (2π − 1)ππ₯ ) 2πΏ Theme 5.2 – The heat equation The heat equation is an equation used to describe heat flow in an laterally insulated, solid, thin, homogenous material (although in this case that is the assumption). The heat function, π’(π₯, π‘), describes the temperature in the solid in terms of the position on the solid, π₯, as well as at a time, π‘. The heat equation problem will consist of the actual heat equation, two boundary conditions and an initial condition. There are two standard heat equations. The first, Problem A, has a boundary condition that keeps the ends at a constant temperature. π’π‘ (π₯, π‘) = ππ’π₯π₯ (π₯, π‘), 0<π₯<πΏ 0<π‘ { π’(0, π‘) = π’(πΏ, π‘) = 0, π’(π₯, 0) = π(π₯), 0<π₯<πΏ The second, Problem B, has a boundary condition that keeps the ends insulated (no heat transfer). π’π‘ (π₯, π‘) = ππ’π₯π₯ (π₯, π‘), 0<π₯<πΏ 0<π‘ { π’π₯ (0, π‘) = π’π₯ (πΏ, π‘) = 0, π’(π₯, 0) = π(π₯), 0<π₯<πΏ How does one go about solving this? Consider problem A: π’π‘ (π₯, π‘) = ππ’π₯π₯ (π₯, π‘), 0<π₯<πΏ 0<π‘ { π’(0, π‘) = π’(πΏ, π‘) = 0, π’(π₯, 0) = π(π₯), 0<π₯<πΏ Assume the equation is separable such that the temperature is a product: π(π₯, π‘) = π(π₯) β π(π‘) π(π₯, π‘) = π(π₯) β π(π‘) π(0, π‘) = π(0) β π(π‘) = 0, π(0) = 0, π(πΏ, π‘) = π(πΏ) β π(π‘) = 0 π(πΏ) = 0, ππ‘ (π₯, π‘) = π(π₯) β π ′ (π‘), π(π‘) ≠ 0 ππ₯π₯ (π₯, π‘) = π ′′ (π₯) β π(π‘) π(π₯) β π ′ (π‘) = π β π ′′ (π₯) β π(π‘), π ′′ (π₯) π ′ (π‘) = π(π₯) ππ(π‘) Looking at this equation when we change π₯, the left-hand side will change as it depends on π₯. The right-hand side will remain unchanged if π₯ is changed. The same will happen if π‘ changes. The only way this equation can be satisfied, is when both are equal to a constant. π ′′ (π₯) π ′ (π‘) = = −π π(π₯) ππ(π‘) π ′′ (π₯) = −π, π ′′ (π₯) + ππ(π₯) = 0 π(π₯) This is an eigenvalue problem from theme 5.1. π ′′ (π₯) + ππ(π₯) = 0, π(0) = π(πΏ) = 0 π ′ (π‘) = −π, π ′ (π‘) = −πππ(π‘) ππ(π‘) This is a separable differential equation from WTW256. ππ = −πππ(π‘) ππ‘ Solving the eigenvalue problem: π ′′ (π₯) + ππ(π₯) = 0, ππ 2 π=( ) , πΏ π(0) = π(πΏ) = 0 πππ₯ π¦(π₯) = sin ( ) πΏ Solving the separable differential equation: ππ = −πππ(π‘) ππ‘ π(π‘) = π −ππ‘( ππ 2 ) πΏ Putting all the pieces together: π(π₯, π‘) = π(π₯) β π(π‘) π(π₯, π‘) = π −ππ‘( ππ 2 ) πΏ πππ₯ β sin ( ) πΏ For the Fourier solution: πΏ 2 πππ₯ ππ = ∫ π(π₯) sin ( ) ππ₯ πΏ πΏ 0 ∞ π(π₯, π‘) = ∑ (ππ π −ππ‘( ππ 2 ) πΏ π=0 πππ₯ β sin ( )) πΏ Problem B is solved using the same steps. The eigenvalue problem will have a different solution πππ₯ ) and a constant term π0 . πΏ and ππ is computed using cos ( Problem A Fourier series solution: ∞ π(π₯, π‘) = ∑ (ππ π −ππ‘( π=0 ππ 2 ) πΏ πΏ πππ₯ sin ( )) , πΏ 2 πππ₯ ππ = ∫ π(π₯) sin ( ) ππ₯ πΏ πΏ 0 Problem B Fourier series solution: ∞ π(π₯, π‘) = π0 ∑ (ππ π π=0 −ππ‘( ππ 2 ) πΏ πππ₯ cos ( )) , πΏ πΏ 2 πππ₯ ππ = ∫ π(π₯) cos ( ) ππ₯ , πΏ πΏ The standard heat equation The end points are held at a constant temperature The end points are insulated The thermal diffusivity of the material The initial condition or initial temperature distribution The length of the rod 0 πΏ 1 π0 = ∫ π(π₯)ππ₯ πΏ 0 π’π‘ (π₯, π‘) = ππ’π₯π₯ (π₯, π‘), 0<π₯<πΏ π’(0, π‘) = π1 , π’(πΏ, π‘) = π2 , 0<π‘ π’π₯ (0, π‘) = π’π₯ (πΏ, π‘) = 0, 0<π‘ π π’(π₯, 0) = π(π₯), 0<π₯<πΏ πΏ Two steel rods π = 0.15 ππ2 π are both 25 ππ in length. Rod A is having an initial uniform temperature of 100β while rod B is 0β. At time π‘ = 0 the ends of the rods are put into contact. Determine: a) The Fourier series solution when the outer ends are kept at 0β b) The Fourier series solution when the outer ends are insulated. π’π‘ (π₯, π‘) = 0.15π’π₯π₯ (π₯, π‘), 0 < π₯ < 50 π’(0, π‘) = π’(50, π‘) = 0, 0<π‘ 100, 0 < π₯ < 25 π’(π₯, 0) = { 0, 25 < π₯ < 50 π(π₯, π‘) = π(π₯) β π(π‘) π(0, π‘) = π(0) β π(π‘) = 0, π(0) = 0, π(50, π‘) = π(50) β π(π‘) = 0 π(50) = 0, ππ‘ (π₯, π‘) = π(π₯) β π ′ (π‘), ππ₯π₯ (π₯, π‘) = π ′′ (π₯) β π(π‘) π ′′ (π₯) π ′ (π‘) = = −π π(π₯) 0.15 β π(π‘) π(π₯) β π ′ (π‘) = 0.15 β π ′′ (π₯) β π(π‘), π ′′ (π₯) = −π, π ′′ (π₯) + ππ(π₯) = 0 π(π₯) π ′′ (π₯) + ππ(π₯) = 0, π(0) = π(πΏ) = 0 πππ₯ ππ = sin ( ), 50 ππ 2 π=( ) 50 π(π₯, π‘) = ∑ (ππ π −0.15π‘( π=0 25 ππ 2 ) 50 π ′ (π‘) = −π, π ′ (π‘) = −πππ(π‘) ππ(π‘) ππ = −πππ(π‘) ππ‘ ππ = π − ππ (π₯, π‘) = π − ∞ π(π‘) ≠ 0 0.15π2 π2 π‘ 2500 πππ₯ sin ( )) , 50 0.15π2 π2 π‘ 2500 πππ₯ β sin ( ) 50 πΏ 2 πππ₯ ππ = ∫ π(π₯) sin ( ) ππ₯ πΏ πΏ 0 50 1 πππ₯ 1 200 ππ ππ = ∫ 100 sin ( ) ππ₯ + ∫ 0ππ₯ = (1 − cos ( )) 25 πΏ 25 ππ 2 0 25 ∞ π(π₯, π‘) = ∑ ( π=1 π‘ = 0π π‘ = 10π ππ 2 200 ππ πππ₯ −0.15π‘( ) 50 sin ( (1 − cos ( )) π )) ππ 2 50 π‘ = 200π π‘ = 1800 π‘ = 7200π π’π‘ (π₯, π‘) = 0.15π’π₯π₯ (π₯, π‘), 0 < π₯ < 50 (0, (50, π’π₯ π‘) = π’π₯ π‘) = 0, 0<π‘ 100, 0 < π₯ < 25 π’(π₯, 0) = { 0, 25 < π₯ < 50 π(π₯, π‘) = π(π₯) β π(π‘) ππ₯ (0, π‘) = π ′ (0) β π(π‘) = 0, π ′ (0) = 0, ππ₯ (50, π‘) = π ′ (50) β π(π‘) = 0 π ′ (50) = 0, ππ‘ (π₯, π‘) = π(π₯) β π ′ (π‘), ππ₯π₯ (π₯, π‘) = π ′′ (π₯) β π(π‘) π ′′ (π₯) π ′ (π‘) = = −π π(π₯) 0.15 β π(π‘) π(π₯) β π ′ (π‘) = 0.15 β π ′′ (π₯) β π(π‘), π ′′ (π₯) = −π, π ′′ (π₯) + ππ(π₯) = 0 π(π₯) π ′′ (π₯) + ππ(π₯) = 0, π ′ (0) = π ′ (πΏ) = 0 πππ₯ ππ = cos ( ), 50 ππ 2 π=( ) 50 ππ (π₯, π‘) = π ∞ π(π₯, π‘) = π0 + ∑ (ππ π −0.15π‘( ππ 2 ) 50 π=0 π(π‘) ≠ 0 π ′ (π‘) = −π, π ′ (π‘) = −πππ(π‘) ππ(π‘) ππ = −πππ(π‘) ππ‘ ππ = π − − πππ₯ cos ( )) , 50 0.15π2 π2 π‘ 2500 0.15π2 π2 π‘ 2500 πππ₯ β cos ( ) 50 πΏ 2 πππ₯ ππ = ∫ π(π₯) cos ( ) ππ₯ , πΏ πΏ 0 25 πΏ 1 π0 = ∫ π(π₯)ππ₯ πΏ 0 50 1 πππ₯ 1 200 ππ ππ = ∫ 100 sin ( ) ππ₯ + ∫ 0ππ₯ = (sin ( )) 25 πΏ 25 ππ 2 0 25 50 50 0 0 1 1 π0 = ∫ 100ππ₯ + ∫ 0ππ₯ = 50 50 50 ∞ π(π₯, π‘) = 50 + ∑ ( π=0 π‘ = 0π π‘ = 10π ππ 2 200 ππ πππ₯ −0.15π‘( ) 50 cos ( (sin ( )) π )) ππ 2 50 π‘ = 200π π‘ = 1800 π‘ = 7200π Notice the plots of each case. In case a) the points where held at a constant temperature even though heat exchange is happening meaning that heat was constantly rejected at the endpoints and in doing so maintained constant temperature (heat transfer at the ends where allowed). The rod eventually cooled down to zero. In case b) the endpoints were insulated meaning no heat transfer could happen to the surroundings from the ends. Slowly heat is distributed uniformly within the rod. The ends aren’t kept at a constant temperature. These PDE’s are considered as the standard heat equation. Non-standard equations may need transformations to help solve the equation. 2π’π‘ (π₯, π‘) = π’π₯π₯ (π₯, π‘) + 8, 0<π₯<1 π’(1, π‘) = 30, 0<π‘ {π’(0, π‘) = 10, π’(π₯, 0) = 10 − 4π₯ 2 , 0<π₯<1 Use the transformation: π(π₯, π‘) = π(π₯, π‘) + β(π₯) ππ₯π₯ = ππ₯π₯ + β′′ (π₯) ππ‘ = ππ‘ , 2ππ‘ = ππ₯π₯ + β′′ (π₯) + 8 The first objective is to find β(π₯) such that it will result in a standard heat equation. β′′ (π₯) + 8 = 0 β(π₯) = −4π₯ 2 + πΆπ₯ + π· β(0) = π·, β(1) = −4 + πΆ + π· π(0, π‘) = 10 = π(0, π‘) + β(0), π(0, π‘) = 0, β(0) = 10 π(0,1) = 30 = π(0,1) + β(1), π(0,1) = 0, β(1) = 30 β(0) = 10, β(1) = 24, β(π₯) = −4π₯ 2 + 24π₯ + 10 Find the initial temperature distribution π(π₯, 0): π(π₯, 0) = π(π₯, 0) + β(π₯), 10 − 4π₯ 2 = π(π₯, 0) − 4π₯ 2 + 24π₯ + 10 π(π₯, 0) = −24π₯ The new transformed problem is: 2π€π‘ = π€π₯π₯ , 0<π₯<1 0<π‘ {π€(0, π‘) = π€(1, π‘) = 0, π€(π₯, 0) = −24π₯, 0<π₯<1 Some non-standard heat equations can still be solved using the separation of variables. π’π‘ (π₯, π‘) = 2π’π₯π₯ (π₯, π‘) − 3π’(π₯, π‘), 0<π₯<2 { π’(0, π‘) = π’(2, π‘) = 0, 0<π‘ π’(π₯, 0) = 4π₯, 0<π₯<2 π(π₯, π‘) = π(π₯) β π(π‘) π(0, π‘) = π(0) β π(π‘) = 0, π(0) = 0, π(2, π‘) = π(2) β π(π‘) = 0 π(2) = 0, ππ‘ (π₯, π‘) = π(π₯) β π ′ (π‘), π(π‘) ≠ 0 ππ₯π₯ (π₯, π‘) = π ′′ (π₯) β π(π‘) π(π₯) β π ′ (π‘) = 2π ′′ (π₯) β π(π‘) − 3π(π₯) β π(π‘) 3 π ′′ (π₯) π ′ (π‘) 3 π(π₯) β π ′ (π‘) = 2π(π‘) β (π ′′ (π₯) − π(π₯)) → = + = −π 2 π(π₯) 2π(π‘) 2 π ′′ (π₯) = −π π(π₯) π ′′ (π₯) + π(π₯) = 0, π(0) = π(2) = 0 πππ₯ ππ = sin ( ), 2 ππ 2 π=( ) 2 ππ = ππ (π₯, π‘) = ∞ π(π₯, π‘) = ∑ (ππ π π2 π2 −π‘( +3) 2 π=0 π ′ (π‘) 3 3 + = −π, π ′ (π‘) = −2 (π + ) π(π‘) 2π(π‘) 2 2 ππ 3 = −2 (π + ) π(π‘) ππ‘ 2 π 2 π2 −π‘( +3) 2 π π 2 π2 −π‘( +3) 2 π πππ₯ β sin ( ) 2 πΏ πππ₯ β sin ( )) , 2 2 πππ₯ ππ = ∫ π(π₯) sin ( ) ππ₯ πΏ πΏ 0 2 (−1)π+1 β 16 2 πππ₯ ππ = ∫ 4π₯ sin ( ) ππ₯ = 2 2 ππ 0 ∞ π(π₯, π‘) = ∑ ( π=0 2 2 (−1)π+1 β 16 −π‘(π π 2 π ππ Always keep the eigenvalue problem standard. +3) πππ₯ β sin ( )) 2 Theme 5.3: The wave equation. The next PDE we’ll be discussing is the wave equation. π¦π‘π‘ (π₯, π‘) = πΌ 2 π¦π₯π₯ (π₯, π‘), (0 < π₯ < πΏ, 0 < π‘) The heat equation has boundary conditions, an initial velocity and an initial displacement. (0 < π₯ < πΏ, π¦π‘π‘ (π₯, π‘) = πΌ 2 π¦π₯π₯ (π₯, π‘), 0 < π‘) (0 < π‘) π¦(0, π‘) = π¦(πΏ, π‘) = 0, (0 < π₯ < πΏ) π¦(π₯, 0) = π(π₯), (0 < π₯ < πΏ) π¦π‘ (π₯, 0) = π(π₯), { The first case is when the initial displacement is a non-zero function and the initial velocity is zero (Problem A). (0 < π₯ < 10, π¦π‘π‘ (π₯, π‘) = 5π¦π₯π₯ (π₯, π‘), 0 < π‘) (0 < π‘) π¦(0, π‘) = π¦(10, π‘) = 0, 2 (0 π¦(π₯, 0) = π₯ − 10π₯, < π₯ < 10) (0 < π₯ < 10) π¦π‘ (π₯, 0) = 0, Assume that π¦(π₯, π‘) is separable: π =πβπ ππ‘π‘ = π β π ′′ , ππ₯π₯ = π ′′ β π π β π ′′ = 5 β π ′′ β π → π¦(0, π‘) = 0 = π(0) β π(π‘), π ′′ π ′′ = = −π π 5βπ π(π‘) ≠ 0 ∴ π(0) = 0 π¦(0,10) = 0 = π(10) β π(π‘), π(π‘) ≠ 0 ∴ π(10) = 0 π¦π‘ (π₯, 0) = 0 = π(π₯) β π ′ (0), π(π₯) ≠ 0 ∴ π ′ (0) = 0 Solve the two differential equations: π ′′ = −π → π ′′ + ππ = 0, π πππ₯ ππ = sin ( ), 10 π(0) = π(10) = 0 ππ 2 π=( ) 10 π ′′ = −π → π ′′ + 5ππ = 0, 5βπ π 2 + 5π = 0 π ′ (0) = 0 π = ±π√5π π(π‘) = πΆ1 cos(π‘√5π) + πΆ2 sin(π‘√5π) ′ (π‘) π = −πΆ1 √5π sin (π‘√5π) + πΆ2 √5π cos (π‘√5π) π ′ (0) = πΆ2 √5π = 0 ∴ πΆ2 = 0 π(π‘) = cos(π‘√5π) πππ‘ π(π‘) = cos (√5 ) 10 πππ₯ πππ‘ ππ (π₯, π‘) = sin ( ) cos (√5 ) 10 10 πΏ ∞ πππ₯ πππ‘ π(π₯, π‘) = ∑ (ππ sin ( ) cos (√5 )) , 10 10 2 πππ₯ ππ = ∫ π(π₯) sin ( ) ππ₯ πΏ πΏ π=0 0 10 2 πππ₯ 800 ππ = ∫ (π₯ 2 − 10π₯) sin ( ) ππ₯ = − 3 10 10 ((2π + 1)π) 0 ∞ π(π₯, π‘) = ∑ (− π=0 800 πππ₯ πππ‘ ) cos (√5 )) 10 10 3 sin ( ((2π + 1)π) The second case is when the initial velocity is a non-zero function (Problem B). (0 < π₯ < 10, π¦π‘π‘ (π₯, π‘) = 5π¦π₯π₯ (π₯, π‘), 0 < π‘) (0 < π‘) π¦(0, π‘) = π¦(10, π‘) = 0, 2 (0 π¦(π₯, 0) = π₯ − 10π₯, < π₯ < 10) (0 < π₯ < 10) π¦π‘ (π₯, 0) = 0, π β π ′′ = 5 β π ′′ β π → π ′′ π ′′ = = −π π 5βπ π¦(0, π‘) = 0 = π(0) β π(π‘), π¦(0,10) = 0 = π(10) β π(π‘), π¦(π₯, 0) = 0 = π(π₯) β π(0), π(π‘) ≠ 0 ∴ π(0) = 0 π(π‘) ≠ 0 ∴ π(10) = 0 π(π₯) ≠ 0 ∴ π(0) = 0 Solve the two differential equations: π ′′ = −π → π ′′ + ππ = 0, π πππ₯ ππ = sin ( ), 10 ∞ π(0) = π(10) = 0 ππ 2 π=( ) 10 π ′ (0) = 0 π = ±π√5π π(π‘) = πΆ1 cos(π‘√5π) + πΆ2 sin(π‘√5π) π(0) = πΆ1 = 0 ∴ πΆ1 = 0 π(π‘) = sin(π‘√5π) πππ‘ π(π‘) = sin (√5 ) 10 πππ₯ πππ‘ ππ (π₯, π‘) = sin ( ) sin (√5 ) 10 10 πππ₯ πππ‘ π(π₯, π‘) = ∑ (ππ sin ( ) sin (√5 )) , 10 10 π=0 π ′′ = −π → π ′′ + 5ππ = 0, 5βπ π 2 + 5π = 0 πΏ 2 πππ₯ ππ = ∫ π(π₯) sin ( ) ππ₯ πππ πΏ 0 10 πππ₯ 200(−1)π+1 ππ = ∫ π₯ sin ( ) ππ₯ = 10 π2 π 2 √5 √5ππ 2 0 ∞ π(π₯, π‘) = ∑ ( 200(−1)π+1 π=1 π2 π 2 √5 πππ₯ πππ‘ sin ( ) sin (√5 )) 10 10 0 1 2 3 5 6 7 8/1 4 The wave equation may be asked in a non-standard form which will need a transformation to solve: (0 < π₯ < 2, π¦π‘π‘ (π₯, π‘) = 3π¦π₯π₯ (π₯, π‘) + 2π₯, (0 < π‘) π¦(0, π‘) = π¦(2, π‘) = 0, (0 < π₯ < 2) π¦(π₯, 0) = 0, (0 < π₯ < 2) π¦π‘ (π₯, 0) = 0, 0 < π‘) Use the following transformation: π¦(π₯, π‘) = π€(π₯, π‘) + β(π₯) π¦π‘π‘ = π€π‘π‘ , π€π‘π‘ = 3π€π₯π₯ + 3β′′ (π₯) + 2π₯, π¦π₯π₯ = π€π₯π₯ + β′′ (π₯) 3β′′ (π₯) + 2π₯ = 0, β(π₯) = − π₯3 + πΆπ₯ + π· 9 π¦(0, π‘) = π€(0, π‘) + β(0) = 0, π€(0, π‘) = 0 ∴ β(0) = 0 π¦(2, π‘) = π€(2, π‘) + β(2) = 0, π€(2, π‘) = 0 ∴ β(2) = 0 β(0) = π· = 0, 8 β(2) = − + 2πΆ = 0, 9 4 πΆ= , 9 → β(π₯) = − π¦(π₯, π‘) = π€(π₯, π‘) + β(π₯) = 0 π¦(π₯, π‘) = π€(π₯, π‘) − π₯3 4 π₯3 4 + π₯ = 0 → π€(π₯, 0) = − π₯ 9 9 9 9 π¦π‘ (π₯, 0) = π€π‘ (π₯, π‘) = 0 → π¦π‘ (π₯, 0) = π€π‘ (π₯, 0) = 0 (0 < π₯ < 2, π€π‘π‘ = 3π€π₯π₯ , 0 < π‘) (0 < π‘) π€(0, π‘) = π€(2, π‘) = 0, π₯3 4 (0 < π₯ < 2) π€(π₯, 0) = − π₯, 9 9 (0 < π₯ < 2) π€π‘ (π₯, 0) = 0, π₯3 4 + π₯ 9 9 Another method used to solve the wave equation is by using d’Alembert’s solution. π¦π‘π‘ = π2 π¦π₯π₯ , 0 < π₯ < πΏ, π¦(0, π‘) = π¦(πΏ, π‘) = 0 π¦(π₯, 0) = π(π₯), 0 < π₯ < πΏ, 0 < π₯ < πΏ, {π¦π‘ (π₯, 0) = π(π₯), π‘>0 π‘>0 π‘>0 Problem A: 1 π¦π΄ (π₯, π‘) = [πΉ(π₯ + ππ‘) + πΉ(π₯ − ππ‘)] 2 The πΉ function refers to the odd extension of π, the initial displacement function. This method is effective when the displacement function is requested at a specific timestamp. This is also helpful when evaluating exact points on a string at any time. Problem B: π₯+ππ‘ 1 1 [π»(π₯ + ππ‘) − π»(π₯ − ππ‘)], π¦π΅ (π₯, π‘) = ∫ πΊ(π )ππ = 2π 2π π₯ π»(π₯) = ∫ πΊ(π )ππ π₯−ππ‘ 0 The πΊ function refers to the odd extension of π, the initial velocity function. In the case where both the initial velocity and displacement is non-zero, the solutions to problem A and B may be added together. 1 1 [π»(π₯ + ππ‘) − π»(π₯ − ππ‘)] π¦(π₯, π‘) = [πΉ(π₯ + ππ‘) + πΉ(π₯ − ππ‘)] + 2 2π