Hi guys,

I've just started a discrete mathematics course at university, and one of the things that is assumed knowledge is being able to factor expressions. The notes then go on to give you some exercises for you to test yourself with. There are accompanied answers, but they don't show how they worked them out. I've got some simple ones solved, but not the ones that are slightly more complicated

I haven't done anything like this for years and years, so I've forgotten it. I'll show you the example questions so hopefully someone can use them as a reference in explaining them to me.

Example:

Let

, express the following as polynomials:

a) f(y)

b) g(x)

c) h(n)

d) f(m+1)

e) g(n-2)

f) h(3k + 1)

The answers for the first three were

(really obvious actually, not really doing anything)

But the other three, I got halfway through but I couldn't find out how the final answer was arrived at. The final answers were given as these:

d)

e)

f)

If I'm being at all vague (which I'm sure I am) please let me know and I'll try to reword the problem I'm having.