Processing math: 100%
Ask Your Question
1

Solving quadratic inequality

asked 4 years ago

gg gravatar image

updated 4 years ago

How to solve the following quadratic inequality:

0.3<2xx2+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)(2,6).

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

tmonteil gravatar image

updated 4 years ago

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]]
Preview: (hide)
link

Comments

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

gg gravatar imagegg ( 4 years ago )
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 ( 4 years ago )

Thanks, I didn't notice it.

gg gravatar imagegg ( 4 years ago )

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: 4 years ago

Seen: 809 times

Last updated: May 09 '20