1
$\begingroup$

I am trying to solve equation:

Solve[{y1 == -a*Exp[-b*x1], y2 == -a*Exp[-b*x2]}, {a, b}]

using Solve method but I receive error: Solve::ivar: E^kb t is not a valid variable.I am not reallty sure why I receive this kind of error and how can I make mathematica solve this equation.

$\endgroup$
1
  • 1
    $\begingroup$ Maybe you had a prior definition such as a=t*Exp[kb]? $\endgroup$ Mar 2, 2018 at 19:10

1 Answer 1

1
$\begingroup$

The following works.

Solve[{y1 == -a*Exp[-b*x1], y2 == -a*Exp[-b*x2]}, {a, b}, Reals]

{{a->ConditionalExpression[-y1 (y1/y2)^(-(x1/(x1-x2))),(y1>0&&y2>0)||(y1<0&&y2<0)],b->ConditionalExpression[-(Log[y1/y2]/(x1-x2)),(y1>0&&y2>0)||(y1<0&&y2<0)]}}

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.