Let $f$ and $g$ be multiplicative functions that are not identically $0$ and such that $f(p^k)=g(p^k)$ for each prime $p$ and $k\ge1$. Prove that $f=g$.
Source: Elementary Number Theory by David M. Burton
I just know that any function is multiplicative if $f(mn)=f(m)f(n)$ where $gcd(m,n) = 1$ ,I just need some ideas or hints to solve problems like these.
As the other answers have shown, $f(n) = g(n)$ for all $n > 1$ follows from prime factorisation. (You only need existence, not even uniqueness.) There was no use of $f$ and $g$ not being identically zero so far.
However, for $n = 1$, the above argument does not work. Now, we know that $$f(n) = f(n)f(1)$$ for all $n \in \Bbb N$. Since $f$ is not identically $0$, there exists $n \in \Bbb N$ such that $f(n) \neq 0$. From that, we can conclude that $f(1) = 1.$ Similarly, $g(1) = 1$. This lets you conclude that $f = g$.
What if you weren't given $f$ and $g$ are not identically zero?
Well, consider $f \equiv 0$ but $g$ to be defined as $$g(n) = \begin{cases}1 & n = 1\\ 0 & n > 1\end{cases}.$$
Then, $f(p^k) = g(p^k)$ for all primes $p$ and $k \ge 1$ (and both are (completely!) multiplicative) but $f \neq g$.