Guest User

Untitled

a guest
May 20th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. f1[x_] := x/2 + 5
  2. f2[x_] := 5 - x^2
  3. f3[x_] := 4 x
  4.  
  5. x1 = x /. Solve[f2[x] == f3[x], x][[2]]
  6. x2 = x /. Solve[f1[x] == f3[x], x][[1]]
  7.  
  8. Show[
  9. RegionPlot[
  10. f2[x] <= y <= f1[x] && 0 <= x <= x1 ||
  11. f3[x] <= y <= f1[x] && x1 <= x <= x2 ,
  12. {x, 0, x1 + 0.5}, {y, 0, f1[x1 + 1]}
  13. ],
  14. Plot[{f1[x], f2[x], f3[x]}, {x, 0, 2}]
  15. ]
Add Comment
Please, Sign In to add comment