MATLAB: Problem with Symboli integration by partial fraction

integral

I just wrote a simple script to solve this expression
syms x
f = (x + 1)/(4*x^2 - 1)
int(f)
And I got the wrong answer (image attached).
Did I do something wrong, or there is something I should know.
Thanks.

Best Answer

Hi, the file is not attached but if your answer correlates with this answer then there is nothing wrong with your code:
syms x
q = partfrac((x+1)/(4*x.^2-1))
int(q)