you can use long division to do this:-
a + 3 ) a^2 + 2a + 3
= a - 1 remainder 6 or you can write it as a - 1 + 6 / (a + 3)