# How can we know how many solutions an equation has?

## Main Question or Discussion Point

I have this equation:

$$\frac{x+2}{x^2+3}-0.3$$

I don't want to solve it, but I have drawn it's graph on a graph program, and there is a line that is little below the x-axis; and when I scroll to the left of the graph, it seems that at more negative values the line is getting higher and higher.

My question is that how can I know whether it will touch the x-axis or not. In other words, how can I know how many solutions there are to this function?

## Answers and Replies

To say that the function touches the x-axis is another way of stating that for some x-value the resulting value will be 0 (i.e. the y-value is 0). Thus what you want to do is determine whether:
$$\frac{x+2}{x^2+3}-0.3 =0$$
Consider the function:
$$f(x) = \frac{10x+20}{x^2+3} - 3$$
This is just your equation scaled by a factor 10 to make the number easier to work with. Clearly scaling won't change the number of intersections with the x-axis. Now note,
$$f(-2) = -3 < 0$$
$$f(0) = 11/3 > 0$$
$$f(8) = -101/67 < 0$$
and since f is continuous it must intersect the x-axis between -2 and 0 (when going from negative to positive), and again between 0 and 8 (when going from positive to negative).

To see that these are the only solutions just rewrite f(x) as:
$$f(x) =\frac{10x+20}{x^2+3} - 3\frac{x^2+3}{x^2+3} = \frac{-3x^2 + 10x + 11}{x^2+3}$$
so f(x) =0 precisely when
$$-3x^2+10x+11=0$$
but a quadratic function intersects the x-axis at most twice, and we have found two intersections so precisely twice. Alternatively you could just have found this quadratic function and computed the discriminant and noted that it was positive.

To see that these are the only solutions just rewrite f(x) as:
$$f(x) =\frac{10x+20}{x^2+3} - 3\frac{x^2+3}{x^2+3} = \frac{-3x^2 + 10x + 11}{x^2+3}$$
so f(x) =0 precisely when
$$-3x^2+10x+11=0$$
but a quadratic function intersects the x-axis at most twice, and we have found two intersections so precisely twice. Alternatively you could just have found this quadratic function and computed the discriminant and noted that it was positive.
I understand that a quadratic function intersects the x-axis at most twice, but what the denominator of $$\frac{-3x^2 + 10x + 11}{x^2+3}?$$ Surely that denominator changes the degree of the equation and hence the number of solutions?

I understand that a quadratic function intersects the x-axis at most twice, but what the denominator of $$\frac{-3x^2 + 10x + 11}{x^2+3}?$$ Surely that denominator changes the degree of the equation and hence the number of solutions?
Actually it doesn't change the number of solutions because a/b = 0 if and only if a=0 (to see this just multiply by b to get a=0b=0). Thus if we have,
$$h(x) = \frac{f(x)}{g(x)} \qquad g(x) \not= 0$$
Then h(x)=0 if and only if f(x)=0.
EDIT: From these observations it follows that the set of roots of h and f are equal, and therefore they have the same number of roots.