Missing multiplication symbol

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?