When a vibrating object is moving   an observer, the measured frequency of the vibrations will be lower than if the object and observer are both stationary. If the vibrating object is moving     an observer, the measured frequency of the vibrations will be higher than the actual rate of vibration of the object. When a star is moving towards an observer on Earth, the light spectrum of the star will appear  compared to the light spectrum of the sun, which is considered to be in Earth's frame of reference.

When a vibrating object is moving towards an observer, the measured frequency of the vibrations will be higher than the actual rate of vibration of the object. This phenomenon is known as the Doppler effect, where the motion of the source of waves (in this case, vibrations) affects the observed frequency of the waves.

In the case of a star moving towards an observer on Earth, the same principle applies. The light emitted by the star will have its wavelength compressed due to the relative motion between the star and the observer. This compression of wavelengths causes a shift towards shorter wavelengths, resulting in a blueshift in the star's light spectrum.

On the other hand, if a star is moving away from an observer on Earth, the opposite occurs. The wavelengths of the light emitted by the star get stretched due to the relative motion, resulting in an elongation of wavelengths and a redshift in the star's light spectrum.

Therefore, when a star is moving towards an observer on Earth, its light spectrum will appear blueshifted compared to the light spectrum of the sun.

When a vibrating object is moving towards an observer, the measured frequency of the vibrations will be higher than if the object and observer are both stationary. This is due to the concept of Doppler effect.

The Doppler effect is the change in frequency or wavelength of a wave as perceived by an observer moving relative to the source of the wave. When the source is moving towards the observer, the waves are compressed, leading to a higher frequency or pitch.

In the case of a star moving towards an observer on Earth, the same principle applies to the light spectrum. As the star moves closer, the wavelengths of its light are compressed, causing a shift towards shorter wavelengths. This shift is known as a blueshift and results in the light spectrum of the star appearing more blue or higher in frequency compared to the light spectrum of the sun, which is considered to be in Earth's frame of reference.

It's important to note that this effect is dependent on the relative motion between the source and the observer. When the source is moving away from the observer, the opposite effect occurs, known as a redshift, where the measured frequency or wavelength becomes lower than the actual rate of vibration or wavelength of the object.

The observed frequency of vibrations or light waves can change depending on the relative motion between the source of the waves and the observer. This phenomenon is known as the Doppler effect.

When a vibrating object is moving towards an observer, the measured frequency of the vibrations will be higher than the actual frequency of the object. This is known as the Doppler effect for sound. As the object gets closer, the waves are compressed, leading to an increase in frequency. An example of this is when a car with a siren approaches you. As it gets closer, the pitch of the siren appears to rise because the frequency of the sound waves increases.

Similarly, when a vibrating object is moving away from an observer, the measured frequency of the vibrations will be lower than the actual frequency of the object. This is known as the Doppler effect for sound. As the object moves away, the waves get stretched out, leading to a decrease in frequency. An example of this is when a car with a siren moves away from you. As it moves farther, the pitch of the siren appears to drop because the frequency of the sound waves decreases.

In the case of light, if a star is moving towards an observer on Earth, the observed light spectrum of the star will be shifted towards the higher frequency or blue end of the spectrum compared to the light spectrum of the sun. This effect is known as the blueshift. On the other hand, if the star is moving away from the observer, the observed light spectrum will be shifted towards the lower frequency or red end of the spectrum. This effect is known as the redshift.

To calculate the amount of shift, you can use the concept of Doppler formulas. These formulas relate the observed frequency or wavelength of the waves to the actual frequency or wavelength and the relative velocity between the source and observer. The formula for the Doppler shift in sound waves is slightly different from that for light waves. However, both formulas involve the speed of sound or light and the relative velocities of the source and observer.

In summary, the moving object causes a change in the measured frequency of vibrations or light waves due to the Doppler effect. This effect can result in a higher or lower frequency depending on whether the object is moving towards or away from the observer, respectively.