$$\int \frac {x+4}{ 2x+6 } dx$$
This is a problem from Khan Academy that I was reading about how to solve when I accidentally clicked next and lost the explanation. I was reading something about how there is a clever way to divide the function to make it easier to integrate. Can someone please explain this to me?
No actual solution, please. I want to get it by myself.
HINT: Notice $$\int\frac{x+4}{2x+6}dx$$ $$=\int\frac{x+4}{2(x+3)}dx$$ $$=\frac{1}{2}\int\frac{x+4}{x+3}dx$$ $$=\frac{1}{2}\int\frac{(x+3)+1}{x+3}dx$$
$$=\frac{1}{2}\int\left(1+\frac{1}{x+3}\right)dx$$