Something wrong? can't find my error.

  • Thread starter Thread starter shseo0315
  • Start date Start date
  • Tags Tags
    Error
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~~
 
e^{x^2+lnx+c}=e^{x^2}e^{lnx}e^c=xe^{x^2}e^c

You seem to have confused multiplication and addition for your last step
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top