So I am trying to solve this Differential system/ Complex analysis problem $$f(z) = iz$$ to sketch the Streamlines of the planar flow and need help understanding the logic or where I went wrong :
Step one:
$$ z=x+yi\\ f(z)=i(x+yi)\\ f(z)=xi-y $$
Step 2: From there I know that I can use the chain rule to derive:
$$ \frac{dy}{dt}=x \\ \frac{dx}{dt}=-y $$ Step 3: Which I can use the chain rule to combine
$$\frac{dy}{dx}=\frac{x}{-y} = xdx+ydy $$ and then
$$ \int{x}{dx}+\int{y}{dy}=0 $$ to get
Step 4: $${\frac{1}{2}x^{2}+\frac{1}{2}y^{2} + c}$$
Im not quite sure how the answer got these last two steps of $$\frac{1}{2}x^{2}+\frac{1}{2}y^{2} =\frac{1}{2}c^{2}$$ $$x^{2}+y^{2}=c^{2}$$ I think that they multiplied by two on last part and then squared the function. However im not sure how they integrated the constant the way that they did. So any clarity on this matter would be greatly appreciated?