Solve second order diff equation using substitution

In summary, the conversation discusses the process of solving a differential equation by substituting a new variable and rewriting the equation in terms of that variable. The conversation also mentions using the chain rule and variation of parameters to find a specific solution to the equation.
  • #1
Gekko
71
0

Homework Statement



d2y/dx2-dy/dx+y*exp(2x) = x*exp(2x)-1

substitute t=exp(x) and set z(t)=y(x) and rewrite hence find all solutions

The Attempt at a Solution



Rewriting gives:
d2z/dt2-dz/dt+z*t^2=(ln(t) * t^2) - 1

however I don't see how this in any way helps us...
 
Physics news on Phys.org
  • #2
You haven't changed the derivatives properly. You cannot just replace "dy/dx" with "dy/dt". You have to use the chain rule.

dy/dx= (dy/dt)(dt/dx) so if t= e^x, dy/dx= e^x(dy/dt)= t(dy/dt).

d^2y/dx^2= (d/dx)(dy/dx)= d/dx(t dy/dt)= t(d/dt(t(dy/dt)). By the product rule, that is t^2 d^2y/dt^2+ t dy/dt.
The equation becomes (t^2 d^2y/dt^2+ t dy/dt)- t dy/dt+ t^2 y= t^2(d^2y/dt^2+ y)= t^2ln(t)- 1 so that d^2y/dt^2+ y= ln(t)- t^{-2}.

The related homogeneous equation is easy to solve and I would recommend "variation of parameters" to find a specific solution to the entire equation.
 
  • #3
first of all:
"d2y/dx2" does not equals "d2z/dt2" and "dy/dx" does not equals "dz/dt".

but you right in saying that exp(2x) = t^2 and x = ln(t)

you need to use the "chain rule" in differentiation !

t=e^x

z(t)=y(x)

dz(t)/dx = dy(x)/dx => (dz(t)/dt)*(dt/dx) = y'(x)

*try to go from here :)
*don't forget the differentiate correctly when you do d^2z(t)/dx^2 = d^2y(x)/dx^2, it has the form (u*v)' = u'*v + u*v'

Hope it will lead you to the right answer ! :)
 
  • #4
HallsofIvy beat me to it :)

also I love Lagrange's variation of parameters !

Here is how you do it:

(( in your case y=z, x=t ))

y1(x), y2(x) : are two linearly independent homogeneous solutions.
g(x) : the particular expression, in your case = ln(t)- t^{-2}.

u'1(x)*y1(x) + u'2(x)*y2(x) = 0
u'1'(x)*y'1(x) + u'2(x)*y'2(x) = g(x)

solve the system of equations and find u1(x) and u2(x) by integration.
the particular part of the answer will be:

Y(x) = u1(x)*y1(x) + u2(x)*y2(x).

the complete answer for the ODE (A,B are constants):

y(x) = [A*y1(x)] + [B*y1(x)] + [u1(x)*y1(x) + u2(x)*y2(x)].

*Lagrange was a genius !
 

1. How do I solve a second order differential equation using substitution?

To solve a second order differential equation using substitution, you first need to rearrange the equation to put it in standard form. This means that all the terms should be on one side and the other side should be equal to zero. Then, you can substitute a new variable, usually denoted as u or v, for the original variable. This will create a first order differential equation, which can then be solved using standard methods.

2. Why do we use substitution to solve second order differential equations?

Substitution is used to simplify the process of solving a second order differential equation. It allows us to reduce the equation to a first order differential equation, which is typically easier to solve. It also helps us to identify patterns and relationships between different variables in the equation.

3. What are the steps for solving a second order differential equation using substitution?

The steps for solving a second order differential equation using substitution are as follows:

  1. Rearrange the equation to put it in standard form.
  2. Substitute a new variable for the original variable.
  3. Differentiate the new equation with respect to the new variable.
  4. Substitute back the original variable and solve the resulting first order differential equation.

4. Can any second order differential equation be solved using substitution?

No, not all second order differential equations can be solved using substitution. The equation must first be in standard form and have a form that is amenable to substitution. Additionally, the equation must be solvable using standard methods for first order differential equations.

5. Are there any common mistakes to avoid when solving a second order differential equation using substitution?

One common mistake is not properly rearranging the equation to put it in standard form before substituting a new variable. This can lead to errors and make it difficult to solve the resulting first order differential equation. It is also important to be careful with differentiating the new equation and substituting back the original variable to avoid making calculation errors.

Similar threads

Replies
4
Views
497
Replies
1
Views
607
  • Calculus and Beyond Homework Help
Replies
2
Views
731
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
909
  • Calculus and Beyond Homework Help
Replies
2
Views
384
  • Calculus and Beyond Homework Help
Replies
8
Views
760
Replies
8
Views
792
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
256
Back
Top