Line integrate find C something wrong. dy/dx+Q(x)*y=F(x)

In summary: You are using t and x to mean different things, and it's confusing you. Try to be more clear with your notation.In summary, the conversation discusses solving a differential equation using the integrating factor method. The problem involves finding the value of C in the solution, which can be done by applying the initial condition and solving for C. However, there may be some confusion in the solution due to unclear notation.
  • #1
DragonIce
4
0

Homework Statement



[tex]\frac{dy}{dx}+\frac{y}{(1+x^2)} = \frac{\arctan x}{(1+x^2)}[/tex] when
[tex]y(\frac{\pi}{4})=0[/tex]

Homework Equations



[tex]\frac{dy}{dx}+Q(x)*y=F(x)[/tex]

The Attempt at a Solution



y=u*v
[tex]u*\frac{dv}{dx}+v*(\frac{du}{dx}+\frac{u}{(1+x^2)})=\frac{\arctan x}{(1+x^2)}[/tex]
[tex]\frac{du}{dx}+\frac{u}{(1+x^2)}=0[/tex]
[tex]\int\frac{1}{u}\,du=-\int\frac{1}{(1+x^2)}\,dx [/tex]
[tex]\ln u=-\arctan x [/tex]
[tex]t=\arctan x[/tex]
[tex]t'=\frac{1}{(1+x^2)}[/tex]
[tex] u=\frac{1}{e^t} [/tex]
So let's go back to
[tex]u*\frac{dv}{dx}+v*(\frac{du}{dx}+\frac{u}{(1+x^2)})=\frac{\arctan x}{(1+x^2)}[/tex]
[tex]\frac{1}{e^t}*\frac{dv}{dx}=\frac{t}{(1+x^2)}[/tex]
[tex]v=\int\frac{t*e^t}{(1+x^2)}\,dx[/tex]
Integrating by parts...
[tex]v=t * e^t-e^t*dt+C[/tex]
Going back to y=u*v
[tex]y=t-t'+\frac{C}{e^t}[/tex] - global answer.

The problem starts now... I need to find C when
[tex]y(\frac{\pi}{4})=0[/tex] so i get

[tex]\arctan(\frac{pi}{4})-\frac{1}{(1+\frac{pi^2}{16})}+\frac{C}{e^{\arctan(\frac{pi}{4})}}=0[/tex]

And now i am clueless how to find C. Becouse I cannot find arctan pi/4 and there is a problem with pi^2/16+1
I assume that C=0 becouse graphic of arctan x and 1/(x^2+1) are very close in point 0.79 (pi/4), but i cannot prove it
[tex]C=e^{\arctan(\frac{pi}{4})}*(\frac{1}{(\frac{pi^2}{16}+1)}-\arctan(\frac{pi}{4}))[/tex]
I have to find rational answer...
 
Last edited:
Physics news on Phys.org
  • #2
DragonIce said:

Homework Statement



[tex]\frac{dy}{dx}+\frac{y}{(1+x^2)} = \frac{\arctan x}{(1+x^2)}[/tex] when
[tex]y(\frac{\pi}{4})=0[/tex]

Homework Equations



[tex]\frac{dy}{dx}+Q(x)*y=F(x)[/tex]



The Attempt at a Solution



y=u*v
[tex]u*\frac{dv}{dx}+v*(\frac{du}{dx}+\frac{u}{(1+x^2)})=\frac{\arctan x}{(1+x^2)}[/tex]
[tex]\frac{du}{dx}+\frac{u}{(1+x^2)}=0[/tex]
[tex]\int\frac{1}{u}\,du=-\int\frac{1}{(1+x^2)}\,dx [/tex]
[tex]\ln u=-\arctan x [/tex]
[tex]t=\arctan x[/tex]
[tex]dt=\frac{1}{(1+x^2)}[/tex]
That should be
$$dt = \frac{1}{(1+x^2)}\,dx$$
[tex] u=\frac{1}{e^t} [/tex]
So let's go back to
[tex]u*\frac{dv}{dx}+v*(\frac{du}{dx}+\frac{u}{(1+x^2)})=\frac{\arctan x}{(1+x^2)}[/tex]
[tex]\frac{1}{e^t}*\frac{dv}{dx}=\frac{t}{(1+x^2)}[/tex]
[tex]v=\int\frac{t*e^t}{(1+x^2)}\,dx[/tex]
Integrating by parts...
[tex]v=t * e^t-e^t*dt+C[/tex]
That's wrong. You can't have a lone dt sitting around.
Going back to y=u*v
[tex]y=t-dt+\frac{C}{e^t}[/tex] - global answer.

The problem starts now... I need to find C when
[tex]y(\frac{\pi}{4})=0[/tex] so i get

arctan pi/4-1/(1+pi^2/16)+C/e^arctan pi/4=0

And now i am clueless how to find C. Becouse I cannot find arctan pi/4 and there is a problem with pi^2/16+1
I assume that C=0 becouse graphic of arctan x and 1/(x^2+1) are very close in point 0.79 (pi/4), but i cannot prove it
 
  • #3
vela said:
That's wrong. You can't have a lone dt sitting around.

[tex] (u*v)'=u'*v+u*v'[/tex]
I meant it like dt=t'
I should write ' instead of d, but i am right here i think.
If u=f(x) and v=e^q(x)
Then (u*v)'=f'(x)*e^q(x)+f(x)*q'(x)*e^q(x)
It doesn't solve my problem with Constant
 
  • #4
No, that's not right.
 
  • #5
Anyway if you are right i still don't know what to do with
arctan pi/4-1+C/e^arctan pi/4=0
C=e^arctan x - arctan x * e^arctan x
I have to transform it somehow to get rational answer
 
  • #6
You're all over the place with that. Try and treat it more carefully. First write it as:

[tex]y'+\frac{1}{1+x^2}y=\frac{\arctan(x)}{1+x^2}[/tex]

so the integrating factor is:

[tex]\mu=e^{\arctan(x)}[/tex]

apply that to both sides and integrate to get:

[tex]\int d\left(y e^{\arctan(x)}\right)=\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]

or:

[tex]ye^{\arctan(x)}=\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]

so now you just have to integrate

[tex]\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]

You can do that right?
 
  • #7
jackmell said:
You're all over the place with that. Try and treat it more carefully. First write it as:

[tex]y'+\frac{1}{1+x^2}y=\frac{\arctan(x)}{1+x^2}[/tex]

so the integrating factor is:

[tex]\mu=e^{\arctan(x)}[/tex]

apply that to both sides and integrate to get:

[tex]\int d\left(y e^{\arctan(x)}\right)=\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]

or:

[tex]ye^{\arctan(x)}=\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]

so now you just have to integrate

[tex]\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]

You can do that right?

well i did that... if you look carefully you can notice that i treat t=arctan(x)
so basicaly [tex]\int e^t\frac{t}{1+x^2}dx[/tex] equal to [tex]\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]
and my answer is [tex]v=\arctan(x)*e^{\arctan(x)}-\frac{e^{\arctan(x)}}{x^2+1}+C[/tex] and then i turn back to y=u*v and get[tex]y=\arctan(x)-\frac{1}{x^2+1}+\frac{C}{e^{\arctan(x)}}[/tex] i need to aply that [tex]y(\frac{pi}{4})=0[/tex] and find C, but i am stack.
 
  • #8
You shouldn't have t's and x's in the same integrand. Start with:

[tex]\int e^{\arctan(x)} \frac{\arctan(x)}{1+x^2}dx[/tex]

and let:

[tex]u=e^{\arctan(x)}[/tex]

then:

[tex]du=\frac{e^{\arctan(x)}}{1+x^2}dx[/tex]

now substitute all that in the integral to get:

[tex]\int \ln(u)du[/tex]

see, all u's now. Now integrate that and don't forget the constant of integration.
 
  • #9
DragonIce said:
well i did that... if you look carefully you can notice that i treat t=arctan(x) so basically
[tex]\int e^t\frac{t}{1+x^2}dx[/tex] equal to [tex]\int e^{\arctan(x)}\frac{\arctan(x)}{1+x^2}dx[/tex]
and my answer is [tex]v=\arctan(x)*e^{\arctan(x)}-\frac{e^{\arctan(x)}}{x^2+1}+C[/tex]
Which isn't correct. If you differentiate your answer, you do not get the integrand back. From here, it appears your mistake is resulting from your sloppy notation.
 

Related to Line integrate find C something wrong. dy/dx+Q(x)*y=F(x)

1. What is line integration?

Line integration is a mathematical technique used to calculate the area under a curve or the volume under a surface. It involves integrating a function along a specific path or line.

2. What does "find C" mean in the equation?

In the equation, "C" represents the constant of integration. It is added to the result of the integration to account for any unknown values or initial conditions.

3. How do I know if there is something wrong with my line integral?

If your line integral does not match the expected result or if it produces a nonsensical answer, there may be an error in the integration process or in the given equation. Double check your calculations and make sure all variables are properly defined.

4. What does dy/dx+Q(x)*y=F(x) represent?

This is a general form of a first-order differential equation, which is used to model various physical and mathematical phenomena. The term "dy/dx" represents the derivative of the function y with respect to x, and Q(x) and F(x) are functions of x.

5. Can line integration be applied to any type of curve?

No, line integration is typically used for smooth curves that can be represented by a continuous function. It may not work for discontinuous or infinitely oscillating curves.

Similar threads

  • Calculus and Beyond Homework Help
Replies
19
Views
805
  • Calculus and Beyond Homework Help
Replies
5
Views
655
  • Calculus and Beyond Homework Help
Replies
3
Views
367
  • Calculus and Beyond Homework Help
Replies
3
Views
614
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
722
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
16
Views
600
  • Calculus and Beyond Homework Help
Replies
8
Views
783
  • Calculus and Beyond Homework Help
Replies
6
Views
791
Back
Top