Basic Logirithms & Basic expanding the brackets

Hello everyone,

I need help with logarithms that are in fraction form.

such as

evaluate the following for x:

log ^ 2 x = 1/7

log ^ 2 x = 1/5

log ^ 2 x = 2/7

I also need to be sure if expanding this equation for e.g is correct?

expand the following:

(a + b) (a + b + c)

a^2 + ab + ac + ba + b^2 + bc

& do I plus the powers or times them in the brackets?

expand the following:

(a^2 + b^2) (a^3 + b^3 + c^2)

a^5 + a^2b^5 + a^2c^2 + b^2a^3 + b ^ 5 + b ^2c^ 2