Ricatti's Equation (non linear ODE)

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Linear Ode
Click For Summary

Homework Help Overview

The discussion revolves around solving the Riccati equation y' = y^2 - xy + 1 using the substitution y = x + 1/u. Participants explore the implications of this substitution and the resulting linear first-order non-homogeneous equation.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants discuss the substitution leading to a linear equation and the application of the integrating factor method. There is uncertainty regarding the integration of a non-elementary function and how to express the solution in terms of the error function. Questions arise about handling the bounds of integrals and the implications of the fundamental theorem of calculus.

Discussion Status

Some participants have provided guidance on interpreting the integral and the error function, while others express confusion about the change of variables and the treatment of indefinite integrals. The discussion reflects a range of interpretations and attempts to clarify the mathematical concepts involved.

Contextual Notes

Participants note that the error function has not been covered in class, leading to uncertainty about its manipulation. There is also mention of differing expectations regarding the treatment of integrals in the context of homework assignments.

Saladsamurai
Messages
3,009
Reaction score
7

Homework Statement



Solve [itex]y' = y^2 - xy +1 \qquad(1) \qquad ,[/itex] using the substitution y = x + 1/u

The Attempt at a Solution



Upon substitution, I arrive at

[tex]du/dx - xu = 1[/tex]

which is linear/1st order/non-homogenous. When I apply the integrating factor method, I arrive at

[tex]u(x) = e^{\frac{1}{2}x^2}\left ( \int e^{-\frac{1}{2}x^2}dx + C\right ) \qquad(2)[/tex]

I am not sure how to deal with (2) as it is non integrable in terms of elementary functions. When I solve (1) using Wolfram Alpha, the solution is in terms of the error function. We have not covered the error function in class since it is assumed to be prior knowledge. However, I have never used it in any classes, so I am unsure how to manipulate (2) using erf().

From wiki, I have the definition to be

[tex]erf(x) = \frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2}\,dt\qquad(3)[/tex]and this is to be used to replace my integral in (2), namely

[tex]\int e^{-\frac{1}{2}x^2}dx + C\qquad(4)[/tex]

Now two things are confusing me here:

1) How to deal with the bounds in the integral in the definition of erf(x) since I am dealing with an indefinite integral in (4)?

2) How to deal with the factor of 1/2 that I have in (4)?
 
Physics news on Phys.org
Saladsamurai said:
Now two things are confusing me here:

1) How to deal with the bounds in the integral in the definition of erf(x) since I am dealing with an indefinite integral in (4)?
Recall the fundamental theorem of calculus, which (in part) relates the indefinite integral (antiderivative) and the definite integral. Given some function [itex]f(x)[/itex] that is integrable over some interval [itex]\[a,b\][/itex], then for [itex]x\in[a,b][/itex], [itex]\int_a^x f(x)dx[/itex] is an antiderivative of [itex]f(x)[/itex].

2) How to deal with the factor of 1/2 that I have in (4)?
This is a simple change of variables. The t in the definition of erf(x) is a dummy variable.
 
Hi D H :smile:

I guess I have never really figures out the fundamental theorem in the sense that I have never had to use it formally. I have always just 'taken' antiderivatives and not thought much about it. I have always just thought of indefinit integrals as having a constant in them, and then definite integrals do not (since we evaluate the integral over an interval). So I am not sure what exactly you are driving at with that point. Are you simply saying that since my antiderivative is only valid on [0, x] then so is my solution?

Also, I still don't really understand the change of variables here. Exactly where does the 1/2 go?
 
Saladsamurai said:

Homework Statement



Solve [itex]y' = y^2 - xy +1 \qquad(1) \qquad ,[/itex] using the substitution y = x + 1/u

The Attempt at a Solution



Upon substitution, I arrive at

[tex]du/dx - xu = 1[/tex]

which is linear/1st order/non-homogenous. When I apply the integrating factor method, I arrive at

[tex]u(x) = e^{\frac{1}{2}x^2}\left ( \int e^{-\frac{1}{2}x^2}dx + C\right ) \qquad(2)[/tex]

I am not sure how to deal with (2) as it is non integrable in terms of elementary functions. When I solve (1) using Wolfram Alpha, the solution is in terms of the error function. We have not covered the error function in class since it is assumed to be prior knowledge. However, I have never used it in any classes, so I am unsure how to manipulate (2) using

You need to get use to the integral sign. (2) is just a function, u(x). Often when solving DEs, you'll arrive at integrals you can't integrate so we leave them un-antidifferentiated. But that is perfectly fine and the expression you give for u(x) above is perfectly fine and whenever you need to evaluate it for any limits, any IVP, you simply evaluate the integral in the expression for u(x) anyway that is appropriate for you such as numerically. Also, that error function reported by Wolfram is just another name for that exponential integral, with some minor changes to it.
 
Hi jackmell! I am perfectly used to integrals; my professor is not. So leaving (2) as is, is not an option
 
Saladsamurai said:
Hi jackmell! I am perfectly used to integrals; my professor is not. So leaving (2) as is, is not an option

My apologies to you for insinuating that you might be a tad bit fearful or intimidated by integral signs showing up in equations. :)

And what do you mean leaving it as an integral equation is not an option? What's wrong with that when the best you could do is just call the integral part some function like, wait, let me think . . . oh yeah, let's call it the Erf function with some minor changes to it, and then just write:

[tex]u(x)=x+\frac{e^{\frac{x^2}{2}}}{C[1]-\sqrt{\frac{\pi }{2}} \text{Erfi}\left[\frac{x}{\sqrt{2}}\right]}[/tex]

That's not much different than just y=sin(x)
 
Last edited:

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K