Mathematica problem regarding plotting many functions in one graph

  • Thread starter kptsilva
  • Start date
  • #1
33
0
hey guys i have a problem regarding plotting several graphs in one plot via mathematica. I want this plot's x axis to be in a log scale so i used loglinear command.

here the plot is b[a] vs. a.
w[a] is part of my differential equation and it depends upon a and c.
i have written the program the program for c=1 below. I want to plot for several other c values(like c=1/3,1/2 and 2/3) in the same plot. is it possible via mathematica?

c = 1;
w[a_] := 2*a^(3*(1 + c))/(1 + 2*a^(3*(1 + c)));

fun = 2/3 a^2 b''[a] + (1 - w[a]) a b'[
a] - (1 + w[a]) (1 - 3 c w[a]) b[a]
test = NDSolve[{fun == 0, b'[10^(-4)] == 0, b[10^(-4)] == 1},
b, {a, 10^-4, 10}]
LogLinearPlot[Evaluate[b[a] /. test], {a, 10^-4, 10},
PlotRange -> All]
 

Answers and Replies

  • #2
33
0
any help would be much appreciated
 

Related Threads on Mathematica problem regarding plotting many functions in one graph

  • Last Post
Replies
5
Views
3K
  • Last Post
Replies
0
Views
1K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
2
Views
14K
Replies
2
Views
3K
Replies
1
Views
945
Replies
1
Views
2K
Replies
10
Views
848
Replies
6
Views
627
Top