analytical solution to BVP with fu'n and 2nd dr'tve of fu'n
I have the following (fairly simple) boundary value problem and I am trying to find an analytical solution to it, but for the life of me it's not working out. This is part of a larger thing where I'm trying to understand FEM and BVPs. Essentially this is a diffusion reaction problem.
My problem is I have the following (π=pi)
v-kv''=f(x)=sin(πx), x is between 1 and 2
v@x=0 = 0 and v@x=1 = 0
I have some plots but they are not matching my analytical solution (I think my brain has just broken tonight), but if anyone can steer me right I'd be grateful.