I know how to find the inverse of $y = x^3$, but once you add/subtract another term, that is where I become lost.
I have used wolframalpha to get an answer.
I am lost upon how this was obtained.
I know how to find the inverse of $y = x^3$, but once you add/subtract another term, that is where I become lost.
I have used wolframalpha to get an answer.
I am lost upon how this was obtained.
This will give you somewhat of an idea on how to calculate the inverse of your cubic equation$ x^3-5x+3x+c$. We are not going to use $c$ but use an actual number say $10$ for $x^3-5x+3x+10$ for simplicity. Presented below will be a sequence of quick and dirty Sage program instructions that you can paste into the Sage Open Source Mathematics Software Sage online version if you care to. Sage can be Out of Service from time to time so if you can’t get on go back later. As stated in other answers it ends up being essentially the same as calculating the root of the cubic equation using the Cardano method. As you can find the inverse of a quadratic equation as follows
$y = ax^2 + bx + c$
$ax^2 + bx + (c - y) = 0$
$x = \frac{-b \pm \sqrt{b^2 - 4a(c-y)}}{2a}$
You can do the same with the cubic equation with $ax^3+bx^2+cx+(d-y) = 0$
but it involves more computation.
First evaluate the following Sage code after pasting into Sage ($a,b,c,d$ are the coefficients) Put the cubic polynomial in monic form also:
var('y,x') a=1 b=(-5) c=(3) d=(10-x) u=a*(y-(b/3*a))^3+b*(y-(b/3*a))^2+c*(y-(b/3*a))+d show(u)
Note: After pasting all the Sage code listed herein into Sage make sure that all the code is lined up on the left edge before evaluating otherwise it will not produce good results. Or, you could just type it.
The above formula $u$ is the following $a\left(y-\frac{b}{3a}\right)^3+ b\left(y-\frac{b}{3a}\right)^2+c\left(y-\frac{b}{3a}\right)+d$
which you can see on The Cubic Formula. The result should be the following:
$\frac{1}{27}(3y + 5)^3 - \frac{5}{9}(3y + 5)^2 + 3y + 15-x$
This will allow us to “depress” the cubic equation with the following command to be run sequentially after pasting the code into Sage.
var('y,x') expand(u)
The result should be the following: $y^3 - \frac{16}{3}y + \frac{155}{27}-x$
From the above "depressed" cubic equation you can plug in $p$ and $q$ as noted in the Sage code below. Since we want the inverse of the cubic we are subtracting an $x$ from $\frac{155}{27}$ as $q$. Paste the following into Sage and evaluate.
p=(-16/3) q=((155/27)-x) t=((-q/2)+((p/3)^3+(q/2)^2)^(1/2))^(1/3)+((-q/2)-((p/3)^3+(q/2)^2)^(1/2))^(1/3) z=t show(z)
$t$ in the above formula is the following which you can check on Cubic Function
$\sqrt[3]{-\frac{q}{2}+ \sqrt{\frac{q^2}{ 4}+\frac{p^3}{ 27}}} +\sqrt[3]{-\frac{q}{ 2}- \sqrt{\frac{q^2}{ 4}+\frac{p^3}{ 27}}}$
This will give you the following result. The only difference in the computation of the inverse and of the roots is the addition of the “-x” to $q$ in the above
$\sqrt[3]{\frac{1}{2}x - \sqrt{\frac{1}{2916}(27x - 155)^2 - \frac{4096}{729}} - \frac{155}{54}} + \sqrt[3]{\frac{1}{2}x + \sqrt{\frac{1}{2916}(27x - 155)^2 - \frac{4096}{729}} - \frac{155}{54}}$
All you have to do is add the fraction $-\frac{b}{3a}$ which in this case is $\frac{5}{3}$ to get the inverse function
$\sqrt[3]{\frac{1}{2}x - \sqrt{\frac{1}{2916}(27x - 155)^2 - \frac{4096}{729}} - \frac{155}{54}} + \sqrt[3]{\frac{1}{2}x + \sqrt{\frac{1}{2916}(27x - 155)^2 - \frac{4096}{729}} - \frac{155}{54}} + \frac{5}{3}$
This result does not look identical to the result from Wolfram Alpha but it does the same thing. As a verification you can take out the $show(z)$ command in the code and replace it with just $z$ then copy and paste the formula into Excel with the result of $x^3-5x^2+3x+10$ as the input value for $x$ in the inverse formula to see if it works. In other words does the output of $f(x)=x^3-5x^2+3x+10$ when plugged in as the input of the inverse function equals the input of $f(x)$. There could be situations where it will not compute correctly. For example in the case where $x=4$ we would expect the inverse function to produce the value $2$ in Excel. This does not occur because the inverse function produces the following with $4$ as the input.
$\sqrt[3]{-\frac{5}{6}i\sqrt{7}-\frac{47}{54}}+\sqrt[3]{\frac{5}{6}i\sqrt{7}-\frac{47}{54}}+\frac{5}{3}$
This will not compute to a real number in programs such as Excel since they cannot make computations in complex numbers. So in order to get $2$ as the output the combination of cube roots of the above cubic radicals that produces $2$ is the following:
$\left(\frac{1}{6}+\frac{i\sqrt{7}}{2}\right)+\left(\frac{1}{6}-\frac{i\sqrt{7}}{2}\right)+\frac{5}{3}=2$
The complex numbers in parentheses are one of the cube roots of the above cubic radical expressions. For examples of how to find cube roots of these types of nested radicals see 16331.
This is trivial! All you need to do is find the formula for roots of cubic! First thing you can do is substitute $x=t+\frac{5}{3}$ to remove the second degree term to get $y = t^3-\frac{13}{3}t-\frac{115}{27}$.
For history and proofs, check http://en.wikipedia.org/wiki/Cubic_function#General_formula_of_roots