I am fairly new here so please forgive me if there is another post with the answer. I have searched but could not find anything that really helped out.
I contacted Mathematica to help with a memory issue when solving a differential equation and they wrote some code for me that does the job however, it is missing the boundary conditions. I then asked them how to insert boundary conditions into the code they provided and they directed me here. Here is the code they had provided:
eqn = (1/((1 + I)*β)^2)*y'''[x] - y'[x] == (Really long equation that is not feasible to type);
(* Find the general solution by setting the rhs to 0. *)
sol1 = DSolveValue[eqn[[1]] == 0, y[x], x]
(sol2 = Map[DSolveValue[eqn[[1]] == #, y[x], x] &, Expand[eqn[[2]]]]);
sol2 = sol2 /. {C[1] -> 0, C[2] -> 0, C[3] -> 0};
y[x_, β_] = sol1 + sol2;
The boundary conditions are
y'[0] == 0, y'[δ] == 0, y[δ] == 0
Here is my question:
With their method of solving the ODE, where would I insert the boundary conditions to obtain my general solution?
I have tried guessing where to put them based on the information given to me in the Wolfram Documentation but I have had no luck. I think my problem is not fully understanding how the Map
works.
I am aware that I can have Mathematica solve for each constant using Solve
and then insert the each constant back into my solution to obtain the general solution, but I hope there is some way to insert the boundary conditions into their code that would make this process faster.