integral((x^2)-1/((x^2)+6x+9)
Edit: eep sorry again mathstud. Please disregeard this post
I think you mean
You have an extra open bracket that you haven't closed at the start of which makes thins confusing.
First we need to reduce the numerator to a degree smaller than the denominator using long division. Here is an example of how to do it using 2 common notations. you should get
Do you know how to proceed from here?