Ask Your Question
1

Solving quadratic inequality

asked 2020-05-08 12:31:51 -0500

gg gravatar image

updated 2020-05-08 23:53:36 -0500

How to solve the following quadratic inequality:

$$0.3 < \frac{2x}{x^{2} + 4} <0.5$$

The call to solve function return the following output:

sage: 
sage: solve( [(2*x / (4+x**2)) < .5 , (2*x / (x**2 + 4)) > .3 ], x, to_poly_serve=True )
[[-2*x/(x^2 + 4) + 0.5 > 0, 2*x/(x^2 + 4) - 0.3 > 0]]
sage:

By hand calculation I found the following answer $(2/3, 2) \cup (2, 6)$.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2020-05-08 12:37:53 -0500

tmonteil gravatar image

updated 2020-05-08 12:42:58 -0500

Symbolic and numerical do not like eachother, instead of 0.5 and 0.3, use 1/2 and 3/10 :

sage: solve( [(2*x / (4+x**2)) < 1/2 , (2*x / (x**2 + 4)) > 3/10 ], x)
[[(2/3) < x, x < 6, x - 2 != 0]]
edit flag offensive delete link more

Comments

but the answer doesn't contain the last part (2, 6)

gg gravatar imagegg ( 2020-05-08 12:40:27 -0500 )edit
2

Yes, it does: the first two inequalities define the interval $(2/3,6)$, the last term removes ${2}$ from the interval.

tmonteil gravatar imagetmonteil ( 2020-05-08 12:42:48 -0500 )edit

Thanks, I didn't notice it.

gg gravatar imagegg ( 2020-05-08 23:50:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-05-08 12:31:51 -0500

Seen: 66 times

Last updated: May 08