hi prof. thx for ur prompt reply. I hope u can help me clear this doubt.

The textbook says "the shorter the wavelength, the higher the frequency. As the frequency gets higher, the energy increases".

I read about Planck–Einstein equation from wikipedia which is not taught in the textbook or during lessons.
The following equations show how energy, wavelength and frequency is related.
?? = c
E=hv
E=(hc)/?
h=Planck's constant = 6.62606896(33)×10?34 J•s
c=3x10^8 m/s.

so I can conclude that
increase frequency or decrease wavelength -> E increases.
decrease frequency or increase wavelength -> E decreases.

Am i right?

On the other hand
E=kA^2
The amount of energy carried by a wave is related to the amplitude of the wave. A high energy wave is characterized by a high amplitude; a low energy wave is characterized by a low amplitude.

It is taught to us that

"Putting a lot of energy into a transverse pulse will not effect the wavelength, the frequency or the speed of the pulse. The energy imparted to a pulse will only effect the amplitude of that pulse."

Doesn't this contradict the Planck–Einstein equation?