Answer:
Cosmic ray's frame of reference: 99,875 years
Stationary frame of reference: 501,891 years
Step-by-step explanation:
First of all, we convert the distance from parsec into metres:
![d=30,000 pc =9.26\cdot 10^(20) m](https://img.qammunity.org/2021/formulas/physics/high-school/229gbm3emrdbdptrphgnq4eyd9sj460wc5.png)
The speed of the cosmic ray is
![v=0.98 c](https://img.qammunity.org/2021/formulas/physics/high-school/us7o3ciy6qtcja7cioet0e6aoukkzoli05.png)
where
is the speed of light. Substituting,
![v=(0.98)(3.0\cdot 10^8)=2.94\cdot 10^8 m/s](https://img.qammunity.org/2021/formulas/physics/high-school/xxut3ag4fwjtqudxr19tv5g7rp2u8vvdm8.png)
And so, the time taken to complete the journey in the cosmic's ray frame of reference (called proper time) is:
![T_0 = (d)/(v)=(9.26\cdot 10^(20))/(2.94\cdot 10^8)=3.15\cdot 10^(12) s](https://img.qammunity.org/2021/formulas/physics/high-school/9yiolpls20s0nyeuk7f3ozh0gg5tln5rer.png)
Converting into years,
![T_0 = (3.15\cdot 10^(12))/((365\cdot 24\cdot 60 \cdot 60)=99,875 years](https://img.qammunity.org/2021/formulas/physics/high-school/j3rg99aqzzjm5afoj2sxyr9vgr7s5897ys.png)
Instead, the time elapsed in the stationary frame of reference is given by Lorentz transformation:
![T=\frac{T_0}{\sqrt{1-((v)/(c^2))^2}}](https://img.qammunity.org/2021/formulas/physics/high-school/a8dpbk6lj5ni01hn2eyuovadu9yn931bre.png)
And substituting v = 0.98c, we find:
![T=\frac{99,875}{\sqrt{1-((0.98c)/(c))^2}}=501,891 years](https://img.qammunity.org/2021/formulas/physics/high-school/7m7l3c3qg54pyuwem96qo4oooqh9cj686f.png)