I Integral confusion for a simple Differential Equation

Click For Summary
The discussion centers on a misunderstanding of integrating a differential equation, specifically dy/dx = y/x. The user incorrectly concludes that x = y after integrating without considering the constant of integration. The correct approach involves integrating both sides, leading to ln|y| = ln|x| + ln|A|, which simplifies to y = Ax. The key takeaway is the importance of including the constant of integration in differential equations.
anthraxiom
Messages
19
Reaction score
3
TL;DR
Say there is a function y where dy/dx=y/x. Now if we rearrange we get dy/y= dx/x. integrating both sides, we get lny=lnx. , x=y
I simply don't know where I'm going wrong in this. lets for example say y=2x. dy/dx=y/x=2
now if we look at only the differential equation we see that dy/y=dx/x, solving we get x=y
I have no idea how this is happening, please , if possible guide my foolish thoughts to where I have gone wrong.
 
Physics news on Phys.org
You are forgetting the constant of integration. <br /> \int \frac{dy}{y} = \int \frac{dx}{x} \Rightarrow \ln |y| = \ln |x| + \ln |A| \Rightarrow y = Ax.
 
pasmith said:
You are forgetting the constant of integration. <br /> \int \frac{dy}{y} = \int \frac{dx}{x} \Rightarrow \ln |y| = \ln |x| + \ln |A| \Rightarrow y = Ax.
thanks :D
 
Last edited: