@LCKurtz
Success, heh! Turned out the deadline was today at 12:00. Funny how a sudden panic can push things to happen.
I've identified the two parts that confused me.
First of all, I was under the impression that as ##t → ∞## the function ##T(x,t)## should tend to a flat average value since any real life thermal situation should generally involve a final equilibrium temperature which is uniform across the object. It then occurred to me that the given problem has
fixed temperatures at each end, ##T(0,t) = 0## and ##T(L,t) = T_0##, so of course it won't result in some flat line. I was entering all sorts into Mathematica 'Manipulate' functions and watching it result in some line ##\frac{x}{L}## as I let ##t → ∞## . It suddenly occurred to me that this
should be the case, heh, so I moved on to working out what the correct maths should be.
First I discovered this:
http://tutorial.math.lamar.edu/Classes/DE/HeatEqnNonZero.aspx#ZEqnNum497179 , a page explaining the thermal diffusion equation for non-homogeneous conditions, which I stared at and looked over for a very long time before realising the very, very obvious thing I was missing : ##Θ(x,0)## is a Fourier series with coefficients
defined by ##f(x)-\frac{T_0x}{L}##
So, for closure (and if you're interested), here's what I did.
Since ##Θ(x,t)## obeyed the diffusion equation, I used the solution
##Θ(x,t)=A_0 + \sum\limits_{n=1}^∞ A(t)sin(\frac{nπx}{L})##
which I plugged into the diffusion equation and solved for ##A(t)## to give
##Θ(x,t)=A_0 + \sum\limits_{n=1}^∞ A_ne^{-D(\frac{nπ}{L})^2t}sin(\frac{nπx}{L})##
Boundary conditions meant that ##A_0 = 0##
And, the real 'Eureka' moment...
When ##t=0## it was already shown that
##Θ(x,0) = f(x) + \frac{T_0x}{L}##
where ##f(x)## is the temperature distribution at ##t=0## and looked very similar to a previous problem in the assignment.
Now ##Θ(x,t)## had just been found as ##Θ(x,t) = \sum\limits_{n=1}^∞ A_ne^{-D(\frac{nπ}{L})^2t}sin(\frac{nπx}{L})##
which means
##\sum\limits_{n=1}^∞ A_ne^{-D(\frac{nπ}{L})^2t}sin(\frac{nπx}{L}) = f(x) + \frac{T_0x}{L}##
and this is nothing other than a basic Fourier series situation with coefficient:
##A_n = \int_0^L \! \Big(f(x) + \frac{T_0x}{L}\Big)sin(\frac{nπx}{L}) \, \mathrm{d}x##
##f(x)## is the temperature distribution at ##t=0## which is defined as:
##0## for ##0<x<a##
##T_0\frac{x-a}{L-a}## for ##a<x<L##
which mirrored a problem I had previously tackled with a relatively ugly solution so I shan't show it here.
Then all that needed to be done was the integral for ##A_n## which again looked ugly but consisted primarily of ##sin^2(x)## and ##x sin(x)## parts which are not too hard to manage, if not a little finicky with all those constants and variables bunged in.
The final answer then came to:
##T(x,t) = Θ(x,t) +\frac{T_0x}{L}##
##T(x,t) = \frac{T_0x}{L} + \sum\limits_{n=1}^∞ \Bigg[\Bigg(\frac{2}{L}\bigg(\frac{-L}{nπ}cos(nπ) - (\frac{L}{nπ})^2\frac{1}{L-a}sin(\frac{nπa}{L})\bigg) + \frac{2}{nπ}cos(nπ)\Bigg)sin(\frac{nπx}{L})e^{-D(\frac{nπ}{L})^2t}\Bigg]##
There may be typos along the way here but overall the main solution was one that shows the distribution described above for ##t=0## which tends to a straight line of the form ##\frac{T_0x}{L}## as ##t → ∞##
For the ultimate check, the following Mathematica code will give a manipulable plot to demonstrate it:
An = 2/L (-L/(n Pi) Cos[n Pi] - (L/(n Pi))^2 1/(L - a) Sin[n Pi a/L]);
Bn = AAAn + 2/(n Pi) Cos[n Pi];
a = 1; L = 5;
Manipulate[Plot[x/L + \!\(
\*UnderoverscriptBox[\(\[Sum]\), \(n = 1\), \(20\)]\(Bn\ Sin[n\ Pi\
\*FractionBox[\(x\), \(L\)]]
\*SuperscriptBox[\(E\), \(\(-
\*SuperscriptBox[\((n\
\*FractionBox[\(Pi\), \(L\)])\), \(2\)]\) t\)]\)\), {x, 0, 5}], {t, 0,
5}]
I just hope I didn't go disastrously wrong with my logic here...



