Do you want a proof of Ampere's Law? Some book really follows the way you said. I think it is just an example rather than a proof.
For the proof of Ampere Law, there is no need to use the delta function, although this method is more simple in my opinion. Some geometry calculation is enough, but it is more tricky to use this method.
L1 is the source current. $P$ is a field point at $\boldsymbol{r}_2$ whose magnetic field we are interested in, then we have, $\boldsymbol{B}(P)$ according to the Biot-Savart law
Then we calculate the line integral along $L_2$ passing through $P$.
$$\boldsymbol{B}(\boldsymbol{r}_2)\cdot\mathrm{d}\boldsymbol{l}_2=\frac{\mu_0I}{4\pi}\oint_\limits{(L_1)} \frac{\mathrm{d}\boldsymbol{l}_2\cdot (\mathrm{d}\boldsymbol{l}_1\times\hat{\boldsymbol{r}}_{12})}{r_{12}^2}=\frac{\mu_0I}{4\pi}\oint_\limits{(L_1)} \frac{(\mathrm{d}\boldsymbol{l}_2\times\mathrm{d}\boldsymbol{l}_1)\cdot\hat{\boldsymbol{r}}_{12}}{r_{12}^2}$$$$=\frac{\mu_0 I}{4\pi}\oint_\limits{(L_1)}\mathrm{d}\omega=\frac{\mu_0 I}{4\pi}\omega$$
Usually it takes at least 20 minutes to make it clear in class. I wish I could tell you the name of the book I used. But unfortunately, it is writen in Chinese.
I present you the main points of the demonstration, and I think it would be clear to you if you are familiar with the integral and vector analysis. Just be clear that the -dl2×dl1 can be treated as the area between the souce L1 and the L1' which is of a small displacement dl2 relative to L1
Ok, now we are calculating $B(\vec{r_2})\cdot{d\vec{l_2}}$, where $d\vec{l_2}$ is a small displacement in the line integral $\oint_{(L_2)}$. Now we have
$$B(\vec{r_2})\cdot{d\vec{l_2}}=\frac{\mu_0}{4\pi}\oint_{(L_1)}\frac{(-d\boldsymbol{l}_2\times d\boldsymbol{l}_1)\cdot\hat{\boldsymbol{r}}_{21}}{r_{21}^2}(1)$$
$(-d\boldsymbol{l}_2\times d\boldsymbol{l}_1)$ is just the area between line segment $-d\boldsymbol{l}_2$ and $d\boldsymbol{l}_1$. So if we consider the line integral in (1),
$$\oint_{(L_1)}(-d\boldsymbol{l}_2\times d\boldsymbol{l}_1)$$ is the area between two 'circle', $L_1$ and $L_1'$ (see the first figure of my first answer), where $L_1'$ is another circle with a displacement of $-d\boldsymbol{l}_2$ from $L_1$. But don't forget there is also $\hat{r}_{21}\over {r_{21}^2}$ in the line integral which gives the solid angle with respect to point ${\vec{P}}$.
Ok, now we are calculating $B(\vec{r_2})\cdot{d\vec{l_2}}$, where $d\vec{l_2}$ is a small displacement in the line integral $\oint_{(L_2)}$. Now we have
$$B(\vec{r_2})\cdot{d\vec{l_2}}=\frac{\mu_0}{4\pi}\oint_{(L_1)}\frac{(-d\boldsymbol{l}_2\times d\boldsymbol{l}_1)\cdot\hat{\boldsymbol{r}}_{21}}{r_{21}^2}(1)$$
$(-d\boldsymbol{l}_2\times d\boldsymbol{l}_1)$ is just the area between line segment $-d\boldsymbol{l}_2$ and $d\boldsymbol{l}_1$. So if we consider the line integral in (1),
$$\oint_{(L_1)}(-d\boldsymbol{l}_2\times d\boldsymbol{l}_1)$$ is the area between two 'circle', $L_1$ and $L_1'$ (see the first figure of my first answer), where $L_1'$ is another circle with a displacement of $-d\boldsymbol{l}_2$ from $L_1$. But don't forget there is also $\hat{r}_{21}\over {r_{21}^2}$ in the line integral which gives the solid angle with respect to point ${\vec{P}}$.
Can you understand what I wrote this time? Then there is not much left for us to move on.
I really like the proof contained in the paper Derivation of the Biot-Savart Law from Ampere's Law Using the Displacement Current
from Robert Buschauer (2013)
It's simple and it fulfills the role of convincing the reader.
Basically the author works with one point charge $q$ situated in origin of Z azis
$(0,0,0)$. He supposes a particle moving in Z axis
to positive Z
values with velocity $v$. He creates a magnetic field line in a arbitrarious circle with $c$ radius, by symmetry, with center in $(0,0,a)$. The angle between any point in the circle and the center of circle starting from origin $(0,0,0)$ is $\alpha$.
Starting point is a part of 4th Maxwell's Equation
of electromagnetism, the Ampere-Maxwell Law that consider changing electric flow with time in a area produces magnetic field circulation. This law generates a magnetic force that can be verified using special relativity that in another reference frame it's just a plain electric force.
$$\oint B\, dl = \mu_0\epsilon_0 \; d/dt(\int_A E.dA)$$
In the left side, the solution consists of integrating the $\oint B dl$ in this circle (butterfly net ring). As $B$ is constant by symmetry, we have
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad \oint B\, dl = 2\pi c B \qquad\qquad$ (1)
In the right side $\;[\;\mu_0 \epsilon_0 d/dt (\int_A E\; dA \,)\;],\;$ as the surface (butterfly net) we choose a sphere of radius $r$, to ensure that all points have the same value of electric field:
$$ E = q / 4\pi\epsilon_0r^2$$
Let's first calculate the right-hand integral in the right side. We adopted here a slightly different standard in spherical coordinate. Just to remember,the element for integration into spherical coordinates is $\; r^2 \sin \phi \, dr \, d\phi \, dq $
Let $\theta$ (XY axis
) vary from $0$ to $2\pi$ and by consider the angle $\phi$ with the vertical (Z axis
) from 0 to $\alpha$.
$$\Phi_E = \int_A E\; dA = q/4\pi \epsilon_0 r^2 \int_A dA = q/(4\pi \epsilon_0 r^2) r^2 \int_{0,2\pi} d\theta \int_{0,\alpha} \sin \Phi\; d\Phi = $$
$$q/4\pi \epsilon_0 2\pi ( -\cos \alpha + 1) = q/2\epsilon_0 (1 - cos\alpha)$$
Thus
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\Phi_E = \mu_0 q /2 (1 - cos\alpha)$
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad d \Phi_E / dt = - q/2\epsilon_0 d \cos \alpha/dt\qquad$(2)
Putting $\alpha$ as a function of $z$, we have, by the chain rule:
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad d \cos \alpha/dt = (d \cos\alpha/dz) \; (dz/dt)\qquad$(3)
However as $z$ is decreasing with the motion at velocity $v$, we have
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad dz / dt = -v \qquad $(4)
On the other hand:
$$ \cos \alpha = z / r = z / \sqrt{c^2 + z^2}$$
Using this online tool for derivation:
$d \cos \alpha/dz = c^2/r^3$ where $r = \sqrt{c^2 + z^2}$
$\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad 2\pi c B = q \mu_0 /2 v (c^2/r^3)\qquad$ By (1),(2),(3),(4)
$$B = \mu_0 q v c / 4\pi c r^3$$
but $\quad\sin \alpha = c / r\quad$ so we can add $\quad \sin \alpha\; r / c$:
$$B = \mu_0 q v \sin \alpha /4\pi r^2 $$
Vectorizing we have a cross product:
$$B = \mu_0 q \; v\uparrow \times r\uparrow /4\pi r^3$$
In some infinitesimal point we can consider a element of electric current as a point charge, so we can add other charge points by integration (any force is addictive!) for using in real applications. Thus we have in scalar notation:
$$dB = \mu_0 dq \; v \; r \sin \alpha /4\pi r^2$$
Considering $\quad dq = i\;dt\quad$ and $\quad v = ds/dt\quad $, we finally have reached to Biot-Savart law
:
$$dB = \mu_0 i \; ds \; r \sin \alpha /4\pi r^2$$
Best Answer
The Biot-Savart law says that under magnetostatic conditions ($\frac{\partial}{\partial t}\rightarrow 0$),
$$\mathbf B(\mathbf r) = \frac{\mu_0}{4\pi}\int \frac{\mathbf J(\mathbf r') \times (\mathbf r - \mathbf r')}{|\mathbf r - \mathbf r'|^3} dV'$$
Noting that $$ \frac{\mathbf r - \mathbf r'}{|\mathbf r - \mathbf r'|^3} = \nabla \left(\frac{1}{|\mathbf r - \mathbf r'|}\right)$$ where $\nabla$ refers to differentiation by the unprimed coordinates, this can be written
$$\mathbf B(\mathbf r) = \nabla \times\frac{\mu_0}{4\pi} \int \frac{\mathbf J(\mathbf r')}{|\mathbf r - \mathbf r'|}dV'$$
Taking the curl of this and using the fact that $\nabla \times (\nabla \times \mathbf F) = \nabla(\nabla \cdot \mathbf F) - \nabla^2 \mathbf F$,
$$\nabla \times \mathbf B(\mathbf r) = \nabla\left(\int J(\mathbf r')\cdot \nabla\left[\frac{1}{|\mathbf r - \mathbf r'|}\right]dV'\right) - \nabla^2 \frac{\mu_0}{4\pi} \int \frac{\mathbf J(\mathbf r')}{|\mathbf r - \mathbf r'|}dV'$$
Noting that $$\nabla\left[\frac{1}{|\mathbf r - \mathbf r'|}\right] = -\nabla'\left[\frac{1}{|\mathbf r - \mathbf r'|}\right]$$
we can integrate the first term by parts to obtain
$$\nabla\left(\int \nabla' \cdot \left[\frac{\mathbf J(\mathbf r')}{|\mathbf r - \mathbf r'|}\right]dV' - \int\frac{\nabla' \cdot \mathbf J(\mathbf r')}{|\mathbf r - \mathbf r'|} dV'\right)$$
The first term is a surface term, and vanishes if we assume that $\mathbf J(\mathbf r') \rightarrow 0$ as $|\mathbf r'| \rightarrow \infty$. The second term vanishes because according to the continuity equation, $\nabla\cdot\mathbf J = -\frac{\partial \rho}{\partial t} = 0$ in magnetostatics. This leaves us with
$$\nabla \times \mathbf B(\mathbf r) = \nabla^2 \frac{\mu_0}{4\pi} \int \frac{\mathbf J(\mathbf r')}{|\mathbf r - \mathbf r'|}dV'$$
and since
$$\nabla^2 \frac{1}{|\mathbf r - \mathbf r'|} = 4\pi \delta^{(3)}(\mathbf r - \mathbf r')$$
we have
$$\nabla \times \mathbf B = \mu_0 \mathbf J$$.
Again, Biot-Savart is valid only under magnetostatic conditions, and therefore so is this version of Ampere's law. It would be nice to relax these conditions and re-do this derivation more generally, but we don't yet know what to replace Biot-Savart with.
Instead, let's see how this version of Ampere's law fails when we go to general electrodynamics. Clearly since $\mathbf J \propto \nabla \times \mathbf B$, we have that $\nabla \cdot \mathbf J = 0$. However, according to the general continuity equation, $\nabla \cdot \mathbf J = -\frac{\partial \rho}{\partial t}$.
To fix this, let's assume that we need a new term, so
$$\nabla \times \mathbf B = \mu_0 \mathbf J + \mathbf G$$
for some vector field $\mathbf G$. Taking the divergence of both sides yields
$$ 0 = - \mu_0 \frac{\partial \rho}{\partial t} + \nabla \cdot \mathbf G$$
$$\implies \nabla \cdot \mathbf G = \mu_0 \frac{\partial \rho}{\partial t}$$
From Gauss' law for electric fields, we know that $\rho = \epsilon_0 \nabla \cdot \mathbf E$, and so
$$\nabla \cdot \mathbf G = \epsilon_0 \mu_0 \frac{\partial}{\partial t} \nabla \cdot \mathbf E = \nabla \cdot \left(\epsilon_0 \mu_0 \frac{\partial}{\partial t}\mathbf E\right)$$
and so we can simply postulate that
$$\mathbf G = \epsilon_0\mu_0 \frac{\partial}{\partial t} \mathbf E$$
so
$$\nabla \times \mathbf B = \mu_0 \mathbf J + \epsilon_0\mu_0 \frac{\partial}{\partial t} \mathbf E$$
This was Maxwell's correction to Ampere's law, and it has been validated over and over by experiment.
In summary, magnetostatics + Biot-Savart gives us $\nabla \times \mathbf B = \mu_0 \mathbf J$. Predictably, this fails when we leave the domain of magnetostatics, and in particular is inconsistent with the continuity equation. We don't know how to generalize Biot-Savart, but patching up the problem with the continuity equation in the simplest possible way yields the correct Ampere's law, $\nabla \times \mathbf B = \mu_0 \mathbf J + \epsilon_0 \mu_0 \frac{\partial}{\partial t}\mathbf E$.
From this, we can work backward to find the correct generalization of Biot-Savart; this is one of Jefimenko's equations.
EDIT:
Returning to the original derivation after eliminating the surface term (but before sending $\nabla'\cdot \mathbf J(\mathbf r')\rightarrow 0$), we have
$$\nabla \times \mathbf B(\mathbf r) = \mu_0 \mathbf J(\mathbf r) - \frac{\mu_0}{4\pi}\int \frac{\nabla '\cdot \mathbf J(\mathbf r')}{|\mathbf r - \mathbf r'|}$$
Under the conditions for which Biot-Savart holds, the latter term is equal to zero; however, we can be bold and throw those restrictions aside just to see what happens. Under general conditions, $\nabla \cdot \mathbf J = -\frac{\partial \rho}{\partial t}$, so that term becomes $$\frac{\mu_0}{4\pi} \nabla \int \frac{\partial \rho}{\partial t} \frac{1}{|\mathbf r - \mathbf r'|} dV'= \frac{\partial}{\partial t} \frac{\mu_0}{4\pi} \nabla \int\frac{\rho(\mathbf r')}{|\mathbf r - \mathbf r'|}$$
Defining $$ \phi(\mathbf r) = \int \frac{\rho(\mathbf r')}{4\pi \epsilon_0 |\mathbf r-\mathbf r'|}$$ and letting $\mathbf E = -\nabla\phi$, this becomes
$$\nabla \times \mathbf B = \mu_0 \mathbf J + \epsilon_0 \mu_0 \frac{\partial}{\partial t} \mathbf E$$
What we did here - simply disregarding the conditions under which Biot-Savart is applicable and plugging in the more general continuity equation - is morally the same as Maxwell's addition of the extra term to compensate for the nonzero divergence of $\mathbf J$.
Note also that we have glossed over how to go from magnetostatics to electrodynamics $\big(\mathbf J(\mathbf r) \rightarrow \mathbf J(\mathbf r,t), \rho(\mathbf r)\rightarrow \mathbf \rho(\mathbf r,t)\big)$. Simply plugging in a $t$ to Biot-Savart and letting it "go along for the ride" is insufficient; working backwards from the full Maxwell's equations demonstrates the need to introduce the retarded time $t_r = t - \frac{|\mathbf r - \mathbf r'|}{c}$, indicating that Biot-Savart is genuinely wrong for electrodynamics.