Finding the number of solutions to a given function/equation

  • Thread starter Ocata
  • Start date
In summary, there are six potential zeroes for the function f(t) = \frac{-75}{5pi}cos(\frac{pi*t}{10})-t+5, but only four of them are real. By using the first derivative of the function, it is possible to determine the two principle zeros and then find the other two complementary zeros by adding or subtracting a full period from the principle zeros. The function is strictly monotone in each interval between consecutive zeros of the first derivative, so there can only be one real zero in each interval. The values of the original function at the points where the first derivative has zeros near -12,
  • #1
Ocata
198
5
Hi,

Suppose I have a function, f(x). Is there a way to find how many solutions exist at a given x? For instance, suppose there is an equation,
f(x) = y = x^{2} - 1 = 0.

This is a parabola shifted down one unit and we can easily solve to find x = +1 and -1. And thus we know there are two solutions.

But is there a way to first arrive at the quantity 2, before (or instead of) actually solving the equation for x?

Thank you.
 
Mathematics news on Phys.org
  • #2
The answer is yes. (See https://en.wikipedia.org/wiki/Fundamental_theorem_of_algebra)

"The theorem is also stated as follows: every non-zero, single-variable, degree n polynomial with complex coefficients has, counted with multiplicity, exactly n roots."

Essentially, think of it this way. For a quadratic, there are two solutions. For a cubic, there are three. For a quartic there are four. But there's a catch. Some of the solutions might be complex numbers which mean they aren't real numbers. They'll have imaginary portions.

Let's take an example. For quadratic equations (degree of two, that is they have a leading term ## ax^2 ##) we have the quadratic formula and it has a discriminant.

[tex] D = b^2 - 4ac [/tex]

In your equation, the coefficients are (a, b, c) = (1, 0 , -1), so we can plug it in and discriminate among the roots.

[tex] D = 0^2 - 4 \cdot 1 \cdot (-1) \rightarrow D = 4 [/tex]

If the discriminant is positive, there are two real roots. (## D > 0 \rightarrow 2 ## real roots)
If the discriminant is zero, there is one real root. ( ## D = 0 \rightarrow 1 ## real root)
If the discriminant is negative, there are no real roots. ( ##D > 0 \rightarrow 0 ## real roots)

So, you should be able to get two roots, and in fact, it's trivial to show that ## f(-1) = 0, f(1) = 0 ## in your example. Two real roots at (-1, 0) and (1, 0).

For higher order polynomials, it gets more complicated. The best way for a beginner to see how many real roots exist is to graph with an application like payware Geometer sketchpad or freeware Geogebra . Wherever you have the curve cross the x-axis, you have a real root. To wit:

TwoRealRoots.png
 
Last edited:
  • Like
Likes Ocata
  • #3
Hi aikismos, thank you for responding. May I ask, what if I have a function:

f(t) = [itex] \frac{-75}{5pi}cos(\frac{pi*t}{10})-t+5 [/itex]

I graphed it on the program you suggested:

velocity1a_zpstjflsnkl.jpg


zoomed in:

velocity1b_zpsdhnuzplh.jpg
Is it possible to determine the quantity of roots this function will have before graphing or solving for t?
 
  • #4
Ocata said:
Hi aikismos, thank you for responding. May I ask, what if I have a function:

f(t) = [itex] \frac{-75}{5pi}cos(\frac{pi*t}{10})-t+5 [/itex]
There is the obvious way.

Take the first derivative of this function. Note that this derivative is periodic and solve for its two principle zeroes. The other zeroes can be found trivially. These are the places where the original function can have a local minimum or maximum. The original function must be either monotone increasing or monotone decreasing in the intervals between each pair of consecutive zeroes of its first derivative.

Evaluate the original function at the points where the first derivative has zeroes near -12, 2, 8 and 22. It is alternatively positive and negative at each of these points. So it must have a zero in each of the three intervals thus defined. It is strictly monotone in each of the intervals. So there can only be one zero in each interval.

There is a clear pattern in the values of the original function at its local minima and maxima. It is strictly positive at all such extreme points to the left of -12 and strictly negative at all extreme points to the right. So the three zeroes deduced above are the only ones that exist.
 
  • Like
Likes Ocata
  • #5
Hi jbriggs444,

Step one: Solve for the two principle zeros:

f(t) = [itex] \frac{-75}{5pi}cos(\frac{pi*t}{10})-t+5 [/itex]

f'(t) = [itex] \frac{d}{dt} \frac{-75}{5pi}cos(\frac{pi*t}{10})-t+5 [/itex]

= [itex] \frac{7.5}{5}sin(\frac{pi*t}{10}) -1[/itex] = 0

[itex][ sin(\frac{pi*t}{10}) = \frac{5}{7.5} ][/itex] = [itex][sin^{-1}(\frac{5}{7.5}) = \frac{pi}{10}t ][/itex] = [itex][\frac{10}{pi}sin(\frac{5}{7.5}) [/itex] = t_{1} = 2.322795272

and because of sin(x) = sin(pi - x) ===> [itex][\frac{pi}{10}t = pi ][/itex] => [itex] [t = pi(frac{10}{pi})][/itex] = > [itex] [t_{1} = 10][/itex]

so t_{2} = 10 - 2.322795272 = 7.677204728

The two principle zeros are: t_{1} = 2.322795272 and t_{2} = 7.677204728
jbriggs444 said:
These are the places where the original function can have a local minimum or maximum. .

The original function: f(t) = [itex] \frac{-75}{5pi}cos(\frac{pi*t}{10})-t+5 [/itex]

The derivative function = f'(t) = [itex] \frac{7.5}{5}sin(\frac{pi*t}{10}) -1[/itex]so you are saying where ever f'(t) = 0, that will be where f(t) has a maximum or minimum, correct?

So since the f'(t) is periodic, then the same value will repeat every full period or cycle?

[itex][\frac{pi}{10}t = 2(pi)] [/itex] => [t = [itex][2(pi)\frac{10}{pi}][/itex] => [t = 20]

So adding 20 to each of the principle values will produce the other t values where f(t) = 0.

t_{1} + 20 = 2.322795272 + 20 = 22.322795272 = t_{3}

t_{2} + 20 = 7.677204728 + 20 = 27.677204728 = t_{4}

t_{1} - 20 = 2.322795272 - 20 = -17.67720473 = t_{5}

t_{2} - 20 = 7.677204728 - 20 = -12.32279527 = t_{6}

Renaming all the values to reflect position, from least to greatest, on the t axis, we have:

[itex] t_{1} = -17.677[/itex], [itex] t_{2} = -12.322[/itex], [itex]t_{3} = 2.322 [/itex], [itex]t_{4} = 7.677 [/itex], [itex] t_{5} = 22.322 [/itex], [itex] t_{6} = 27.677 [/itex]

jbriggs444 said:
Evaluate the original function at the points where the first derivative has zeroes near -12, 2, 8 and 22. It is alternatively positive and negative at each of these points. So it must have a zero in each of the three intervals thus defined. It is strictly monotone in each of the intervals. So there can only be one zero in each interval.
f(t_{1}) = + 19.1184

f(t_{2}) = +20.8816

f(t_{3}) = -0.881608

f(t_{4}) =+0.881608

f(t_{5}) = -20.8816

f(t_{6}) = -19.1184

The corresponding graph would be:

velocity%20%200_zpstoespuhc.jpg
And we don't know the exact t values where f(t) = 0. We only know that the t values where f(t) = 0 will fall somewhere between the minimums and maximums with alternating signs.
velocity%20%200b_zpsjhhe0j9g.jpg
That is, f(t) = 0 when t is somewhere between -12 and +2.3, then somewhere between +2.3 and 7.6, and somewhere between 7.6 and 22.How was it determined that these are the only points where f(t) = 0? How can it be determined that there are no x-intercepts to the left of -17 or to the right of +27?

Thank you
 
Last edited:
  • #6
Ocata said:
How was it determined that these are the only points where f(t) = 0? How can it be determined that there are no x-intercepts to the left of -17 or to the right of +27?
In the range between t2 and t5, the original function is strictly monotone increasing or strictly monotone decreasing in each sub-interval. It can have at most one zero in each interval. This can be proven by using the mean value theorem.

The mean value theorem states that if a [differentiable] function f is defined over a closed interval [a,b] then there is at least one point x within the open interval (a,b) where ##f'(x) = \frac{f(b)-f(a)}{b-a}##.

Suppose that there were two zeroes of our original function f within one of the three sub-intervals. Then by the mean value theorem, there would need to be a point between those two zeroes where f'(x) is equal to zero. But we've already identified all of the zeroes of f'. There are no extra zeroes to be found in any of these three sub-intervals. Contradiction. So the three zeroes we know about in this range are the only ones there are.

Now consider an arbitrary interval from tn to tn+1 for n less than or equal to 1. f(tn) and f(tn+1) are both clearly positive. f is either strictly monotone increasing or strictly monotone decreasing over each such interval. All of the values taken on by f over the interval must be between its values at the endpoints. So its value must be strictly positive throughout the interval. It cannot have a zero. f is strictly positive everywhere to the left of t2

The same argument applies to the right of t5. f will be strictly negative everywhere to the right of t5
 
  • Like
Likes Ocata

FAQ: Finding the number of solutions to a given function/equation

How do I find the number of solutions to a given function/equation?

To find the number of solutions to a given function or equation, you can use various methods such as graphing, substitution, or elimination. By graphing the function or equation, you can visually determine the number of intersection points on the graph, which represents the number of solutions. Substitution involves plugging in different values for the variable and solving for the corresponding output. If the output is the same for multiple values of the variable, then there are multiple solutions. Elimination involves manipulating the equation to eliminate one variable and solve for the other, which can help identify if there are any solutions or not.

Can a function or equation have more than one solution?

Yes, a function or equation can have more than one solution. This means that there can be multiple values for the variable that satisfy the equation and make it true. However, some functions or equations may only have one solution or no solution at all.

How can I tell if a function or equation has no solution?

If you are unable to find any value for the variable that satisfies the equation, then the function or equation has no solution. This can be determined by solving the equation and reaching a contradiction, such as 0=1. Additionally, graphing the function or equation and seeing no intersection points can also indicate that there are no solutions.

Are there any cases where a function or equation has an infinite number of solutions?

Yes, there are cases where a function or equation can have an infinite number of solutions. This can happen when the equation has a variable that can be eliminated, resulting in the equation being true for any value of the remaining variable. For example, the equation 3x+6y=12 can be simplified to x+2y=4, which means that any value of y will result in a corresponding value for x that satisfies the equation.

How do I use the number of solutions to interpret a function or equation?

The number of solutions to a function or equation can provide valuable information about the behavior of the function or the relationship between the variables. For example, if a function has only one solution, it can indicate that the function is one-to-one, meaning that each input corresponds to a unique output. If the function has multiple solutions, it can indicate that the function is not one-to-one and may have multiple outputs for the same input. Additionally, the number of solutions can also help determine if the function has a maximum or minimum value, or if there are any restrictions on the variables.

Back
Top