Clear["Global`*"]
eqn = (x^2 - 7 x + 11)^(x^2 - 11 x + 30) == 1;
roots = Solve[eqn && 0 <= x <= 7, x]
(* {{x -> 2}, {x -> 3}, {x -> 4}, {x -> 5}, {x -> 5}, {x -> 6}} *)
Verifying the roots,
And @@ (eqn /. roots)
(* True *)
Point solutions will not show up in a Plot
since the probability of them being detected is zero -- even with large values for PlotPoints
, MaxRecursion
, and WorkingPrecision
. Plot
works "to create a smooth curve" and point solutions do not lay on a smooth curve. You need to manually place point solutions.
Highlighting all roots including the point solutions:
Plot[Evaluate[Subtract @@ eqn], {x, 0, 7},
PlotRange -> {-1.5, 1},
PlotPoints -> 200,
MaxRecursion -> 10,
WorkingPrecision -> 20,
Epilog -> {Red, AbsolutePointSize[4], Point[{x, 0} /. roots]}]

EDIT: It is easier to see the roots using ReImPlot
ReImPlot[Evaluate[Subtract @@ eqn], {x, 0, 7},
PlotRange -> {-1.5, 1},
PlotPoints -> 200,
MaxRecursion -> 10,
WorkingPrecision -> 20,
Epilog -> {Red, AbsolutePointSize[4], Point[{x, 0} /. roots]},
PlotLegends -> Placed["ReIm", {.85, .25}]]
