Something wrong? can't find my error.

  • Thread starter Thread starter shseo0315
  • Start date Start date
  • Tags Tags
    Error
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 1K views
shseo0315
Messages
19
Reaction score
0

Homework Statement



x dy/dx -y = 2x^2 y, y(1)=1

Homework Equations


The Attempt at a Solution



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

int 1/y dy = int (2x^2+1)/x dx

int 1/y dy = int 2x dx + int 1/x dx

ln y = x^2 + lnx + c

y = exp(x^2 + c) + x and in this case initial condition doesn't work.

please help. I can't find what went wrong.

The answer turns out to be y = x exp(x^2-1).

help~~
 
Physics news on Phys.org
shseo0315 said:

Homework Statement



x dy/dx -y = 2x^2 y, y(1)=1

Homework Equations





The Attempt at a Solution



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

int 1/y dy = int (2x^2+1)/x dx

int 1/y dy = int 2x dx + int 1/x dx

ln y = x^2 + lnx + c

y = exp(x^2 + c) + x and in this case initial condition doesn't work.
Your error is in the line above. Since lny = x^2 + lnx + C, then y = e^(lnx + x^2 + C). Now think about the laws of exponents, particularly that a^(m + n) = a^m * a^n.
shseo0315 said:
please help. I can't find what went wrong.

The answer turns out to be y = x exp(x^2-1).

help~~