I'm having trouble with integrating this using MATLAB. When i try and run it as shown below, the answer that comes out i'm pretty sure is wrong. This is the first time i'm using matlab to help with integration so apologies in advance if i'm doing something very silly. Can anyone give me some pointers as to what i'm doing wrong?
Any assumptions on the parameters n_1, n_2, b or R that could help simplifying the result ?
E.g. is -R in the interval of integration (thus in the interval [-eta1 eta2]) so that your function would have a pole ? Are eta1 and eta2 positive ? Are all parameters involved real numbers or can they be complex ?
What do you mean by "is -R in the interval of integration"? - Really sorry, i'm not familiar with that term. But eta1 and eta2 are both positive values and all parameters involved are real numbers. Appreciate your time helping! :)
From looking into it, if I’m not mistaken R only causes an issue if it is equal to or less than eta_1, which in this situation, would never be the case. R is always greater than eta_1.Does this then mean that the solution you provided below would be valid?