Professor Murray

Professor Murray

Solution of the Heat Equation

Slide Duration:

Table of Contents

Section 1: First-Order Equations
Linear Equations

1h 7m 21s

Intro
0:00
Lesson Objectives
0:19
How to Solve Linear Equations
2:54
Calculate the Integrating Factor
2:58
Changes the Left Side so We Can Integrate Both Sides
3:27
Solving Linear Equations
5:32
Further Notes
6:10
If P(x) is Negative
6:26
Leave Off the Constant
9:38
The C Is Important When Integrating Both Sides of the Equation
9:55
Example 1
10:29
Example 2
22:56
Example 3
36:12
Example 4
39:24
Example 5
44:10
Example 6
56:42
Separable Equations

35m 11s

Intro
0:00
Lesson Objectives
0:19
Some Equations Are Both Linear and Separable So You Can Use Either Technique to Solve Them
1:33
Important to Add C When You Do the Integration
2:27
Example 1
4:28
Example 2
10:45
Example 3
14:43
Example 4
19:21
Example 5
27:23
Slope & Direction Fields

1h 11m 36s

Intro
0:00
Lesson Objectives
0:20
If You Can Manipulate a Differential Equation Into a Certain Form, You Can Draw a Slope Field Also Known as a Direction Field
0:23
How You Do This
0:45
Solution Trajectories
2:49
Never Cross Each Other
3:44
General Solution to the Differential Equation
4:03
Use an Initial Condition to Find Which Solution Trajectory You Want
4:59
Example 1
6:52
Example 2
14:20
Example 3
26:36
Example 4
34:21
Example 5
46:09
Example 6
59:51
Applications, Modeling, & Word Problems of First-Order Equations

1h 5m 19s

Intro
0:00
Lesson Overview
0:38
Mixing
1:00
Population
2:49
Finance
3:22
Set Variables
4:39
Write Differential Equation
6:29
Solve It
10:54
Answer Questions
11:47
Example 1
13:29
Example 2
24:53
Example 3
32:13
Example 4
42:46
Example 5
55:05
Autonomous Equations & Phase Plane Analysis

1h 1m 20s

Intro
0:00
Lesson Overview
0:18
Autonomous Differential Equations Have the Form y' = f(x)
0:21
Phase Plane Analysis
0:48
y' < 0
2:56
y' > 0
3:04
If we Perturb the Equilibrium Solutions
5:51
Equilibrium Solutions
7:44
Solutions Will Return to Stable Equilibria
8:06
Solutions Will Tend Away From Unstable Equilibria
9:32
Semistable Equilibria
10:59
Example 1
11:43
Example 2
15:50
Example 3
28:27
Example 4
31:35
Example 5
43:03
Example 6
49:01
Section 2: Second-Order Equations
Distinct Roots of Second Order Equations

28m 44s

Intro
0:00
Lesson Overview
0:36
Linear Means
0:50
Second-Order
1:15
Homogeneous
1:30
Constant Coefficient
1:55
Solve the Characteristic Equation
2:33
Roots r1 and r2
3:43
To Find c1 and c2, Use Initial Conditions
4:50
Example 1
5:46
Example 2
8:20
Example 3
16:20
Example 4
18:26
Example 5
23:52
Complex Roots of Second Order Equations

31m 49s

Intro
0:00
Lesson Overview
0:15
Sometimes The Characteristic Equation Has Complex Roots
1:12
Example 1
3:21
Example 2
7:42
Example 3
15:25
Example 4
18:59
Example 5
27:52
Repeated Roots & Reduction of Order

43m 2s

Intro
0:00
Lesson Overview
0:23
If the Characteristic Equation Has a Double Root
1:46
Reduction of Order
3:10
Example 1
7:23
Example 2
9:20
Example 3
14:12
Example 4
31:49
Example 5
33:21
Undetermined Coefficients of Inhomogeneous Equations

50m 1s

Intro
0:00
Lesson Overview
0:11
Inhomogeneous Equation Means the Right Hand Side is Not 0 Anymore
0:21
First Solve the Homogeneous Equation
1:04
Find a Particular Solution to the Inhomogeneous Equation Using Undetermined Coefficients
2:03
g(t) vs. Guess for ypar
2:42
If Any Term of Your Guess for ypar Looks Like Any Term of yhom
5:07
Example 1
7:54
Example 2
15:25
Example 3
23:45
Example 4
33:35
Example 5
42:57
Inhomogeneous Equations: Variation of Parameters

49m 22s

Intro
0:00
Lesson Overview
0:31
Inhomogeneous vs. Homogeneous
0:47
First Solve the Homogeneous Equation
1:17
Notice There is No Coefficient in Front of y''
1:27
Find a Particular Solution to the Inhomogeneous Equation Using Variation of Parameters
2:32
How to Solve
4:33
Hint on Solving the System
5:23
Example 1
7:27
Example 2
17:46
Example 3
23:14
Example 4
31:49
Example 5
36:00
Section 3: Series Solutions
Review of Power Series

57m 38s

Intro
0:00
Lesson Overview
0:36
Taylor Series Expansion
0:37
Maclaurin Series
2:36
Common Maclaurin Series to Remember From Calculus
3:35
Radius of Convergence
7:58
Ratio Test
12:05
Example 1
15:18
Example 2
20:02
Example 3
27:32
Example 4
39:33
Example 5
45:42
Series Solutions Near an Ordinary Point

1h 20m 28s

Intro
0:00
Lesson Overview
0:49
Guess a Power Series Solution and Calculate Its Derivatives, Example 1
1:03
Guess a Power Series Solution and Calculate Its Derivatives, Example 2
3:14
Combine the Series
5:00
Match Exponents on x By Shifting Indices
5:11
Match Starting Indices By Pulling Out Initial Terms
5:51
Find a Recurrence Relation on the Coefficients
7:09
Example 1
7:46
Example 2
19:10
Example 3
29:57
Example 4
41:46
Example 5
57:23
Example 6
1:09:12
Euler Equations

24m 42s

Intro
0:00
Lesson Overview
0:11
Euler Equation
0:15
Real, Distinct Roots
2:22
Real, Repeated Roots
2:37
Complex Roots
2:49
Example 1
3:51
Example 2
6:20
Example 3
8:27
Example 4
13:04
Example 5
15:31
Example 6
18:31
Series Solutions

1h 26m 17s

Intro
0:00
Lesson Overview
0:13
Singular Point
1:17
Definition: Pole of Order n
1:58
Pole Of Order n
2:04
Regular Singular Point
3:25
Solving Around Regular Singular Points
7:08
Indical Equation
7:30
If the Difference Between the Roots is An Integer
8:06
If the Difference Between the Roots is Not An Integer
8:29
Example 1
8:47
Example 2
14:57
Example 3
25:40
Example 4
47:23
Example 5
1:09:01
Section 4: Laplace Transform
Laplace Transforms

41m 52s

Intro
0:00
Lesson Overview
0:09
Laplace Transform of a Function f(t)
0:18
Laplace Transform is Linear
1:04
Example 1
1:43
Example 2
18:30
Example 3
22:06
Example 4
28:27
Example 5
33:54
Inverse Laplace Transforms

47m 5s

Intro
0:00
Lesson Overview
0:09
Laplace Transform L{f}
0:13
Run Partial Fractions
0:24
Common Laplace Transforms
1:20
Example 1
3:24
Example 2
9:55
Example 3
14:49
Example 4
22:03
Example 5
33:51
Laplace Transform Initial Value Problems

45m 15s

Intro
0:00
Lesson Overview
0:12
Start With Initial Value Problem
0:14
Take the Laplace Transform of Both Sides of the Differential Equation
0:37
Plug in the Identities
1:20
Take the Inverse Laplace Transform to Find y
2:40
Example 1
4:15
Example 2
11:30
Example 3
17:59
Example 4
24:51
Example 5
36:05
Section 5: Review of Linear Algebra
Review of Linear Algebra

57m 30s

Intro
0:00
Lesson Overview
0:41
Matrix
0:54
Determinants
4:45
3x3 Determinants
5:08
Eigenvalues and Eigenvectors
7:01
Eigenvector
7:48
Eigenvalue
7:54
Lesson Overview
8:17
Characteristic Polynomial
8:47
Find Corresponding Eigenvector
9:03
Example 1
10:19
Example 2
16:49
Example 3
20:52
Example 4
25:34
Example 5
35:05
Section 6: Systems of Equations
Distinct Real Eigenvalues

59m 26s

Intro
0:00
Lesson Overview
1:11
How to Solve Systems
2:48
Find the Eigenvalues and Their Corresponding Eigenvectors
2:50
General Solution
4:30
Use Initial Conditions to Find c1 and c2
4:57
Graphing the Solutions
5:20
Solution Trajectories Tend Towards 0 or ∞ Depending on Whether r1 or r2 are Positive or Negative
6:35
Solution Trajectories Tend Towards the Axis Spanned by the Eigenvector Corresponding to the Larger Eigenvalue
7:27
Example 1
9:05
Example 2
21:06
Example 3
26:38
Example 4
36:40
Example 5
43:26
Example 6
51:33
Complex Eigenvalues

1h 3m 54s

Intro
0:00
Lesson Overview
0:47
Recall That to Solve the System of Linear Differential Equations, We find the Eigenvalues and Eigenvectors
0:52
If the Eigenvalues are Complex, Then They Will Occur in Conjugate Pairs
1:13
Expanding Complex Solutions
2:55
Euler's Formula
2:56
Multiply This Into the Eigenvector, and Separate Into Real and Imaginary Parts
1:18
Graphing Solutions From Complex Eigenvalues
5:34
Example 1
9:03
Example 2
20:48
Example 3
28:34
Example 4
41:28
Example 5
51:21
Repeated Eigenvalues

45m 17s

Intro
0:00
Lesson Overview
0:44
If the Characteristic Equation Has a Repeated Root, Then We First Find the Corresponding Eigenvector
1:14
Find the Generalized Eigenvector
1:25
Solutions from Repeated Eigenvalues
2:22
Form the Two Principal Solutions and the Two General Solution
2:23
Use Initial Conditions to Solve for c1 and c2
3:41
Graphing the Solutions
3:53
Example 1
8:10
Example 2
16:24
Example 3
23:25
Example 4
31:04
Example 5
38:17
Section 7: Inhomogeneous Systems
Undetermined Coefficients for Inhomogeneous Systems

43m 37s

Intro
0:00
Lesson Overview
0:35
First Solve the Corresponding Homogeneous System x'=Ax
0:37
Solving the Inhomogeneous System
2:32
Look for a Single Particular Solution xpar to the Inhomogeneous System
2:36
Plug the Guess Into the System and Solve for the Coefficients
3:27
Add the Homogeneous Solution and the Particular Solution to Get the General Solution
3:52
Example 1
4:49
Example 2
9:30
Example 3
15:54
Example 4
20:39
Example 5
29:43
Example 6
37:41
Variation of Parameters for Inhomogeneous Systems

1h 8m 12s

Intro
0:00
Lesson Overview
0:37
Find Two Solutions to the Homogeneous System
2:04
Look for a Single Particular Solution xpar to the inhomogeneous system as follows
2:59
Solutions by Variation of Parameters
3:35
General Solution and Matrix Inversion
6:35
General Solution
6:41
Hint for Finding Ψ-1
6:58
Example 1
8:13
Example 2
16:23
Example 3
32:23
Example 4
37:34
Example 5
49:00
Section 8: Numerical Techniques
Euler's Method

45m 30s

Intro
0:00
Lesson Overview
0:32
Euler's Method is a Way to Find Numerical Approximations for Initial Value Problems That We Cannot Solve Analytically
0:34
Based on Drawing Lines Along Slopes in a Direction Field
1:18
Formulas for Euler's Method
1:57
Example 1
4:47
Example 2
14:45
Example 3
24:03
Example 4
33:01
Example 5
37:55
Runge-Kutta & The Improved Euler Method

41m 4s

Intro
0:00
Lesson Overview
0:43
Runge-Kutta is Know as the Improved Euler Method
0:46
More Sophisticated Than Euler's Method
1:09
It is the Fundamental Algorithm Used in Most Professional Software to Solve Differential Equations
1:16
Order 2 Runge-Kutta Algorithm
1:45
Runge-Kutta Order 2 Algorithm
2:09
Example 1
4:57
Example 2
10:57
Example 3
19:45
Example 4
24:35
Example 5
31:39
Section 9: Partial Differential Equations
Review of Partial Derivatives

38m 22s

Intro
0:00
Lesson Overview
1:04
Partial Derivative of u with respect to x
1:37
Geometrically, ux Represents the Slope As You Walk in the x-direction on the Surface
2:47
Computing Partial Derivatives
3:46
Algebraically, to Find ux You Treat The Other Variable t as a Constant and Take the Derivative with Respect to x
3:49
Second Partial Derivatives
4:16
Clairaut's Theorem Says that the Two 'Mixed Partials' Are Always Equal
5:21
Example 1
5:34
Example 2
7:40
Example 3
11:17
Example 4
14:23
Example 5
31:55
The Heat Equation

44m 40s

Intro
0:00
Lesson Overview
0:28
Partial Differential Equation
0:33
Most Common Ones
1:17
Boundary Value Problem
1:41
Common Partial Differential Equations
3:41
Heat Equation
4:04
Wave Equation
5:44
Laplace's Equation
7:50
Example 1
8:35
Example 2
14:21
Example 3
21:04
Example 4
25:54
Example 5
35:12
Separation of Variables

57m 44s

Intro
0:00
Lesson Overview
0:26
Separation of Variables is a Technique for Solving Some Partial Differential Equations
0:29
Separation of Variables
2:35
Try to Separate the Variables
2:38
If You Can, Then Both Sides Must Be Constant
2:52
Reorganize These Intro Two Ordinary Differential Equations
3:05
Example 1
4:41
Example 2
11:06
Example 3
18:30
Example 4
25:49
Example 5
32:53
Fourier Series

1h 24m 33s

Intro
0:00
Lesson Overview
0:38
Fourier Series
0:42
Find the Fourier Coefficients by the Formulas
2:05
Notes on Fourier Series
3:34
Formula Simplifies
3:35
Function Must be Periodic
4:23
Even and Odd Functions
5:37
Definition
5:45
Examples
6:03
Even and Odd Functions and Fourier Series
9:47
If f is Even
9:52
If f is Odd
11:29
Extending Functions
12:46
If We Want a Cosine Series
14:13
If We Wants a Sine Series
15:20
Example 1
17:39
Example 2
43:23
Example 3
51:14
Example 4
1:01:52
Example 5
1:11:53
Solution of the Heat Equation

47m 41s

Intro
0:00
Lesson Overview
0:22
Solving the Heat Equation
1:03
Procedure for the Heat Equation
3:29
Extend So That its Fourier Series Will Have Only Sines
3:57
Find the Fourier Series for f(x)
4:19
Example 1
5:21
Example 2
8:08
Example 3
17:42
Example 4
25:13
Example 5
28:53
Example 6
42:22
Loading...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Differential Equations
Bookmark & Share Embed

Share this knowledge with your friends!

Copy & Paste this embed code into your website’s HTML

Please ensure that your website editor is in text mode when you paste the code.
(In Wordpress, the mode button is on the top right corner.)
  ×
  • - Allow users to view the embedded video in full-size.
Since this lesson is not free, only the preview will appear on your website.
  • Discussion

  • Answer Engine

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Transcription

  • Related Books

Lecture Comments (18)

1 answer

Last reply by: Dr. William Murray
Mon May 28, 2018 11:03 AM

Post by Adam Prieto on May 26, 2018

Dear Dr. Murray,
I have just finished all of your lectures in the Differential Equations course here on Educator and loved every minute of it. In addition to taking the time to explain these difficult topics in a way that students can easily understand, you did a great job of showing us how the Calculus and Linear Algebra courses we took previously really comes in handy when studying Differential Equations; the course was fantastic! I especially liked how you gave us a taste of what’s to be offered down the road in Partial Differential Equations with this last unit. Out of curiosity, have you considered making a Partial Differential Equations course here on Educator.com? I’m sure it’d be a great follow up to Ordinary Differential Equations as well as give us an excuse to come back and continue our mathematical career with you as our online lecturer. Either way, I’d personally like to thank you for helping me through this course as well helping me earn an “A” in my Differential Equations course at my university.
Respectfully,
Adam P.      

1 answer

Last reply by: Dr. William Murray
Mon Jan 11, 2016 6:27 PM

Post by Joseph Szmulewicz on January 9, 2016

Dear Dr. Murray,

  I have watched both the probability and differential equations courses and they are both great! You explained the concepts very well. Question. Do you have any plans to create a new course for Educator.com in the future? If so, I would like to make a suggestion. Math for quantum mechanics. thanks

regards,

Joe

3 answers

Last reply by: Dr. William Murray
Mon Aug 17, 2015 10:10 AM

Post by Muhammad Asad Ullah MOAVIA on August 13, 2015

Dear Professor William Murry,
Thank you so much for providing an amazing mathematics courses. I was very weak in differential equation and in probability and I have solved all my problems through your courses. I will always remember you in my prayers! Dear Professor, I have one question to you. If you provide a real analysis course through educator.com, it would be very nice of you. As I know you are connoisseur in the field of mathematics, at least you would guide me in real analysis course. As for me, I am doing my M.Phil in economic policy. I am keen to learn the game theory, so for game theory is concerned, it is all about real analysis and optimization. I am good in optimization, but very poor in real analysis. I am looking forward to hear from you soon.
Cordially,
Assad
Turkey

1 answer

Last reply by: Dr. William Murray
Wed May 6, 2015 8:54 PM

Post by Alexander Guevara on May 4, 2015

HI Dr. Murray, do you have tutorial on Sturm Liouville?

1 answer

Last reply by: Dr. William Murray
Sun Jan 4, 2015 7:41 PM

Post by John Nash on December 31, 2014

Happy New Year Sir,

You have been of great help for my differential equations course I have taken this semester.

1 answer

Last reply by: Dr. William Murray
Mon Dec 15, 2014 1:19 PM

Post by suzanne El Shafei on December 12, 2014

Hi there,

I have a question I am trying to solve but my initial conditions are f(x)=100x 0<x<2
   =100(4-x) 2<x<4

How would you suggest i set this up for the integration can i have an integral over 100x only?

1 answer

Last reply by: Dr. William Murray
Tue Dec 10, 2013 11:47 PM

Post by Edward Arreguin on December 9, 2013

Can you make videos on the solution for the insulated rod and the steady state solution?

1 answer

Last reply by: Dr. William Murray
Wed Nov 20, 2013 9:55 AM

Post by Satendra Guru on November 12, 2013

I am confussed when you arrive at the 2n+1 for odd numbers?  Can you explain this better.

Thanks,

Solution of the Heat Equation

Solution of the Heat Equation (PDF)

Solution of the Heat Equation

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Lesson Overview 0:22
  • Solving the Heat Equation 1:03
  • Procedure for the Heat Equation 3:29
    • Extend So That its Fourier Series Will Have Only Sines
    • Find the Fourier Series for f(x)
  • Example 1 5:21
  • Example 2 8:08
  • Example 3 17:42
  • Example 4 25:13
  • Example 5 28:53
  • Example 6 42:22

Transcription: Solution of the Heat Equation

Hi and welcome back to the differential equations lectures here on www.educator.com, my name is Will Murray and we are studying partial differential equations.0000

What we are going to do in this lecture is solve the heat equation we are going to combine everything we learned about Fourier series and separation of variables, put it all together and get an actual solution to the heat equation.0009

Let us see how that works out, we are going to solve the heat equation and its boundary and initial conditions, I will just remind you that this was the PDE that we started with.0021

PDE stands for partial differential equation and we had these two boundary conditions U(0t)=0 and U(Lt)=0 and those are the boundary conditions and then we had this initial condition which told us what happened when we plugged in t=0.0030

That represented the initial distribution of heat along this rod, let us see what the progress that we have made so far, we started to solve this using separation of variables that was in an earlier lectures, you will see one called separation of variables.0053

We did a lot of work back in this earlier lecture and we got a general solution to both the partial differential equation and it also match the boundary conditions.0070

And this what we got U(Xt)= a series b(n) x sin(n) π(x)/L and then this fairly complicated expression e^-(n^2 π^2 α^2)t/L^2.0082

This looks very complicated but it is actually very formulaic, in particular all of these constants comes straight out of the differential equation, for example the α^2 comes straight from the differential equations, you can just drop that in.0098

Same with the L, straight from the differential equations, you can just drop that in, this is very formulaic, all you have to do is just drop in the constants, the only part here that we have not figured out yet is the (bn).0113

That is the part they we are going to focus on in this lecture, what we try to do here is we try to match the initial condition, I said we already got a solution, this solution the we just found is it already matches the partial differential equation.0128

And it matches the boundary conditions, the only part that it does not necessarily match yet is the initial condition, which is that U(x0) should be equal to f(x), let us see what that means when you plug in t=0 into our solution.0143

That means you are plugging in 0 here, which means you are just getting e^0 which is 1, all of those e terms just turn into 1 and what we got is the sum of (bn) x sin(n π(x)/L)=f(x).0160

What you see here is that is exactly a Fourier series, that is why we did all that work in the previous lecture learning about Fourier series is because we are going to use it right now, we need to expand f(x) into a Fourier series.0177

We want a Fourier series which uses only sines and we want to find those coefficients (bn) by finding a Fourier series for f(x) that uses only sines, let me show you what the procedure is.0195

Remember that you are given f(x), it will be defined between 0 and L because that represented the initial distribution of heat in this rod and we assumed that the left hand under the rod was 0.0211

The right hand end of the rod was L and that f(x) is defined between 0 and L, what we want to do is extend it to -L, and extended to be an odd function and the reason for that is that then we know that it is a Fourier series we will have only sines.0230

That is something we learned out in the previous lectures, if you have not just watch the previous lecture on Fourier series, this is where we are using it, you might want go back and check that previous lecture.0251

Then we are going to find the Fourier series for f(x) and we figured out when you have an odd function, it will be easier to find the Fourier series that it is for general functions, just have this (bn) is equal to 2/L x the integral from 0 to L of f(x) x sin((n π(x)/L(dx)).0260

That tells you what the (bn) is, all you do is you take that (bn) and you drop it back in to our general solution to the heat equation, you just take this BN, drop it back in right here and everything else like I said is predetermined from the differential equation.0281

You got the L, the α^2 from the differential equation, everything else just comes straight out the differential equation, the only work here is finding the (bn).0298

You are going to have to do some integration to find the (bn) but everything else just follows from all the work we have done in the previous lectures, let us go ahead and see how those work out.0307

I broke it up into several steps over various examples here, we are not going to solve the whole thing from scratch in the first example, we are just going to start with the boundary value problem.0322

What are we doing in this first example is we will extend the initial function f(x) to be an odd function.0333

The initial function is f(x)=3 that is define from 0 to L=3, let me make my graph and there is 3, there is 0, there is -3 and the function we are given is just as f(x) is equal to 3, between 0 and 3.0342

What we want to do is extend that to be an odd function, remember odd functions have rotational symmetry, if you rotate them 180° around the origin then they should look the same.0369

What we are going to do is extend that from -3 to 0 and we will extend it in such a way that it has rotational symmetry, we will define f(x) to be equal to, well we are given that it is 3, if 0 is less than or equal to x , is less than or equal to 3.0385

We will extend it to be, there is 3, there is -3, we will extend it to be -3, if -3 is less than x, less than 0, that way f(-x)=-f(x), we will get an odd function there.0409

The point of doing that of course is that later on it is Fourier series we use only sines, this is an odd function.0437

Just a recap here, we are not completely solving our partial differential equation yet, we are just doing the first step which is to take the initial function and extend it, that is the initial function we are given and there is our extension.0448

Extending it in such a way that it will be an odd function, an odd function has rotational symmetry that means if it is +3 on a positive set of x values, we are going to make it -3 on the negative set of x values.0464

This 3 was given to us, this -3 is our contribution in this problem, example 2, we are going to keep going with a function we justified in example 1, this all came from example 1.0481

What we want to do here is to find a Fourier series that uses only sines, let me remind you of our formula for Fourier coefficients, BN is equal to 2/L, integral from 0 to L and of f(x) x sin(n π(x)/L)d/x.0505

Let us work that out for this function, our (BN) is equal to, our L =3, that is our L right there, our (BN) =2/3 x the integral from 0 to 3.0532

Our f(x) between 0 and 3 is just 3 x sin(n π(x/L), our L is still 3, (dx), we just have to work out this integral which is not too bad, it is 2/3, actually the 2/3 and then we still have another 3 from the inside.0551

The integral of sine is -cosine, -cos of, I should have put n(π x/3), n(pix/3) x 3/n(π), that is the chain rule coming through there and then we have to evaluate this from x=0 to x=3.0580

Let me simplify my coefficients a bit, 2/3 x 3 is 2 and then that times 3 is a 6/n(π), if we plug in x=3 there, we have -cos(n π) - -1, +1.0612

1 - cos(n π) there and we figured out in the previous lecture a little formula for cos(n π), I figured it out real quick right now, cos(0) is 1, cos(π) is -1, cos(2pi) is 1, cos(3pi) is -1.0650

cos(n π) is 1 if n is even and -1 if n is odd, what we have here is 6/n(π), now -cos(n π) if n is even then cos(n π) will be 1, we will get 1 - 1, this will be 0 if n is even.0677

If n is odd then this would be -1, 1 - -1, 1 + 1 would be 2, if n is odd, of course we are multiplying that by 6/n π, this is all equal to, if I have to write a couple cases here 6x 2 is 12/n(π).0718

If n is odd, still 0 if n is even, our Fourier series of x, let me remind you of the general formula for Fourier series, I'm not going to write the (an) and the cosine terms because we know we are dealing with an odd function here.0745

There will be no cosine terms, our Fourier series of x, I'm just going to write the sign terms n=1 to infinity(bn) sin(n π) x/L, that is our generic form for a Fourier series.0770

Let me plug in the (BN ) that I just arrived here, b1 is 12/π, 12/π x sin of n is 1 π(x)/3, L is 3, b2 is 0, I will go ahead and write the 0, B3 is 12/3 π, I do not think I will simplify that, I think it will be easier to see a pattern.0790

sin(3pi(x)/3) + 0 + 12/5pi sin(5pi)x/3 and so on, we just write that 1 more time without the 0s, 12/π sin, I think I could factor out a π, maybe I will leave it in there.0824

sin(π x/3)+ 12 over 3 π, sin(3pix/3) + 12/5pi, sin(5pi/3) and that is certainly enough to get the pattern and see how it would continue from there, that is our Fourier series for the function.0855

Let me recap how we derived that, we use our generic Fourier series formula BN is equal to 2/L times the integral from 0 to L of f(x) sin(n pix/L), that is our Fourier series formula when we know that the function is odd.0892

Of course we define this function to be odd because we wanted to get a sine series, that is our (BN) and of course we know that the (an's) are all 0 for odd functions, we don't have to worry about the An's.0911

I just plugged in my values here, L is 3, there is the L everywhere there, now this three came from this three right here, that was our definition of F, we had to do an integral there, we get 2/3 × 3 which was 6, 2/3 × 3 was 2.0924

And then an extra three and there is what gave us the 6, the integral sin(n π(x)/3) is negative cosine of n(π)x/3, but we got a multiply by 3/n(π), that's why that 3/n(π) came out of.0948

I plugged in X equals 3, we got -cos(n π )plugged in X equal 0, we get the cosine of 0 is just 1, we get 6/n(π) x over and high times the negative cosine n π +1 and I was trying to remember a formula for cosine(n π).0967

When we came up with this it is -1 if n is odd, 1 if n is even and if N is even, the 1s cancel each other out and we just get 0, if n is odd you get 1 minus -1, we get 2 here and BN is 2 times 6/n π, 12/n(π) for odd n's and 0 if n is even.0983

Now that's my (BN), I'm going to drop that back into a Fourier series which means I take those coefficients and I just multiply each 1 by sin(n π)x/L, the even ones all give me 0 and the odd ones give me 12/n(π).1010

There is 12/1(π), 12/3(π), 12/5(π) and so on, we get just by simplifying that 12/π times sin(pix)/3, 12/3pi sin(3pi)x/3, 12/5(π) x sin(5pi)x/3, that is my Fourier sin series for that initial function.1026

We still have not solve the partial differential equations but we are very close now that we got the (BN), essentially we are just going to drop them into our generic formula and we will have the solution to the partial differential equation.1048

In example 3, we are actually going to solve the boundary value problem starting with the partial differential equation, UT=α^2 Ux(x), that is our heat equation.1063

We had 2 boundary conditions and we have 1 initial condition and we done all the work for this already, we really do not need to do any more work in this 1 we just need to take our answers and drop them in to our generic formula.1074

I will remind you what we figured out in example 2, I believe it was, I you have not just watched example 2, maybe check back and look at example 2 and you'll see that we figured out that our (bn) we are (bn) was 12/n π.1094

If n was odd, just 0 if n is even and we can just take those BN's and plug them into our general formula for the solution of the heat equation, it is a little messy but it is not hard at all.1113

Our general formula is U(XT) is equal to the sum from n= 1 to infinity of (BN) sin(n π)x/L x e^-(n^2 π^2 α^2t)/L^2, what have we been given here we been given that L is equal to 3.1133

Where will I see an L, I'm going to plug in 3 and we have not been given α ^2, I'm just going to leave that as α ^2, but we have been given what BN is, well we have not been given that if we figured it out in example 1.1169

Let me drop in my (BN) from example 2 that is, let me drop in my (bn) from example 2, all the even ones are 0 and I'm going to fill in the odd ones here, this is for n=1, we get 12 /π sin(π)x/3, e^-π ^2 α ^2 T / 9 because that L^2.1187

Now n= 2 gives us 0 for n equal 3 we get 12/n π, 12/3pi sin(3pi)x / 3 x e^-, n^2 is 9, I'm just going to leave that as 9 even though it does cancel, but I think it is easier to spot a pattern if we do not cancel it.1218

9pi ^2 n^2 π ^2 α ^2 t / L^2 was 9 and the next even term is still 0, 12/5pi sin(5pi)x/ 3 x e^-20 π^2 α^2t / 9 and it keeps going like that.1247

I see that I got this pattern of odd numbers building up 1, 3, 5 and in my e's I got 1, 9 and 25, those are the squares of the odd numbers, I know there is a way to keep track of odd numbers which is to keep track of 2n + 1.1278

If you start summing from n=0 , 2n+ 1 will give you all the odd numbers, let me we write a close form expression for that.1297

The sum from n equal 0 to infinity of 12/the odd number x π, 2n + 1 x π sine of odd number x π/x 2n + 1 x π/x/ 3, 3 in all of those, e^negative, now odd number ^2, 2n + 1^2 π^2 α ^2t and there was a 9 in all of those and that is what I have.1304

Congratulations if you made it this far with me because together we have solved our very first heat equation, our very first partial differential equation took for it 4 lectures to do it, it is quite a lot of work we went into that.1354

But at the very end it is pretty straightforward because we done all the work in previous examples, in particular in example 2 we found our (BN) was 12/n π if n is odd, 0 if n is even and we had this generic formula.1372

This is coming out of the previous lecture, it was coming out of 2 lectures ago, lecture on separation of variables, we had this generic formula for the solution of a heat equation was (bn) sin(n π)s/L e^-n^2 π ^2 α^2 T/L^2.1390

We know all those constants, we do not know the α ^2 because it was just left generic in the equation but we know that L is equal to 3 and we figured out the (bn) in example 2, I drop those in here.1422

There is my n= 1 term, n=2, in fact all the even ones are 0, they are sort of a missing 0 in each of these where I just dropped out all the even terms, there is n= 3, there is n=5.1436

And then I figured out that I can index my numbers differently if I use 2n + 1 to keep track of odd numbers then I can add them up for n=0 again, wherever you see an odd number above I change it to 2n + 1.1449

12 / 1, 3, 5 is 2n + 1 π sin(1, 3, 5) is 2n + 1 π(x) /3 and then 1, there is a 1 there, there is 1 there, 1, 9 and 25 is 2n + 1 ^2 π ^2 α ^2 T / 9 gives you the last ingredient to the solution there.1494

That at long last really is the solution to our very first heat equation, in the next series of examples, we are going to build up the solution to another heat equation and then we are going to draw a big sigh of relief.1495

Let us keep going here, in example 4 we are going to consider the boundary value problem below, UT(t) is equal to 4U(xx), by the way that means that the four is α ^2.1510

We got a couple boundary conditions here, U(0T) is 0, U(4t) is 0, by the way that means that L is equal 4 and U(x0) is equal to x, that is our initial condition and that is defined from 0 to 4, 0 to L.1527

The first part of solving this boundary value problem is just to extend the initial function to be an odd function, that is all we have to do right now and then in the next couple of examples we will put the other elements together.1555

The Fourier series in the general solution to get a complete solution to this partial differential equation, right now we just have to extend the initial function to be an odd function and that really not very hard.1569

Let me graph what we are looking at, this is 4, this is 0, the function we are looking at is f(x) = x from 0 to 4 and we wanted to be in odd function which means we are going to extend it on to the domain going back to -4.1585

Since we remember odd functions have rotational symmetry around the origin and we want to define this in such a way that gives us that rotational symmetry around the origin.1609

It is easy to see that if I just extended as a line back like that then that would give me that nice rotational symmetry and of course that line back there is also the line in y=x.1623

All I have to do is define f(x) to be x and instead of going just from 0 to 4, I'm going to run it now from -4 to four.1637

That is my extension and that is an odd function, all we did there, we have not solve the differential equation, we have not gone through the Fourier series business yet, we are going to do that in the next example.1652

We are going to solve this problem in the next example, all we did at this point was we looked at that initial function there and we know we want a Fourier sine series at the next step.1672

But at this step we just want to extend that to be an odd function, when we do find the Fourier series we will get all sines, we just looked at the graph of it f(x) = x.1686

And then in order to extend it to have rotational symmetry, we just extended it back and it turned out that it was still just y=x.1698

Instead of defining it from 0 to 4, I can define it from -4 to 4 and I will get my odd function ,I'm going to carry that over, we are going to use this same boundary value problem for the next couple of examples to find a Fourier series.1709

And then to use the Fourier series to actually solve the partial differential equation, the whole boundary value problem, let us look at example 5, for example 5 we are going to find a Fourier sine series for the initial function from the example above.1724

The nice thing is that we got an odd function here, we defined that back in example 4 to be an odd function, I know that I'm going to get of a Fourier series that involves only sines, it means I do not have to worry about the cosines at all know.1742

No (an) just (bn), let me remind you of the formula for (bn), BN when you have an odd function is 2/L x the integral from 0 to L of f(x) x sin(n π)x /L(DX) and we already figured out what L is.1758

Let me go ahead and drop that in our (BN), our L was 4 and 2/4 is better known as 1/2, the integral from 0 to 4, f(x) is just x, so x x sin(n π)x /4 DX, that is my (BN).1788

By the way you might remember another formula for Fourier series, where we had (BN) is equal to 1 / L the integral from -L to L and then the same stuff after that, the reason we simplify that is because we know that f(x) is an odd function.1814

If f(x) is an odd function, we have some symmetry, which can run that integral from 0 to L and multiply it by 2, now I want to solve that integral of course that means I have to do integration by parts.1831

If you are rusty on integration by parts we got some lectures in a different series here on www.educator.com, there is a calculus 2 series, it is also called the calculus BC where we have a whole lecture on integration by parts.1846

I'm assuming that you already know integration by parts, I'm going to go through a kind of quickly using the little shorthand trick that I covered in those lectures back in the calculus 2.1862

It is called tabular integration sin X x sin(n π)x/4, tabular integration you write derivatives on the left, derivative X is 1, derivative 1 is 0 and then integrals on the right and the integral of sin(n π)x/4 is -cos(n π)x/4.1873

It is -cos(n π)x/4 except that I have to multiply that by 4/n(π) by the chain rule, we multiply that by 4/n(π), my π got a little messy there.1909

4/n π and then I had to do 1 more integral there, the integral of cos is sin(n π)x/4 but I still have a negative here and I have to multiply by another 4/n(π), I get 16/n^2 π^2 and then I write this little diagonal lines.1939

Alternating signs +, - and what I see here is I got a 1/2, that still same half from the outside and I got -4x/n(π), I'm multiplying along the diagonal lines and this tabular integration.1971

4x/n(π) cos(n π)x/ 4 minus -, let us see, I forgot my negative sign here there should be a negative here, +16 / n^2 π ^2 sin(n π)x/4, I multiply along that diagonal line there and I have to evaluate this from x=0, 2X = 4.1988

That is going to be a little bit messy but it is what is nice about it is a lot of the terms go way quickly, in particular this sin term if we plug in x=4 in the sin term, we will get sin(n π) that is just 0 and if we plug inx=0 we will get sin(0) that is just 0.2043

The sin term is going to go away to 0 on both limits there, this is pretty nice, I'm going to combine my 1/2 of my -4x /n(π), I get -2/n(π).2062

Now I have got a cos( n π)x/4, that cos(n π) when I plug in x=4, that cos(4pi)x/4n(π)/4, cos(n π), when I plug in 0, there is also an X there, I also have a 4 there, when I plug in x=0, that x turns it in to 0.2083

We just get -0 there and then I said before, the sin terms will give you 0, those dropout right away and it looks like what I have here is -2 x 4 is -8/n(π).2133

Now cos(n π) we figured out a nice formula for that, cos(n π),let us see, let me write down the first couple terms there, cos(0) is 1, cos(π) is -1, cos(2pi) is 1 again, cos(3pi) is -1.2151

They are alternating between 1 and -1, cos(n π) is -1^n, -a/ n(π) x -1^n and that is my formula for BN and I guess I could simplify that a little bit by combining that negative in with the -1^n.2181

That is -1^n + 1 x 8/n(π), my Fourier series, our general formula for Fourier series, I will go ahead and write the whole formula, a0/2 + the sum from n=1 to infinity of (an)cos(n π)x/L, n(π)x/L + (bn)sin(n π)x/L.2205

However when we we said when we have an odd function and we designed this function to be odd, that makes all the the cos terms dropout which means all the a terms dropout.2248

a0 is 0 and all the cos terms are 0 because F(x) is an odd function, that means we just have to focus on the BN's and we figured out our BN it is -1^n+1 8/n(π).2261

I can factor out the a/π, I think I can do that, I will get a/π x the sum from n =1 to infinity, the rest of my (bn) I can not factor it out because it is got n's in it.2294

-1^n +1/n, and sin(n π)x, my L was 4, n(π)x over, I'm going to go ahead and change that L to a 4 and that is my Fourier series for F(x), still have not used it to solve with the differential equation yet.2312

We got a pretty close we would not have to do very much work to use this to solve the differential equation, let me just recap the steps that we did to get this Fourier series, we start out with a function F(x) = x which is an odd function.2339

Which means I know when I do my Fourier series, I would not have to do my general formula here, 1/ L x the integral from -L to L, I can use my specialized formula 2/ L x the integral from 0 to L.2354

It is such a little bit easier, makes it a little bit less messy, I plug in L=4, that is where I got 4 here, 2/4 is where I got that 1/2 here, L =4 here.2368

That x came from this x right here, that is where we got that x and then clearly that is the integration by parts problem, remembering what I learned from the integration by parts lecture in the calculus 2 lectures here on www.educator.com.2384

I set up my tabular integration x and sin(n π)x/4, wrote my derivatives here, wrote my integrals on the side, set up alternating signs positive and negative, multiply down diagonals and got this horrific expression.2404

Which turned out not to be so horrific because I know when I plug-in X =4 and x= 0, all the sin terms go to 0, the cos terms, well the X = 0 term, the cos term goes to 0 because of that x.2421

The X =4 term, that half and that 4/n(π) that is how I got the 2/n(π) and the X is where I got that 4 right there, that is where that 4 came from and we got cos(n π), of course that came from there.2438

And cos(n π) I figured out this nice formula for cos(n π) is just -1^n, this turn into the 2 and the 4 gave me 8 and I get -1^n x -1 gives me -1^n + 1 x 8/n π and that is my BN for my Fourier series.2458

Here is the generic formula for Fourier series and I do not have to worry about any of the A's because F(x) was an odd function, we extended f(x) to be an odd function precisely because we wanted to get a Fourier series involving only sines.2482

That means all of the A's disappear and go to 0 and then we just drop in what we figured out for BN's, I drop that and right there and I factored out the a/π, I can pull it out because it does not have an n in it and I just copy down sin(n π)x/L=4.2498

That is my Fourier series for the initial function F(x) still have not solved the partial differential equation the, full boundary value problem but I'm very close here, essentially there is no more work to do, I'm just going to carry these coefficients over from the Fourier series.2517

And drop them into the generic solution of the boundary value problem, that is our last example, let us go ahead and jump to that, example 6 we will solve the boundary value problem that we first met in example 4.2534

We did most of the work here in examples 4 and 5, example 6 we are just going to drop in the answers the we got from the 4th, let me remind you what we figured out earlier.2550

We figured out in example 5 it was, that we found those coefficients bn and what we got was -1 to the n +1× 8/n(π).2564

Let me remind you of the general solution to the heat equation which we worked out a couple of lectures ago but I reminded you at the beginning of this lecture what the general solution was, that is fairly complicated formula.2587

Some from n=1 to infinity of BN, it looks like the Fourier series for sin(n π)x/L but then there is also this t term, e^-n ^2 π^2 α^2t/L ^2 , rather complicated but the good news here is we already figured out all the numbers here.2606

We really do not have to do any more work, we are just plugging things in, what we figured out is that L = 4 that came from here, we figured out that α ^2 is 4, that came from here there is my α^2.2634

We got BN, we figure that out in example 5, quite a bit of work to figure that out, that is probably the most work in the problem is actually finding those Fourier coefficients and I think that is all we need, we can plug everything in here.2651

I'm going to go ahead and factor out an a/π because that is the same everywhere, a/π from the BN, now we got -1^n + 1/n sin(n π)x/4.2665

Now α ^2 is 4 L^2 is 16 so I can simplify that a little bit, adjust it to 1/4 e^-n^2 π^2, I'm going to combine my 4 and my 16 into the denominator of 4 and that is all I have.2688

That is my complete solution to that boundary value problem that is solution to the differential equation and the 2 boundary conditions and the initial condition and it only took us 4 lectures to get that.2716

Let me recap that, we got α^2 is = 4 here, we essentially done all the hard work of solving this problem in the previous example, if you have not just watched example 5, that is where I got the BN is -1^n +1 x 8/n(π).2737

I did not figure that out right here, that is just not a guess, that came from doing a lot of integration and some work with a Fourier series in the previous problem, having found that.2755

However I can just take that BN and drop that into my generic formula for the solution to the heat equation which we derived several lectures ago, bn sin(n π)x/L e^n^2 π^2 α^2 t^L^2.2764

Our L is 4, we get that from the problem here so we get 16 in the denominator there α ^2 is 4, that is there, 4/16 is is where I got this 4 in the denominator, those terms are both coming from BN and I factored out the 8/π because that did not depend on n.2782

Here I plugged in L=-4 and here I plug in what I know α ^2 is 4 and L ^2 is 16, that is our complete solution to that partial differential equation and to the boundary value problem.2806

That is the end of our lecture on solving the heat equation, you should know how to solve the heat equation now and that actually wraps up this chapter on partial differential equations and that wraps up this whole set of lectures on differential equations.2825

It has been a long journey but I really appreciate your watching these lectures and joining me, I have had a lot of fun talking about differential equations and I hope they go well for you.2842

Just to remind you these are the differential equations lectures on www.educator.com. My name is Will Murray and I really want to thank you for sticking with me through all the lectures, bye.2852

Educator®

Please sign in to participate in this lecture discussion.

Resetting Your Password?
OR

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Membership Overview

  • Available 24/7. Unlimited Access to Our Entire Library.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lecture slides for taking notes.
  • Track your course viewing progress.
  • Accessible anytime, anywhere with our Android and iOS apps.