It isn't in both cases. This is a common thing people do, but you can't directly apply math theorems like that. Since you can not definitely say that it is a function and prove it and also you can not say it is continuous and prove it, therefore you can not use the conclusion of that mathematical theorem. Can you…