Missing multiplication symbol

From Why start at x, y, z

It's common to omit a multiplication symbol:

\(ab = a \times b\)

But sometimes it's not as clear:

Does \( a(b+1) = a \times (b+1)\), or is \(a\) a function?