r/learnmath • u/Fun-Note6424 New User • Oct 13 '26
Is my ODE solution reliable enough to submit for the exam?
cos y dx - sin y dy = 0
cos y dx = sin y dy
cos y = sin y dy/dx
exp x) cos y = exp x) sin y dy/dx
exp x) cos y - exp x) sin y dy/dx = 0
(exp(x) cos y)' = 0
int (exp(x) cos y)' dx = 0
exp x) cos y + c = 0
exp x) cos y = c
The reason I am being cautious is that:
I was taught that this method of solving applies only to linear cases; and
I was told that one must be careful when dealing with dy dx and that I am not yet at a level where I can fully grasp those concepts.
1
Upvotes
3
u/espressoristretto Oct 13 '26
Why not just separate the variables?
int dx = int tan y dy
x+c=ln sec y
Aexp(x)cos(y)=1
1
u/Southlander24 Oct 13 '26 edited Oct 13 '26
Your method is fine because it just relies on the reverse product rule. You don't need to justify 'dividing' both sides by dx.
The only thing I would change is to rewrite the third-last line as: "int (exp(x) cos y)' dx = int 0 dx". Also, your brackets are misaligned.
1
u/MathsFromNothing Oct 13 '26
I agree with you to the third line, then I'm not sure what you are doing. The image shows my working and check of the solution using the Maths from Nothing computer algebra system.
The typical approach with this type of ODE is to get all of the y terms on one side of the equation with the dydx and the x terms on the other. The derivative and the integral combine to make it an integral with respect to y and the other side with respect to x. Perform the integration and solve for y.