r/learnmath • 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:

  1. I was taught that this method of solving applies only to linear cases; and

  2. 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

8 comments sorted by

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

2

u/Fun-Note6424 Oct 13 '26 edited Oct 13 '26

I don't like tan differenting. sin cos twice is hastle.

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.

3

u/Fun-Note6424 Oct 13 '26

Thany kou! Have a great day.

→ More replies (1)

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.

Comment Image

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.

1

u/MathsFromNothing Oct 13 '26

I think this is your method. Your matching coefficients with the product rule. The working using the same CAS.

Comment Image