We have been given two differential equation,
$$ \begin{alignat}{1} \frac{dy}{dx}&=2y+z,\\ \frac{dz}{dx}&=3z. \end{alignat} $$
I need to solve this differential equation simultaneously.
My approach
From the first differential equation, on integrating with respect to x:
$$y = y^2+zy.$$
Putting this equation of $y$ into the second differential equation yields:
$$\frac{dz}{dx}=3y^2+3zy,$$
which is a linear differential equation with respect to $x$. Now, it can be solved as usual, and after solving my answer turned out to be:
$$(z+y)e^{-3yx}=C$$
Now, this answer does not match with any of the following four solutions that were provided:
- $(z+y)e^{3x}=C$
- $(z+3y)e^{-3x}=C$
- $(y-z)e^{3x}=C$
- $(z+3y)e^{3x}=C$
What did I do wrong?
Solve the second equation first
$$z'=3z \implies \int \frac {dz}{z}=3\int dx \implies \ln |z|=3x \implies z=Ke^{3x}$$ Now you can susbtitute $z$ in the first equation $$y'=2y+z \implies y'-2y=Ke^{3x}$$ You can solve that last equation easily....