Diffusion Equation Separation Of Variables (if you\'re bored)


Published on

Presentation I\'ll have to give on 13th November

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Diffusion Equation Separation Of Variables (if you\'re bored)

  1. 1. The Divergence Theorem of Gauss<br />Using separation of variables to solve the diffusion equation<br />Group 12F<br />Will Maisey, Emily Speed, Rob Lister, Nick Stott<br />
  2. 2. Recap (Heat Equation):<br />The heat equation (a specified type of diffusion equation) is an important partial differential equation which describes the distribution of heat (or variation in temperature) in a given region over time. For a function u(x,y,z,t) of three spatial variables (x,y,z) and the time variable t, the heat equation is;<br />Or equivalently;<br />Where α is a constant.<br />
  3. 3. Guillaume François Antoine, Marquis de l’Hôpital <br />(1661-1704)<br />Guillaume François Antoine a French mathematician, otherwise known as Guillaume de l’Hôpital, was the first to use the method of separation of variables. <br />l&apos;Hôpital was born in Paris, France. He initially had planned a military career, but poor eyesight caused him to switch to mathematics.<br />He solved the brachistochrone problem.<br />His name is perhaps best known for the rule for calculating the limiting value of a fraction whose numerator and denominator either both approach zero or both approach infinity, however, he is presumed not to be the discoverer of the rule.<br />
  4. 4. Guillaume François Antoine, Marquis de l’Hôpital <br />(1661-1704)<br />He is also the author of the first European textbook on differential calculus, l&apos;Analyse des Infiniment Petits pour l&apos;Intelligence des Lignes Courbes. <br />In 1694 he forged a deal with Johann Bernoulli. The deal was that l&apos;Hôpital paid Bernoulli 300 Francs a year to tell him of his discoveries, which l&apos;Hôpital described in his book.<br />In 1704, after l&apos;Hôpital&apos;s death, Bernoulli revealed the deal to the world, claiming that many of the results in l&apos;Hôpital&apos;s book were due to him.<br />The widespread story that l&apos;Hôpital tried to get credit for inventing de l&apos;Hôpital&apos;s rule is false: he published his book anonymously, acknowledged Bernoulli&apos;s help in the introduction, and never claimed to be responsible for the rule.<br />
  5. 5. Separation of Variables:<br />Separation of Variables is a method of solving O.D.Es or P.D.Es, whereby an equation of two variables is ‘separated’ into a product of two equations.<br />This can be split into independent ordinary differential equations which we can solve.<br />u(x,t)<br />X(x)<br />T(t)<br />
  6. 6. Separation of Variables:<br />Once separated and applied to the original equation, the result can be written solely in terms of each variable on either side of the equality sign. This tends to include derivative terms.<br />The only way the equality can hold in terms of different variables is if the two sides are equal to a constant. This is usually denoted λ. <br />X(x) = T(t) = λ<br />
  7. 7. Separation of Variables:<br />This lambda can then be incorporated into each side to form two separate O.D.E’s.<br />X(x) - λ = 0 T(t) - λ = 0<br />The two equations are solved separately. It is important to remember that separation of variables was used at the beginning, and so the two final equations must be written as a product. The final solution is then back in the form u(x,t).<br />
  8. 8. Separation of variables to solve the diffusion equation:<br />The diffusion equation for heat flow is:<br />The question we are posed is:<br />Solving the diffusion equation for temp u(x,t) in a 1d bar with insulated <br />Ends and initial temperature<br />So we will consider the equation<br />With an example similar to that shown opposite <br />
  9. 9. Separation of variables to solve the diffusion equation:<br />Solution:<br />We can re-write U(x,t) = X(x)T(t), <br />x being the space variable [0,L] and t the time variable t ≥ 0<br />So<br />Given substituting U(x,t) into the heat equation we get:<br />So<br />as for two differential equations to be equal they must both equal the same constant, here that is -λ.<br />
  10. 10. Separation of variables to solve the diffusion equation:<br />So <br />For the solution to hold we require λ&gt;0<br />Therefore solving for X we see that:<br />And solving for T we see that:<br />Using our boundary conditions and the fact that we do not require a trivial solution, we can see that:<br />And<br />
  11. 11. Separation of variables to solve the diffusion equation:<br />We can hence see that the general form of U(X,T) is:<br />We can solve for the coefficients, using the initial condition:<br /> to obtain the solution.<br />
  12. 12. Fourier Series:<br />Using Fourier Series, we can determine the coefficients:<br />For n≥1, it would be better solved if we split it into 2 integrals:<br />
  13. 13. Fourier Series:<br />However, first we must determine A0:<br />
  14. 14. Fourier Series:<br />Using the product rule, for the first integral:<br />
  15. 15. Fourier Series:<br />And for the second integral:<br />
  16. 16. Fourier Series:<br />Summing the two together gives us An:<br />So therefore we obtain:<br />
  17. 17. Our Solution:<br />So therefore, we can determine the solution as:<br />The validity of this solution can be checked using Maple, using a sufficient size for L:<br />
  18. 18. Maple:<br />In order to give a graphical representation, we must give L a Numerical value (so Maple can recognise it as a constant). So say, L = 10, and n ranging from 1 to infinity:<br />Inputting into Maple:<br />We obtain: <br />
  19. 19. Maple:<br />Finally, using the plot function:<br />The following graph is produced:<br />This is the function: <br />So as f(x)=g(x) as L=10, the solution <br />is valid.<br />
  20. 20. Thank you for listening<br />