$\mathbf{SHORT}$: what is the result of $\iint{d^2x}$? Does it make sense from a mathematical point of view? Please note that I am not refering to $\iint{dx^2}$.
$\mathbf{LONG}$
I came to this doubt while solving the differential equation of a LC circuit (voltage source, inductor, and capacitor in series).
$$V_{in}(t)=V_C(t) + V_L(t)=\frac{1}{C}\int{i(t)dt}+L\frac{di(t)}{dt}\tag{1}$$
Where $L$ and $C$ are the constants of the inductor and capacitor respectively. Assuming $V_{in}(t) = 0$, and differentiating respect to $t$ both sides we obtain: $$L\frac{d^2i(t)}{dt^2}+\frac{1}{C}i(t)=0$$
Or in standard differential equation form:
$$\frac{d^2i(t)}{dt^2}+\frac{1}{LC}i(t)=0$$
Now, I DO know how to solve this as a differential equation, that is not my doubt. However, alternatively, if I rearrange the terms: $$\frac{d^2i(t)}{i(t)}=-\frac{1}{LC}dt^2\tag{2}$$ $$\iint{\frac{d^2i(t)}{i(t)}}=-\frac{1}{LC}\iint{dt^2}=-\frac{1}{LC}\int{(t+C_1)dt}=-\frac{1}{LC}\left({\frac{t^2}{2}+C_1t+C_2}\right)\tag{3}$$
As you can see, the right part of $(3)$ can be easily solved since $\int{dx}=x$ and $\iint{dx^2}=\int{\left(\int{dx}\right)dx}$. However, when it comes to the left side of the equation, I don't know how to proceed. I have read somewhere that the term $d^2x$ does not make sense by itself, and that $\frac{d^2x}{dt^2}$ is just some form of notation to refer to $x''(t)$. But I don't buy it, because in the following case:
$$\frac{dx}{dt}=x$$
Solving this is as simple as multiplying both sides by $\frac{dt}{x}$ and integrating:
$$\int{\frac{dx}{x}}=\int{dt} \Rightarrow ln|x|=t+C_1 \Rightarrow x=x(t)=e^{t+C_1}$$
In this case, we did operate with the two terms $dx$ and $dt$ by considering them as differentials. Then, there must be a way I believe there might be a way of solving $\iint{d^2x}$, and consequently also $\iint{\frac{d^2x}{x}}$ as in equation $(3)$.
By the way, feedback on my question is happily accepted, since is my first question on math stackexchange.
The derivative $\frac{dy}{dx}$ looks like it's a fraction, and in many cases behaves like it was a fraction, but it's important to remember that...
$~~~~~~~~~~~~~~$
The trick you have been thought for solving first order ODEs simply does not extend to higher order ODEs. This is a common misconception and it's important to learn the limitations of this trick.
To give you an answer beyond "this simply does not work" let's go through the reason why it works to "multiply by ${\rm d}t$" for first order ODEs and then show what happens for a second order ODE.
Given $$\frac{dy}{dt} = y$$ we divide by $y$, multiply by $dt$ and integrate to get $$\int \frac{{\rm d}y}{y} = \int {\rm d}t \implies \log(y) = t + c\implies y = C e^t$$ The rigorous way of doing this is to divide the ODE by $y$ (assuming $y\not=0$) and integrate the ODE using the fundamental theorem of calculus and the chain rule on the left hand side which allows us to write $$\int \frac{1}{y}\frac{dy}{dt}{\rm d}t = \int \frac{d\log y}{dt}{\rm d}t = \log(y) + C$$ which is the same we would get if treated $\frac{dy}{dt}$ as it was a fraction. Now if we try to do the same procedure (the rigorous one) on the second order ODE $\frac{d^2y}{dt^2} = y$ then we get $$\int \frac{1}{y}\frac{d^2y}{dt^2}{\rm d}t = \int {\rm d}t \implies \int \frac{d(y')}{y} = t + c$$ Now we see the problem here. In order to solve the integral $\int \frac{dy'}{y}$ we would need to know $y$ as a function of $y' \equiv \frac{dy}{dt}$. But this is not known to us unless we already know the solution we are trying to find. There is simply not enough information about $y$ available to us at this stage to be able to solve this integral which shows that this way of solving the ODE does not work like it did in the first order case.
There are many other examples of where treating the derivative as a fraction fails. One that comes to mind comes from the implicit function theorem where we have an equation $F(x,y(x)) = 0$ and can deduce $\frac{dy}{dx} = -\frac{\partial F/\partial x}{\partial F/\partial y}$ (notice the minus sign which is not there is we treat the right hand side derivatives as fractions). For more information see for example When not to treat $dy/dx$ as a fraction in single-variable calculus? and Is $\frac{\textrm{d}y}{\textrm{d}x}$ not a ratio?