Step 1: Use the given substitution.
Given:
\[
\frac{dy}{dx}=z
\]
Therefore,
\[
\frac{d^2y}{dx^2}=\frac{dz}{dx}
\]
Substitute into the differential equation:
\[
\frac{d^2y}{dx^2}-\frac{dy}{dx}=0
\]
We get
\[
\frac{dz}{dx}-z=0
\]
Step 2: Solve the first-order differential equation.
Rearranging,
\[
\frac{dz}{dx}=z
\]
So,
\[
\frac{dz}{z}=dx
\]
Integrating both sides:
\[
\int \frac{1}{z}\,dz=\int dx
\]
\[
\log z=x+C
\]
Exponentiating,
\[
z=e^{x+C}
\]
\[
z=Ae^x
\]
where
\[
A=e^C
\]
Step 3: Final conclusion.
Hence,
\[
\boxed{z=Ae^x}
\]