Answer:
Step-by-step explanation:
we can consider an element of radius r < a and thickness dr. and Area of this element is
since current density is given
![J=kr](https://img.qammunity.org/2020/formulas/physics/college/fuauy4jhv25thp03cxn3t6odpx3vvd0xw8.png)
then , current through this element will be,
integrating on both sides between the appropriate limits,
Magnetic field can be found by using Ampere's law
for points inside the wire ( r<a)
now, consider a point at a distance 'r' from the center of wire. The appropriate Amperian loop is a circle of radius r.
by applying the Ampere's law, we can write
![\oint{\vec{B}_(in)\cdot\,d\vec{l}}=\mu_0\,i_(enc)](https://img.qammunity.org/2020/formulas/physics/college/dng8302ycsyuqapg6l0mf57wc0qades2tu.png)
by symmetry
will be of uniform magnitude on this loop and it's direction will be tangential to the loop.
Hence,
![B_(in)*2\pi\,l=\mu_0\int_0^r(kr)(2\pi\,r\,dr)= \\\\2\pi\,B_(in) l=2\pi\mu_0k (r^3)/(3) \\\\B_(in)=(\mu_0kl^2)/(3)](https://img.qammunity.org/2020/formulas/physics/college/51afq61t1b5mjbifkjfk00q7ghj9ig15za.png)
now using equation 1, putting the value of k,
![B_(in) = (\mu_(0) l^2 )/(3 ) \,\,\, (3I)/(2 \pi a^3) \\\\B_(in) = ( \mu_(0) I l^2)/(2 \pi a^3)](https://img.qammunity.org/2020/formulas/physics/college/6vagopm8g2g5e7w2dseli2ivbx6n8hwoc9.png)
B)
now, for points outside the wire ( r>a)
consider a point at a distance 'r' from the center of wire. The appropriate Amperian loop is a circle of radius l.
applying the Ampere's law
![\oint{\vec{B}_(out)\cdot\,d\vec{l}}=\mu_0\,i_(enc)](https://img.qammunity.org/2020/formulas/physics/college/to01x87vd0127n5pg0mj9qtuwfnwfdn50r.png)
by symmetry
will be of uniform magnitude on this loop and it's direction will be tangential to the loop. Hence
![B_(out)*2\pi\,r=\mu_0\int_0^a(kr)(2\pi\,r\,dr) \\\\2\pi\,B_(out)r=2\pi\mu_0k(a^3)/(3) \\\\B_(out)=(\mu_0ka^3)/(3r)](https://img.qammunity.org/2020/formulas/physics/college/ssrj90p6t1378as5efd8v3ljdp2xrv7u2d.png)
again using,equaiton 1,
![B_(out)= \mu_0 (a^3)/(3r) * (3 I)/(2 \pi a^3) \\\\B_(out) = ( \mu_(0) I)/(2 \pi r)](https://img.qammunity.org/2020/formulas/physics/college/ez4l5o479iiirgtwdb6vcshwu62nuz03y6.png)