1
   D[Tu1[x], {x, 2}] qu - Tu1[x] (fu0 + I w p) == Tou[x] f1

    D[T1[x], {x, 2}] q - T1[x] (f0 - b g0 + I w p)== 
 To[x] (f1 - b g1) - g1

For T1 , Range[0, L/2]

For Tu1, Range[L/2, La/2]

Here, there are two differential equations with coupled boundary conditions;

T1'[0]==0
Tu1[La/2] == 0
Tu1[L/2] == T1[L/2]
a4 Tu1'[L/2] == T1'[L/2]

And also,

Tou[x_] := E^(a3 x) c2 + E^(-a3 x) c3
To[x_] := 2 c1 Cosh[x a1] + a2

I know all constants in the equations.

I tried following code, but I coud not get answer, " error: not the same shape "

{T1, Tu1} = {T1, Tu1} /. 
  DSolve[{D[T1[x], {x, 2}] q - T1[x] (f0 - b g0 + I w p) - 
      To[x] (f1 - b g1) + g1 == 0, 
    D[Tu1[x], {x, 2}] qu - Tu1[x] (fu0 + I w p) - Tu[x] f1 == 0, 
    T1'[0] == 0, Tu1[L/2] == T1[L/2], a4 Tu1'[L/2] == T1'[L/2], 
    Tu1[La/2] == 0}, {T1, Tu1}, x]

How can I find solution of differential equations?

CanYusuf
  • 57
  • 1
  • 6
  • 1
    have you tried ?DSolve – chris Apr 08 '14 at 08:00
  • I have tried solving with Green's function technique, but failed – CanYusuf Apr 08 '14 at 08:01
  • 1
    what is Tou in the first equation? (which should have == instead of =) – chris Apr 08 '14 at 08:07
  • Sorry mate, I fixed now. – CanYusuf Apr 08 '14 at 08:12
  • no you haven't :-) – chris Apr 08 '14 at 08:17
  • now, ride on :) – CanYusuf Apr 08 '14 at 08:19
  • ok so now you have tried. Next step, give simple values to all the constants – chris Apr 08 '14 at 08:36
  • But @chris I forgat to say that g1 is unknown. I have to find T1 in terms of g1. Because ,I have one more condition to find g1. It is that integration of T1 between -L/2 and L/2 equas to 0. By using this conditions, I plan to find g1 – CanYusuf Apr 08 '14 at 08:58
  • g1 is a number which quantified by the boundary condition? – chris Apr 08 '14 at 11:23
  • g1 is calculated by the constant temperature condition which is that an integration of T1 between -L/2 and L/2 equals to 0. Therefore, after finding T1 in terms of g1, I will integrate it and then equalise the zero. After that I am gonna use NSolve[integration==0,g1] and got the g1. But I can not find T1, upper code says " ... not the same shape" something like that – CanYusuf Apr 08 '14 at 21:34
  • have you looked at http://mathematica.stackexchange.com/q/33538/1089 http://mathematica.stackexchange.com/a/6029/1089 http://mathematica.stackexchange.com/q/38264/1089 – chris Apr 09 '14 at 06:22
  • you should also look at tutorial/NDSolveBVP – chris Apr 09 '14 at 06:31

1 Answers1

2

This is not an answer to your question but a copy and paste from the documentation which you might find inspiring:

Boundary Value Problems with Parameters

In many of the applications where boundary value problems arise, there may be undetermined parameters, such as eigenvalues, in the problem itself that may be a part of the desired solution. By introducing the parameters as dependent variables, the problem can often be written as a boundary value problem in standard form.

For example, the flow in a channel can be modeled by

$$f'''-R\,((f')^2-f f'')+R\, a==0$$

where $R$ (the Reynolds number) is given, but a is to be determined.

To find the solution $f$ and the value of a, just add the equation a'==0.

This solves the flow problem with R==1 for f and a, plots the solution f and returns the value of a.

 Block[{R = 1}, 
   sol = NDSolve[{f'''[t] - R ((f'[t])^2 - f[t] f''[t]) + R a[t] == 0, 
                  a'[t] == 0, f[0] == f'[0] == f'[1] == 0, f[1] == 1}, {f, a}, t];
   Column[{Plot[f[t] /. First[sol], {t, 0, 1}],
           a[0] /. First[sol]}]]

enter image description here

Kuba
  • 136,707
  • 13
  • 279
  • 740
chris
  • 22,860
  • 5
  • 60
  • 149