Solving Integral and ODE Problem

In summary, the conversation revolves around solving an integral and substitution in an ODE. The first person got stuck on the Integral and provided their solution, but the correct result was supposed to be x + ln(x-1). The second person also tried substitution, but it didn't work and they asked for other ideas. Another person chimed in with a solution involving an integrating factor. Finally, there was a brief discussion on how to write integrals using the [tex] function.
  • #1
mmh37
59
0
1. Problem with Integral

I got stuck on the following Integal and can't find the mistake:

[tex]Integral(x/(x-1))[/tex]

let U' = x and V = (x-1)^(-1)
and U= 0.5x^2 V' = 1/(x-1)^2

so: [tex]x^2/(2(x-1))-1/2Integral(x^2/(x-1)^2[/tex]

algebraic division: [tex]x^2 : (x^2 -2x + 1) = 1- 1/(x-1)^2 + 1/(x-1)^2[/tex]

substituting back into equation gives:
[tex] 1/2 [x^2/(x-1) - x - ln (x-1)^2 x 1/(x-1)] = (x+1)/(2(x-1)) + ln(x-1)[/tex]

but the result is supposed to be:
[tex]x + ln(x-1)[/tex]

2. Substitution in ODE

[tex]xydy/dx + (x^2 + y^2 +x) = 0 [/tex]

I have tried to substitute z = xy and also z = x^2 + y^2, but that didn't work. Any other ideas?

Thank you!
 
Last edited:
Physics news on Phys.org
  • #2
PS: How can I write integrals with the [tex] function?
 
  • #3
For the first, Plus and Minus one from the top. This will give:
I (x - 1 + 1)/ (x - 1) dx
I 1dx + I 1/(x-1) dx
x + ln(x-1) + C
#

The second, I got:
y^2 = x(1-x)/(1+x) + C
However, I am new to ODE's so it's probably wrong.
 
  • #4
*lol* thanks... that was easy... I seem to have a tendency to make things more complicated than they actually are...:redface:

But thanks again!
 
  • #5
BTW, to do integrals in TeX:

\int f(x) dx
[tex]\int f(x) dx[/tex]

\int_0^5 f(x) dx
[tex]\int_0^5 f(x) dx[/tex]
 
  • #6
Hey mmy, the second one IS complicated. Just for the record in case you haven't figured it out, make it exact by finding an integrating factor. You know partial this, partial that, some arithmetic, get x. Solving, I get:

[tex]y(x)=\pm\frac{\sqrt{\frac{k}{x^2}-3x^2-4x}}{\sqrt{6}}[/tex]

with the sign dictated by the initial conditions.
 
  • #7
I got

[tex]
y(x) = \frac{1}{x}\sqrt{C - \frac{1}{2}x^4 - \frac{2}{3}x^3}
[/tex]
 
  • #8
twoflower said:
I got
[tex]
y(x) = \frac{1}{x}\sqrt{C - \frac{1}{2}x^4 - \frac{2}{3}x^3}
[/tex]

Which is the same as saltydog has, I see :)
 

What is the difference between an integral and an ordinary differential equation (ODE)?

An integral is a mathematical concept that represents the area under a curve, while an ODE is a type of differential equation that describes the relationship between a function and its derivatives.

How do I solve an integral?

To solve an integral, you need to use integration techniques such as substitution, integration by parts, or partial fractions. You can also use numerical methods such as the trapezoidal rule or Simpson's rule.

What methods can be used to solve an ODE?

There are several methods for solving an ODE, including separation of variables, the method of undetermined coefficients, and variation of parameters. You can also use numerical methods such as Euler's method or the Runge-Kutta method.

What are initial conditions in the context of ODEs?

Initial conditions are values of the dependent variable and its derivatives at a specific point in the independent variable. They are necessary for finding the particular solution to an ODE.

Can all integrals and ODEs be solved analytically?

No, not all integrals and ODEs have analytical solutions. Some integrals and ODEs may require advanced techniques or cannot be solved using known methods. In those cases, numerical methods can be used to approximate the solution.

Similar threads

  • Calculus and Beyond Homework Help
Replies
10
Views
439
  • Calculus and Beyond Homework Help
Replies
1
Views
491
  • Calculus and Beyond Homework Help
Replies
14
Views
389
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
621
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
760
  • Calculus and Beyond Homework Help
Replies
27
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top