First, I define a constant I'll use later:
eyng = (1/(1 + 0.25*Sin[2 Pi y]))^2;
cfec = 1/\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(1\)]\(\((
\*FractionBox[\(1\), \(eyng\)])\) \[DifferentialD]y\)\)
Then I try to solve the following PDE following a similar idea to this:
wqn = D[u[t, x], {t, 2}] == cfec*D[u[t, x], {x, 2}] + Exp[-t]
bc1 = {u[t, x] == 0, x == 0};
bc2 = {u[t, x] == 0, x == 1};
ic1 = {u[t, x] == 0, t == 0};
ic2 = {Derivative[1, 0][u][x, 0] == 0};
sol = DSolveValue[{wqn, ic1, ic2, bc1, bc2}, u[t, x], {t, x}]
However, Mathematica doesn't really solve the problem, it just rewrites it, and I'm not sure what I'm doing wrong. I need to plot the solution to it at a fixed t, then compare it with another problem's solution, but I cannot continue.
Any advice will be greatly appreciated