Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. myfunc[x_] := Piecewise[{{c x^2 + 2 x, x <= 2}, {x^3 - c x, True}}];
  2. lim1 = Limit[myfunc[x], x -> 2, Direction -> -1]
  3. lim2 = Limit[myfunc[x], x -> 2, Direction -> 1]
  4. sol = c /. First@Solve[{lim1 == lim2}, c]
  5.  
  6. (*2/3*)
  7.  
  8. Plot[myfunc[x] /. c -> sol, {x, 1, 3}]
  9.  
  10. D[(myfunc[x] /. c -> sol), x]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement