Recently I came across this problem :
There are two identical parallel plates of length $L$ and breadth $B$ on the XZ plane . One plate passes through $Y = 0$ and the other passes through $Y = d$. Between them is a dielectric medium whose Dielectric constant changes as $\kappa = \kappa_0(3 + \frac{y}{L})$. Calculate the Capacity of the parallel plates.
The way to solve this problem is by considering a small portion of thickness $dy$ at a distance $y$ from the XZ plane.
Then we use the formula of $C = \frac{\kappa\epsilon_0 A}{d}$ to get the capacitance of the small portion. We denote this capacitance as $dC$
$$\begin{align} \Rightarrow dC &= \frac{\kappa \epsilon_0 LB}{dy} \\ \Rightarrow dC &= \frac{\kappa_0(3 + \frac{y}{L}) \epsilon_0 LB }{dy} \end{align}$$
We then take reciprocal on both sides and integrate it from $Y = 0$ to $Y = d$. The logic behind this is that since the layers of the dielectric are in series therefore we find the equivalent capacitance by integrating the reciprocals of capacitance of individual layers.
$$\Rightarrow \int\frac{1}{dC} = \int\frac{dy}{\kappa_0(3 + \frac{y}{L}) \epsilon_0 LB}\tag{i}$$
Solving the integral we get some value for $1/C$.
But the question is that this step might be logically correct but mathematically wrong because there is no meaning in $\int\frac{1}{dC}$ (or does it?). Can we really integrate undefined values by simply assigning some logical meaning behind it?