# Solution for equation that models a car on a banked curve?

**URL:** <https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322>\
**Category:** Questions\
**Tags:** algebra, equation-solving, symbolic-computations\
**Created:** [January 3, 2023, 1:36am UTC](https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322 "2023-01-03T01:36:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![burbery1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/burbery1/32/5675_2.png) [@burbery1](https://community.wolfram.com/u/burbery1)\
**Post date:** [January 3, 2023, 1:36am UTC](https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322/1 "2023-01-03T01:36:30Z")

</div>

I have an equation that models a car on a banked curve that I want to solve for the angle:

```
eqn = m g Sin[\[Theta]] == m v^2/r

```

For some reason, Solve won’t find the solution when I constrain the solution between 0 and pi.  
Neither of the following lines worked:

```
Solve[eqn, \[Theta], Assumptions -> {0 <= \[Theta] <= \[Pi]}]
Solve[eqn && 0 <= \[Theta] <= \[Pi], \[Theta]]
Solve[m g Sin[\[Theta]] == m v^2/r && 
  0 <= \[Theta] <= \[Pi], \[Theta]]

```

How can I solve this equation?  
After typing Quit, Solve worked

```
Quiet@Solve[
  m g Sin[\[Theta]] == m v^2/r && 0 <= \[Theta] <= \[Pi], \[Theta], 
  Reals, Assumptions -> {0 <= \[Theta] < \[Pi]/2, 0 < v < Sqrt[g r], 
    g > 0, r > 0, v < Sqrt[g r]}]

```

The solution returned was

```
{{\[Theta] -> ArcSin[v^2/(g r)]}}

```

---

<div class="post-metadata">

**Author:** ![dontdont9](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dontdont9](https://community.wolfram.com/u/dontdont9)\
**Post date:** [January 3, 2023, 8:39am UTC](https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322/2 "2023-01-03T08:39:55Z")

</div>

Try

```
Reduce[m g Sin[θ]==m v^2/r&&0<=θ<=\[Pi]&&Element[m|g|r|v,Reals],θ]//Simplify

```

The result would be simpler if you tell it that m,g,r are positive,

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [January 3, 2023, 10:09am UTC](https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322/3 "2023-01-03T10:09:54Z")

</div>

Try:

```
Solve[m g Sin[\[Theta]] == m v^2/r && 0 <= \[Theta] <= \[Pi], \[Theta], Reals]

(*Simple solution on MMA 13.2.0*)

```

---

<div class="post-metadata">

**Author:** ![burbery1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/burbery1/32/5675_2.png) [@burbery1](https://community.wolfram.com/u/burbery1)\
**Post date:** [January 3, 2023, 3:02pm UTC](https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322/4 "2023-01-03T15:02:10Z")

</div>

I tried your solution, and it returned the input without solving it.  
This is the output I obtained

```
Solve[0.72934584563 g m == (m v^2)/r, 0.817365299581, Reals]

```

I entered Quit and it worked now.

---

<div class="post-metadata">

**Author:** ![mariuszi28cg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mariuszi28cg/32/308_2.png) [@mariuszi28cg](https://community.wolfram.com/u/mariuszi28cg)\
**Post date:** [January 3, 2023, 3:50pm UTC](https://community.wolfram.com/t/solution-for-equation-that-models-a-car-on-a-banked-curve/21322/5 "2023-01-03T15:50:37Z")

</div>

Try with fresh Kernel ?

```
$Version
(*"13.2.0 for Microsoft Windows (64-bit) (November 18, 2022)"*)

Remove["`*"];ClearAll["`*"];
Solve[m g Sin[\[Theta]] == m v^2/r && 0 <= \[Theta] <= \[Pi], \[Theta], Reals]

(*{{\[Theta] -> ConditionalExpression[\[Pi] - ArcSin[v^2/(g r)], Or[
And[
Inequality[-(g r)^Rational[1, 2], LessEqual, v, 
       LessEqual, (g r)^Rational[1, 2]], g > 0, r > 0], 
And[
Inequality[-(g r)^Rational[1, 2], LessEqual, v, 
       LessEqual, (g r)^Rational[1, 2]], g < 0, 
      r < 0]]]}, {\[Theta] -> 
   ConditionalExpression[ArcSin[v^2/(g r)], Or[
And[
Inequality[-(g r)^Rational[1, 2], LessEqual, v, 
       LessEqual, (g r)^Rational[1, 2]], g > 0, r > 0], 
And[
Inequality[-(g r)^Rational[1, 2], LessEqual, v, 
       LessEqual, (g r)^Rational[1, 2]], g < 0, r < 0]]]}}*)

```
