Answer:
(a)

(b)

Explanation:
Part A
Consider the indefinite integral with respect to x:

We can separately integrate each terms as they are in addition and subtraction:

For the last term, we can rewrite in negative exponent as
so we can apply power rules to all these terms (making it easier):

The middle term -- we can separate the constant out of integral:

Apply the power integration rule (for n ≠ 1):

But we can add C later after we integrate all these terms, therefore:

Rewrite the negative exponent back to fraction form:

After integrating all terms, we add + C every time. Hence:

Part B
Consider the indefinite integration with respect to x of:

First, expand (x + 3)² to x² + 6x + 9:

Then disribute the x inside the brackets:

Integrate separately:

Separate the constants:

For the power integration formula, recall above. Thus:

Add + C after finishing the integration process, hence:

Let me know if you have any questions!