Answer:

Step-by-step explanation:
Let the position of the point where magnetic field is to be determined is at distance "r" from the axis of cylinder
so here total charge lying in this region is

now magnetic field inside the cylinder is given as

here current is given as



now magnetic field is given as

