Check general solution to ODE please

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
Lengalicious
Messages
162
Reaction score
0
Ok I'm new to ODE's so yeh, just to double check here's what I've done:

Question: Find the general solution to the following differential equation:
Equation: y'(x) = sec2 (3x + 1)

My answer: Don't I just integrate? So dy/dx = sec2 (3x + 1)

then, y = sec2 (3x + 1) dx

so y = (tan(3x+1))/3
 
Physics news on Phys.org
Lengalicious said:
Ok I'm new to ODE's so yeh, just to double check here's what I've done:

Question: Find the general solution to the following differential equation:
Equation: y'(x) = sec2 (3x + 1)

My answer: Don't I just integrate? So dy/dx = sec2 (3x + 1)

then, y = sec2 (3x + 1) dx

so y = (tan(3x+1))/3


don't forget +C
 
xplosiv3s said:
don't forget +C

Ah of course, thanks =)
 
HallsofIvy said:
Why not check it yourself- differentiate that function!

I wasn't worried as to whether my integration was wrong I was worried as to whether my methodology was wrong or not.
 
Lengalicious said:
I wasn't worried as to whether my integration was wrong I was worried as to whether my methodology was wrong or not.

Yes, you are correct but what he said will help verify wether your methodology is correct or not, because an appropriorate one would of course lead to the correct solution :)

as a rule of thumb:

when y=sec2(αx+b) and you want to find the integral:

then ∫sec2(αx+b)dx = 1/α*tan(αx+b)