is this true? log^2 x = (logx)^2

yes,

log 2 x is another way to write (log x)^2