Here is an example taken from CLRS.
q)Consider an ordinary binary min-heap data structure with n elements supporting the instructions INSERT and EXTRACT-MIN in O(lg n) worst-case time. Give a potential function Φ such that the amortized cost of INSERT is O(lg n) and the amortized cost of EXTRACT-MIN is O(1), and show that it works.
$\Phi(H) = 2 \cdot (size of heap = n) = 2n$
insert:
the amortized cost has the formula
$a_n = c_n + (\Phi_{n+1}) - \Phi_n$
$= log(n) + 2(n+1) - 2n = log(n) + 2 = log(n)$
holds ?
$a_n = c_n + (\Phi_{n+1}) - \Phi_n$
$= log(n) + 2(n+1) - 2n = log(n) + 2 = log(n)$
delete is a bit different because after operation n goes down by 1 hence
$a_n = c_n + (\Phi_{n+1}) - \Phi_n$
$= log(n) + 2(n) - 2(n+1) = log(n) - 2 = log(n)$
so delete is obviously wrong since its not O(1) but insert gave correct one. How do I properly show a potential function being incorrect? Is it enough to just show this? Note: I'm not looking to solve the above question just looking how to disprove potential functions.