I was wondering if there is a way to show the four imaginary roots of the function
$$f(x) = \cos(x) + \cosh^2(x) = 0$$
We can find the four imaginary roots using
f[x_] := Cos[x] + Cosh[x]^2
Reduce[f[z] == 0 && Abs[z] < 2, z]
I have tried several things, but no luck so far, for example
ContourPlot[{y == Cosh[x], y == Sqrt[-Cos[x]], y == -Sqrt[-Cos[x]]}, {x, -6., 6.}, {y, -6.,6.}]
Is there any way to show these complex roots visually?
ComplexPlot[f[z], {z, -2 - 2*I, 2 + 2*I}, ColorFunction -> "CyclicLogAbs"]
$\endgroup$ColorFunction -> "CyclicArg"
$\endgroup$ComplexPlot
$\endgroup$