Originally Posted by

**Hiram** 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 $\displaystyle f(x)= $3x^{2} +2 $,

g(y) = $2y -1$ and

h(z) = $-z^{2} +3 $$, 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 $\displaystyle f(x)= $3y^{2} +2 $,

g(y) = $2x -1$ and

h(z) = $-n^{2} +3 $$ (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)$\displaystyle f(m+1)= $3m^{2} + 6m +5 $$

e) $\displaystyle g(n-2) = $2n -5$$

f) $\displaystyle h(3k + 1) = $ -9k^{2} - 6k + 2 $$

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.