Find a cubic function that has horizontal tangents at two given points

In summary, to find a cubic function with horizontal tangents at points (-2,6) and (2,0), you can start by taking the first and second derivatives of the given function. Then, setting the gradient/slope equal to zero at the given points, you will have two equations for the three unknowns (a, b, and c). Using the fact that the given points are also on the curve, you can create two more equations for the four unknowns (a, b, c, and d). This will give you a system of four linear equations that you can solve to find the values of a, b, c, and d.
  • #1
illjazz
59
0

Homework Statement


Find a cubic function ax^3 + bx^2 + cx + d whose graph has horizontal tangents at the points (-2, 6) and (2. 0).

Homework Equations


No idea.

The Attempt at a Solution


I realize that the trick in here somewhere is to work "backwards". I completed a problem earlier that asked me to find the points at which a given function had horizontal tangents. I tried to go back to that and construct a path to the solution for this problem by going in reverse but did not get anywhere.

So far I've taken the first and second derivatives of the given cubic function to arrive at

y' = 3ax^2 + 2bx + c
y'' = 6ax + 2b

Since the points are given, I figure perhaps I need to set something equal to a point-slope equation.. something like this, basically:

y - 6 = (x - (-2))

for the first point, for example. I'm confused as to how exactly to proceed and whether how I thought about this so far is the right way of thinking about it. Some pointers would be appreciated. Thanks!
 
Physics news on Phys.org
  • #2
Horizontal tangent means that the gradient/slope at that point is zero. Use that idea.
 
  • #3
rock.freak667 said:
Horizontal tangent means that the gradient/slope at that point is zero. Use that idea.

I failed to mention that but I'm aware of this. I've trained myself to instantly translate my book's mention of "horizontal tangents" into the real meaning, which is slope = 0. My real problem here is that I don't know just where to begin..

As I've mentioned, I assume the point-slope form may make an appearance in the path to the solution, and I'm sure derivatives are involved as well.

I also think I will have an equation at some point that I will want to set equal to zero and then solve for some variable that I can then plug in somewhere else, like the original equation. What I'm having trouble with specifically is seeing how to use the given point coordinates in a way that will help me construct the sought after polynomial.

Thanks for trying to help!
 
  • #4
Let y=ax^3 + bx^2 + cx + d

your gradient function is [itex]\frac{dy}{dx}[/itex]

[tex]\frac{dy}{dx}=3ax^2+2bx+c[/tex]

At the points (2,0) and (-2,6), [itex]\frac{dy}{dx}=0[/itex]. i.e. when x=2 dy/dx=0,etc. You now have two equations with 3 unknowns. Can't solve yet.

But (2,0) & (-2,6) also are points on the curve. What does this mean now? (If you don't know,how would you test that these points are actually on the curve?)
 
  • #5
Hmmm.. so (2, 0) and (-2, 6) are on the graph of the cubic function given. How would I test to see if those points are actually on the curve?

I suppose by plugging those coordinates in for x and y, respectively. I'm not sure if that would work though.. I mean I can plug in, but I will still have the four unknowns a, b, c and d.

Also, as you said, at the two given points I am told that y' = 0, which suggests that I could solve for

[tex]3ax^2+2bx+c=0[/tex]

but what do I solve for? I'm missing something here :/
 
  • #6
illjazz said:
Hmmm.. so (2, 0) and (-2, 6) are on the graph of the cubic function given. How would I test to see if those points are actually on the curve?

I suppose by plugging those coordinates in for x and y, respectively. I'm not sure if that would work though.. I mean I can plug in, but I will still have the four unknowns a, b, c and d.

Also, as you said, at the two given points I am told that y' = 0, which suggests that I could solve for

[tex]3ax^2+2bx+c=0[/tex]
The horizontal tangents are at x= 2 and x= -2, remember. This last equation is only true for x= 2 and x= -2. That gives you two equations for a, b, and c. Setting (x, y)= (2,0) and (x,y)= (-2, 6) in the original equation gives you two more equations for a, b, c, and d. Now you have four linear equations in four unknowns. What more could you want?

but what do I solve for? I'm missing something here :/
 
  • #7
HallsofIvy said:
The horizontal tangents are at x= 2 and x= -2, remember. This last equation is only true for x= 2 and x= -2. That gives you two equations for a, b, and c. Setting (x, y)= (2,0) and (x,y)= (-2, 6) in the original equation gives you two more equations for a, b, c, and d. Now you have four linear equations in four unknowns. What more could you want?
Ok, that helps! A little. The question is what to solve FOR?

So with this realization that y' = 0 iff x = 2 or -2, I now have the following equation:

y' = 3a(2)^2 + 2b(2) + c = 0
12a + 4b + c = 0
12a = -4b -c
a = -(4b + c)/12

Here I solved for a, but how do I know I'm supposed to solve for a? I might as well have solved for b or c.

I suppose if I knew what to solve for, I could use the result of this first calculation above and plug that into y' = 0 where x = -2 to find what b is, say.

Then use the points for the original equation and solve

y = ax^3 + bx^2 + cx + d with (x, y) = (-2, 6), so
6 = a(-2)^3 + b(-2)^2 + c(-x) + d
...

to get c. Finally, I could solve y one last time, now knowing c, with the second point, (x, y) = (2, 0) to get d.

Do I have the right idea here? I think what's confusing is whether order matters here and just what variable to pick at first to solve for. I think I have roughly the right idea, but I'm not sure what I outlined above is quite right.
 
  • #8
illjazz said:
Ok, that helps! A little. The question is what to solve FOR?

So with this realization that y' = 0 iff x = 2 or -2, I now have the following equation:

y' = 3a(2)^2 + 2b(2) + c = 0
12a + 4b + c = 0
12a = -4b -c
a = -(4b + c)/12

Here I solved for a, but how do I know I'm supposed to solve for a? I might as well have solved for b or c.

For x=2 you'll get one equation and for x=-2, you'd get another different equation.



You seem to know how to solve the equations, but find the 4 equations that you need first, and then solve. Don't just find one and begin solving.
 
  • #9
rock.freak667 said:
For x=2 you'll get one equation and for x=-2, you'd get another different equation.



You seem to know how to solve the equations, but find the 4 equations that you need first, and then solve. Don't just find one and begin solving.
I should have mentioned that I did do that, actually. I remember thinking to write that but didn't for some reason.

I had two equations for y' = 0, of course. One with x = 2 and the other with 2 = -2.

The first one gave a = -(4b + c)/12 and the second one a = (4b - c)/12.

This is where I'm even more confused than before.. I suppose that's why I failed to mention it at first because I wanted to take this one step at a time..

So now I have TWO equations, both containing 3 unknowns. In either, I can either solve for a, b or c. Does it matter which variable I pick? I have a hard time imagining how it WOULDN'T matter. Also, if I solve the second equation for a, I then have two values of a.. which, well, doesn't help. Which one to pick?

Also, assume I choose to take the a I get from y' = 0 with x = 2. How do I know that's the correct a to use in the following equations, and not the one from y' = 0 with x = -2? (Hmmm.. I guess that's the same question I just asked in the previous paragraph..).
 
  • #10
What were the 4 equations that you got?

In your 4 equations, pick one, and make one variable the subject and substitute it into the other 3. You'll now have 3 equations. Pick another equation and substitute it into the other 2. Then you can solve easily again.
 
  • #11
1. 3a2^2 + 2b2 + c = 0
12a + 4b + c = 0

2. 3a(-2)^2 + 2b(-2) + c = 0
12a - 4b + c = 0

3. 6 = a(-2)^3 + b(-2)^2 + c(-2) + d
6 = -8a + 4b + 2c - d

4. 0 = a(2)^3 + b(2)^2 + c(2) + d
0 = 8a + 4b + 2c + d

Those :/

So now, just pick anyone of those, and then pick any variable to solve for.. and then plug the result into any of the remaining three, until done? That seems so random it seems like magic, or even a miracle, that you could consistently get the same end result if you went through all the various possibilities.
 
  • #12
Well if you keep eliminating one variable from each equation, eventually you'll get one equation with one unknown.

If you know how to solve systems of linear equations using row reduction, you can easily solve it using matrices.

But since I don't think you know how to do that, you need to just keep elminating the variables.
 
  • #13
rock.freak667 said:
Well if you keep eliminating one variable from each equation, eventually you'll get one equation with one unknown.

If you know how to solve systems of linear equations using row reduction, you can easily solve it using matrices.

But since I don't think you know how to do that, you need to just keep eliminating the variables.
Thanks for the reminder.. I actually know how to RREF a matrix.

I made one that looked like this:

[12, 4, 1, 0; 12, -4, 1, 0; -8, 4, 2, 6; 8, 4, 2, 6; 8, 4, 2, 0]

based on the equations I mentioned earlier, and where the fourth row is the 4th row of the "augmented matrix".. so after the third row, imagine that vertical line inside the matrix. I assumed that the rows corresponded to the coefficients.. so rows 1 through 4 are coefficients a through d. Unless I made mistakes (which is possible since I haven't done matrix alg in a while).. what I ended up getting is nothing like the solution in the back of the book.

I got (-1/12)x^3 + 1/6x - 4/3

and according to the book, it's supposed to be y = (3/16)x^3 - (9/4)x + 3

:(

Edit:
I tried to figure out how to enter an augmented matrix on my NSpire calculator but can't get it to work for the life of me.. there's plenty of ways to enter a plain nxn matrix.. but I don't know how to tell the calculator that the last column is supposed to be the augmented column :/.
 
  • #14
Whoops.. typing that up I just realized that I constructed a 3x4 matrix with one augmented column.. but in doing so, I completely ignored the d variable in the last two equations! Looks like I need a 4x4 matrix with an augmented column..
 
  • #15
If you're looking for a matrix row-reduction solver or even a system of linear equations solver, you can find them online here:
http://wims.unice.fr/wims/en_home.html

along with a lot of other online calculators such as Fourier/Laplace (inverse) transform.
 
  • #16
Nevermind.. I found out how to do it on my calculator with a function called simult() or simultstep()..

I did

[12, 4, 1, 0;
12, -4, 1, 0;
-8, 4, 2, 1;
8, 4, 2, 1]

and the augmented column was [0, 0, 6, 0].

I got back (-8/3, 0, 9/2, -6).. looks nothing like the solution, unless again I'm doing something wrong.
 
  • #17
Defennder said:
If you're looking for a matrix row-reduction solver or even a system of linear equations solver, you can find them online here:
http://wims.unice.fr/wims/en_home.html

along with a lot of other online calculators such as Fourier/Laplace (inverse) transform.
Awesome, thank you! I'll check that out :)

BTW.. I'm beginning to think that the problem here is that my first two and my last two equations are "not compatible". After all, the last two are degree-3 polynomials and the first two are degree-2. Doesn't the degree of the polynomial dictate the position of terms/their ordering in a linear system of equations?

Damn.. I should have stuck to just solving and substituting one by one..
 
  • #18
illjazz said:
3. 6 = a(-2)^3 + b(-2)^2 + c(-2) + d
6 = -8a + 4b + 2c - d

This equation should be 6=-8a+4b-2c+d
 
  • #19
rock.freak667 said:
This equation should be 6=-8a+4b-2c+d
My bad.. but look at my matrix examples.. for the d's I used 1's and did not write -1 in the third column.. so while I made a mistake in typing that up, I did not make it later in the calculations on the calculator.

Are we sure that the four equations are correct? What's wrong here?
 
  • #20
Well that is how to do the question.

Do you happen to know what the answer should be?
 
  • #22
If you find the inverse of the matrix:


[tex]\left(
\begin{array}{cccc}
12 & 4 & 1 & 0\\
12 & -4 &1 & 0\\
-8 & 4 & -2 & 1\\
8 & 4 &2 &1\
\end{array}
\right)[/tex]


and multiply that by the matrix

[tex]\left(
\begin{array}{c}
0\\
0\\
6\\
0\
\end{array}
\right)[/tex]

You will get the desired answer.
 
  • #23
Damn.. why the inverse? If I had to solve using the good old substitution method, I would not have run into inverses that I can think of, so how come inverse is needed here?
 
  • #24
illjazz said:
Damn.. why the inverse? If I had to solve using the good old substitution method, I would not have run into inverses that I can think of, so how come inverse is needed here?

If you solve using a matrix method, the equation will be in the form

AX=B

Where

[tex]A=\left(
\begin{array}{cccc}
12 & 4 & 1 & 0\\
12 & -4 &1 & 0\\
-8 & 4 & -2 & 1\\
8 & 4 &2 &1\
\end{array}
\right)
[tex]


and

[tex]B=\left(
\begin{array}{c}
0\\
0\\
6\\
0\
\end{array}
\right)
[tex]


And Multiplying both sides by [itex]A^{-1}[/itex]

[tex]A^{-1}A=A^{-1}B[/tex]

[tex]IX=A^{-1}B[/tex]

[tex]X=A^{-1}B[/tex]



Using the substitution method is longer and you might make an error somewhere in the substitutions, so be careful if doing in that way.
 
  • #25
I don't quite get the inverse part. I used

[tex]
A=\left(
\begin{array}{cccc}
12 & 4 & 1 & 0\\
12 & -4 &1 & 0\\
-8 & 4 & -2 & 1\\
8 & 4 &2 &1\
\end{array}
\right)
[/tex]

and

[tex]B=\left(
\begin{array}{c}
0\\
0\\
6\\
0\
\end{array}
\right)
[/tex]

and on my calculator, plugged in

simult(A, B) and got

[tex]B=\left(
\begin{array}{c}
3/16\\
0\\
-9/4\\
3\
\end{array}
\right)
[/tex]

So as far as I could tell, no inverse was needed. But the problem is solved! Thanks again :)
 
  • #26
I can only guess that simult(A,B) solved it appropriately by actually calculating [itex]A^{-1}[/itex]. But if you had to show all working, you'd need to find the inverse and then multiply.
 
  • #27
If AX= B then X= A-1B. There certainly are other ways of solving such a problem, like Gaussian reduction, but they are equivalent to finding the inverse and multiplying it by B. (One good way to find the inverse of a matrix is to use Gaussian reduction.)
 
  • #28
Honestly, using matrices for these equations doesn't make sense. I have solved whole question in a few minutes bare handed. But not by simple substitution, just combining them. For example adding two of them:

12a - 4b + c = 0
12a + 4b + c = 0
----------------
24a + 0 + 2c = 0

and I know that c=-12a. That simplifies things.

OK, I am lying. I had a pencil.
 
  • #29
can anyone tell me a function which is continuous at 10 points?
 
  • #30
illjazz said:
I don't quite get the inverse part. I used

[tex]
A=\left(
\begin{array}{cccc}
12 & 4 & 1 & 0\\
12 & -4 &1 & 0\\
-8 & 4 & -2 & 1\\
8 & 4 &2 &1\
\end{array}
\right)
[/tex]

and

[tex]B=\left(
\begin{array}{c}
0\\
0\\
6\\
0\
\end{array}
\right)
[/tex]

and on my calculator, plugged in

simult(A, B) and got

[tex]B=\left(
\begin{array}{c}
3/16\\
0\\
-9/4\\
3\
\end{array}
\right)
[/tex]

So as far as I could tell, no inverse was needed. But the problem is solved! Thanks again :)

Just a TI-84+ / TI 83+ Reference for doing Matrices:


[tex]
A=\left(
\begin{array}{cccc}
12 & 4 & 1 & 0\\
12 & -4 &1 & 0\\
-8 & 4 & -2 & 1\\
8 & 4 &2 &1\
\end{array}
\right)
[/tex]

Step 1.) Input the above 4x4 Matrix into Column A.

[tex]C=\left(
\begin{array}{c}
0\\
0\\
6\\
0\
\end{array}
\right)
[/tex]

Step 2.) Input the augmented 4x1 Matrix above into Column C.

Go to your home screen (2nd-->QUIT)

Type in: [A]-1[C] (2nd-->Matrix-->Enter...then press Matrix (note the inverse key x-1) At this point. You should see [A]-1 in your home screen.

Then type in: (2nd-->Matrix-->3) to multiply by [C].

The answer will be the solutions.
 
  • #31
As long as I have been working problems like this, and teaching Linear Algebra (one of my favorite courses) I still consider writing a system of equations as a matrix and row reducing to be more trouble than it is worth!

A general cubic is [itex]ax^3+ bx^2+ cx+ d[/itex]. The fact that the point (2, 0) is on graph means that 8a+ 4b+ 2c+ d= 0. The fact that (-2, 6) is on the graph means that -8a+ 4b- 2c+ d= 6. The fact that there is a horizontal tangent at x= 2 means that 12a+ 4b+ c= 0. The fact that there is a horizontal tangent at x= -2 means that 12a- 4b+ c= 0. We need to solve those 4 equations for a, b, c, and d.

Adding 8a+ 4b+ 2c+ d= 0 and -8a+ 4b-2c+ d= 6 gives 8b+ 2d= 6 or d= 3- 4b. Adding 12a+ 4b+ c= 0 and 12a- 4b+ c= 0 gives 24a+ 2c= 0 or c= -12a. Putting those into the first and third equations gives 8a+ 4b+ 2(-12a)+ 3-4b= -16a+ 3= 0 or a= 3/16 and 12a+ 4b+ (-12a)= 4b= 0. Then c= -12a= -36/16= -9/4 and d= 3.
 

What is a cubic function?

A cubic function is a polynomial function of degree 3, meaning it has an equation of the form f(x) = ax^3 + bx^2 + cx + d, where a, b, c, and d are constants.

What does it mean for a function to have horizontal tangents?

A horizontal tangent is a line that is parallel to the x-axis and touches the graph of the function at a specific point. This means that the slope of the function at that point is equal to 0.

How do you find a cubic function with horizontal tangents at two given points?

To find a cubic function with horizontal tangents at two given points, you will need to use the slope-intercept form of a line, y = mx + b, where m is the slope and b is the y-intercept. The slope of the function at the given points must be 0, so you can set the slope equal to 0 and solve for the y-intercept. Then, you can use the given points to find the values of a, b, and c in the cubic function f(x) = ax^3 + bx^2 + cx + d.

Can a cubic function have more than two horizontal tangents?

Yes, a cubic function can have multiple horizontal tangents. This occurs when the function has a point of inflection, where the concavity changes from positive to negative or vice versa. At this point, the slope of the function is equal to 0, resulting in a horizontal tangent.

What is the significance of finding a cubic function with horizontal tangents at two given points?

Finding a cubic function with horizontal tangents at two given points allows us to determine the behavior of the function at those points. It also helps us understand the overall shape and characteristics of the function, such as its concavity and whether it has points of inflection.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
999
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
13
Views
4K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
466
  • Calculus and Beyond Homework Help
Replies
4
Views
100
  • Calculus and Beyond Homework Help
Replies
4
Views
807
  • Calculus and Beyond Homework Help
Replies
2
Views
595
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
Back
Top