Solving ODE dy/dx = (x+y)^2 , y(0)=1

  • Thread starter Thread starter mat331760298
  • Start date Start date
  • Tags Tags
    Ode
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
mat331760298
Messages
13
Reaction score
0
solve dy/dx = (x+y)^2 , y(0)=1

i let w = (x+y) and got the above equation rearranged to dw/dx - 1=w^2

after solving for C i got y=tan(x-pi/4) - x

just wanted to check my answer
 
Physics news on Phys.org


w = (x+y) then
dw/dx = 1+dy/dx
dw/dx = 1 + w^2

this part looks ok
 


then
w = x+y=x+(tan(x-pi/4)-x) = tan(x-pi/4)
dw/dx = sec(x-pi/4)^2 = 1+tan(x-pi/4)^2
 


just remains to check IC
w(0) = tan(-pi/4)

does that look correct?