\boxed{Q=\int_{0}^{\frac{R}{2}}{a*4\pi r^2.dr}+\int_{\frac{R}{2}}^{R}{2a*(1-\frac{r}{R})*4\pi r^2.dr} }
hope u will take care frm here [1]
a region in space contains charge which is distributed spherically such that the volume charge density p.
p=a for r≤R/2
p=2a(1-r/R) for R/2≤r≤R
p=0 for r≥R
find the value of a in terms Q and R,where Q is the total charge and R is the radius of the sphere.
\boxed{Q=\int_{0}^{\frac{R}{2}}{a*4\pi r^2.dr}+\int_{\frac{R}{2}}^{R}{2a*(1-\frac{r}{R})*4\pi r^2.dr} }
hope u will take care frm here [1]