To solve this PDE using separation of variables, let’s assume a solution of the form u(x,t)=X(x)T(t)u(x, t) = X(x)T(t), where X(x)X(x) is a function of xx only, and T(t)T(t) is a function of tt only. Substituting this form into the PDE gives:
Since the left side depends only on xx and the right side depends only on tt, each side must be equal to a constant, which we shall call lambda\lambda. Thus, we have two ordinary differential equations (ODEs):
These lead to exponential solutions for both X(x)X(x) and T(t)T(t). Let’s proceed to find the explicit solutions for X(x)X(x) and T(t)T(t), and apply the initial condition to determine any specific constants.
The solutions to the ordinary differential equations are:
u(x,t)=Ce^(lambda x+((lambda-1)t)/(2))u(x, t) = C e^{\lambda x + \frac{(\lambda – 1)t}{2}}
where C=C_(1)C_(2)C = C_1 C_2 is a constant.
Now, to determine the specific value of lambda\lambda and the constant CC, we apply the initial condition u(x,0)=3e^(-3x)u(x, 0) = 3 e^{-3 x}. Let’s substitute t=0t = 0 into our solution to match the initial condition.
Upon applying the initial condition and aligning our universe of equations, we’ve discovered that lambda=-3\lambda = -3 and C=3C = 3. Therefore, the particular solution to our initial value problem is: