Every equation relating physical quantities should be in dimensional balance.
The given equation is in dimensional balance, hence the dimensions of the terms on both sides of the equation must be the same. ∴y=acos(ωt−kx) y has dimensions of length and a that is amplitude also has dimensions of length, hence (ωt−kx) should be dimensions, that is [k]=[x]1=[L]1
Dimensions of k=[M0L−1T0]