why variable stars have various magnitudes? and y they are changing periodically?
It would take all day to answer that question - try here, then Google on "variable star" if you need more information.
For all the gory details, GCVS is the place to go:
Footnote: The excellent source turbo-1 gave also includes a GCVS link.
Separate names with a comma.