Question: How to exclude integer terms that are not a given function with generic arguments?

Once the terms have been selected, as below

I only need to keep terms that contain a certain function with generic arguments, for example, tanh(x), in this case, that is, I want from A01

-(m2/4) tanh(2k-2ç)+(m2/16) tanh(4k+2ç)+-(m2/4) tanh(2k+2ç)+(3m2/8) tanh(2ç)

and delete the terms


What's the best command to make that? In other words, always exclude terms that do not accompany tanh

Please Wait...