Solving a cubic equation with trigonometry

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2025

ความคิดเห็น • 67

  • @blackpenredpen
    @blackpenredpen  วันที่ผ่านมา +3

    So you want to prove the cubic formula: th-cam.com/video/ULsPhWmqhyc/w-d-xo.html

    • @bain8renn
      @bain8renn วันที่ผ่านมา

      proof for the quartic when?

    • @RandoIntrudus
      @RandoIntrudus วันที่ผ่านมา

      ​@@bain8renn
      I have a proof for it but it's too big to fit in my mind.

  • @MeysamIzadi-k4p
    @MeysamIzadi-k4p วันที่ผ่านมา +44

    When you've forgotten the formula but need the score and creat new formula

    • @canyoupoop
      @canyoupoop วันที่ผ่านมา

      Lmao i do this all the time. It wastes soo much of my exam time tho

  • @ianfowler9340
    @ianfowler9340 วันที่ผ่านมา +23

    Short answer: I did. I had a friend who was programming a massive computer to instruct a massive laser cutting machine to cut pieces of shoe leather before stiching them together into the final shoe. For the curved cuts, they approximated by cubic equations and hence needed their intersection points to know when to stop the cuts. Therefore they needed to equate the 2 cubic equations and then find the roots of the single cubic in order to know when to stop cutting. They were using was Newton's Method to find the roots. Problem was, in being able to find a reasonable x0 to start the iteration. As they had no picture, they really had no idea how to pick a resonable x0. Remember they were only dealing with small portions of each curved cut and as such needed to find only 1 specific real root. Newtion's Method was often generating the wrong real root or if x0 happened to be close to a stationary point then the computations went arwy.
    Enter the cubic equation. I wrote a C program which solved the cubic (using cases on d) but ran into a different intermittent problem - the same problem that Cardano encountered. That is, when d = b^2/4 + a^3/27 was negative ===> a is negative and sometimes produced a negative value for d. So when d < 0 I went over to the triple angle cosine formula, as you did, and my problem was solved. Now I probably could have used some features of the C programming language to do Complex Number Arithmetic but this seemed like an easy fix so I tried it. As arc_cosine in C returns the k = 0 value, just add 2pi/3 and 4pi/3 to the angle to get all solutions from 0 to 2pi. Then back substitute.
    Also remember, they were not interested in exact solutions but floating point values to pretty much any degree of accuracy desired. Anyway the whole thing worked like a charm. I'll leave out (1) the details of single, double and triple roots and how to sort out the different cases and (2) how to deal with d = 0, 0 in floating point arithmetic, but suffice it to say the whole process made my day. Who would have thought??? So cool.
    I guess I could also add that (1) d 0 yields 1 single root. And that a cubic can ONLY have (1) 3 real - 0 complex or (2) 1 real - 2 complex roots.

    • @blackpenredpen
      @blackpenredpen  วันที่ผ่านมา +1

      Wow, that is really cool. The more I learn about cubic equations, the more fascinated I get.

    • @assist4503
      @assist4503 วันที่ผ่านมา

      that's crazy stuff man , im really interested in it!! do u have it on github?

  • @MathFromAlphaToOmega
    @MathFromAlphaToOmega วันที่ผ่านมา +13

    Interestingly, the cosine substitution works precisely when the usual cubic formula "fails" (involving cube roots of complex numbers). If you write the numbers in the cubic formula as complex exponentials, then the cosines fall out of that.

    • @jimmyyue238
      @jimmyyue238 21 ชั่วโมงที่ผ่านมา +1

      In this situation, the cubic equation has 3 distinct real roots.

    • @kehrierg
      @kehrierg 4 ชั่วโมงที่ผ่านมา

      I have used this for programming a solver for cubic equations of state in chemical engineering thermodynamics

  • @20icosahedron20
    @20icosahedron20 วันที่ผ่านมา +5

    Really nice way to solve it!
    It's good to see different kinds of solutions.

  • @a-story-before-sleep
    @a-story-before-sleep วันที่ผ่านมา +4

    I love the t-shirt (الجبر it's an arabic word means Algebra)

  • @technologysense1306
    @technologysense1306 วันที่ผ่านมา +6

    Math with bprp is love❤❤

  • @Superman37891
    @Superman37891 2 ชั่วโมงที่ผ่านมา

    And a fun thing, since you know one of these is 4+0i, you can get an exact value of the inverse cosine of the expression based on choosing the root corresponding to x=4+0i

  • @ThreePointOneFou
    @ThreePointOneFou 12 ชั่วโมงที่ผ่านมา

    The issue with the cubic formula is that, besides giving complicated expressions that turn out to be equal to simple values, there are other methods that can sometimes find said values much faster. The rational root theorem (or simple inspection) would lead to the value x=2 in the original problem; the polynomial could then be factored into (x-2)(x²+2x-24), which can then be further factored into (x-2)(x-4)(x+6), yielding all three solutions.

  • @kpaasial
    @kpaasial วันที่ผ่านมา +5

    How does this guarantee that the expression inside the inverse cos is between -1 and 1?

    • @demenion3521
      @demenion3521 วันที่ผ่านมา +7

      you don't. if the argument is not a real number between -1 and 1, you will get a complex solution for the inverse cos and in at least one case for n, the cos will cancel all the irrationality and give a real result.

    • @ianfowler9340
      @ianfowler9340 วันที่ผ่านมา +4

      @kpaasial.
      That is a good question. I don't have the space here, but the arugument of the inverse cosine consists of a ratio involving b^2/4 and a^3/27 which are the 2 terms in the cubic discriminant d = b^2/4 + a^3/27. I know that's not much to go on but I think you can get to your -1 to 1 interval from there. I'll see what I can come up with.

    • @ianfowler9340
      @ianfowler9340 วันที่ผ่านมา +1

      @kpaasial.
      Got it. Take a look at the 2 cases for d = b^2/4 +a^3/27.
      i.e. when b^2/4 + a^3/27 0
      Now check the argument of the inverse cosine in each case. You will find it trapped bewteen -1 and +1.

  • @TomFarrell-p9z
    @TomFarrell-p9z วันที่ผ่านมา

    Very good! This solution method is also given in the "CRC Standard Math Tables", page 10 in the 27th edition. I've never used it, and can't, off hand, think of when it would be better than the method described on page 9. Perhaps in the days before computers, when it would be easier to find tables of cosines than tables of cube roots?

  • @DaneBrooke
    @DaneBrooke วันที่ผ่านมา

    You didn't say (but it matters) use this when there are three real roots. And the reason it is useful is that Cardano's Method is quite a mess unless your cubic has only one real root. Writing the (depressed) cubic in Vieta's Form x³ = 3Ax + 2B allows you to dispense with fractions in both Cardano and this form. Now you might wonder "what cubic is solved if you use the sines for this angle?". The cubic which is cognate to the one using cosines, namely x³ = 3Ax - 2√(A³ - B²). For your exemplar this works out to x³ = 3(28/3)x + 2(80/(3√3)) if I escaped blunder. But (error or not) the point is the trig substitutions give a lot back for your effort (getting to theta).

  • @moritzalshuth7239
    @moritzalshuth7239 วันที่ผ่านมา

    In case of three real roots, the standard cubic formula (with its two cube roots) gives exactly the same answer as the trig version. Problem is that the real numbers are, so to speak, "encrypted" in the corners of several overlapping triangles inside of the complex plane. The approach shown may therefore be interpreted as a shortcut for the direct access of those purely real numbers.

  •  14 ชั่วโมงที่ผ่านมา

    from Morocco thank you very much

  • @AbdulKader-r7e
    @AbdulKader-r7e 16 ชั่วโมงที่ผ่านมา

    simply amazing!!

  •  8 ชั่วโมงที่ผ่านมา +1

    Maybe add an "o" in trigonmetry. No, I shouldn't be like that. Nice video anyway.

    • @blackpenredpen
      @blackpenredpen  7 ชั่วโมงที่ผ่านมา +1

      Thanks tho. I just fixed the title.

  • @Qermaq
    @Qermaq วันที่ผ่านมา

    All these depressed cubics with 0 as the coefficient of x^2 have roots of the form -2m, m+ n and m - n. You get the expression x^3 - (3m^2 - n^2)x + 2m(m^2 - n^2).

  • @christianbernales1589
    @christianbernales1589 วันที่ผ่านมา

    Our 2nd sem will start next week. I already watched your 50 integrals video and currently watching the 100 integrals part 1.
    I wont watch this video for now, I just want to say, thank you very much!!!!

  • @stevenz933
    @stevenz933 วันที่ผ่านมา +1

    Could also use the Rational Root Theorem finding factors of p/q or 48 / 1. Roots -6, 4 and 2 work!

  • @sanjaysurya6840
    @sanjaysurya6840 20 ชั่วโมงที่ผ่านมา

    Beautiful problem 🚀👌

  • @technopanipuri3054
    @technopanipuri3054 วันที่ผ่านมา +3

    Finally it's blackpenredpen and not blackpixelredpixel

  • @Likhobhi
    @Likhobhi วันที่ผ่านมา +2

    please make a video on how to find sin(10)
    in your old video you did not tell us how to approximate the complex expression

    • @Ninja20704
      @Ninja20704 วันที่ผ่านมา +3

      There isn’t really any way to simplify the complex expressions from the original video.
      According to galois theory, if all three roots to a cubic equation are real but irrational, the roots cannot be expressed exactly using any finite radical expression with real numbers only.
      So you can only write the roots with complex numbers, or an infinite radical.
      If you want to actually calculate/approximate the root numerically, just use wolframalpha or any calculator that can do roots of complex numbers.

  • @Qraizer
    @Qraizer วันที่ผ่านมา

    I don't see here cube roots. Weather it mean that cube equations can be solved with compass and ruler? May be angle trisection too?😁

  • @enderslayer2484
    @enderslayer2484 วันที่ผ่านมา

    I have 2 questions about the Lambert W function; can you please answer them?
    1. Why is the Lambert W function only in base e? Why can’t we have, say, W base 3 or base 10 or base pi (or something like that?
    2. Logartithms have special properties like the product property (log(a*b) = log(a) + log(b)), expontential property (log(a^b) = b*log(a)), etc. Does the Lambert W function have similar properties?

    • @Taxua057
      @Taxua057 วันที่ผ่านมา

      Im not him, but I will try to answer it, perhaps there is more that I dont know
      1. I think this is for definition, the person who created it, had the objective of creating an inverse function, the inverse of x*e^x, but later was generalised to all the functions who had the same structure
      2. I dont think so

    • @bjornfeuerbacher5514
      @bjornfeuerbacher5514 วันที่ผ่านมา

      "Why is the Lambert W function only in base e? Why can’t we have, say, W base 3 or base 10 or base pi (or something like that?"
      Well, it's quite easy to solve exponential equations with other bases using W, so why bother using additional functions for other bases?
      "Does the Lambert W function have similar properties?"
      There are the quite complicated formula W(x) + W(y) = W(xy (1/W(x) + 1/W(y)), which holds for x, y > 0, and W(nx^n/W(x)^(n-1)) = nW(x) for n, x > 0.

  • @oreocookiedough
    @oreocookiedough วันที่ผ่านมา +1

    For real solutions, does this mean that "p" needs to be negative to work since there are two square roots with a negative sign and "p" in it?

    • @blackpenredpen
      @blackpenredpen  วันที่ผ่านมา

      It's still possible for have positive p and ending up with a real solution. Since any cubic equation f(x)=x^3+px+q has at least one real root due to the Intermediate Value Theorem.

    • @oreocookiedough
      @oreocookiedough วันที่ผ่านมา

      @@blackpenredpen Yes I understand that. I meant for this formula specifically shown in the video, does it only work with a negative "p" value? For example if the equation was something like f(x)=x^3+4x+5, then p = 4 and when you insert p=4 into the formula used, you will have sqrt(-4/3) and also sqrt(-3/4) which will have no real solutions.

  • @johns.8246
    @johns.8246 วันที่ผ่านมา

    What happens when the absolute value of that stuff inside cos^-1 expression is greater than 1? This formula only makes sense for specific values of p and q.

  • @stevefurrier9932
    @stevefurrier9932 วันที่ผ่านมา

    For a test woildnt you need to prove the thing for the 3 cos thingy too)?

  • @azaidan
    @azaidan 20 ชั่วโมงที่ผ่านมา

    I was trying to solve a cubic equation, then I got curious about the inverse of the middle part. Wolfram Alpha magically gave the sin-arcsin result. I tried to search for it to learn more but found nothing. Seems like I searched for the wrong thing all along. Should've just read the Wikipedia article for the solving method.

  • @holyshit922
    @holyshit922 22 ชั่วโมงที่ผ่านมา

    If we want to stay in real numbers this formula solves casus irreducibilis
    I use it when I would like to avoid complex while solving cubic equations

  • @SGM_
    @SGM_ วันที่ผ่านมา +1

    how about we take x = usin(thetha)???

    • @demenion3521
      @demenion3521 วันที่ผ่านมา +3

      you can do that too, then you just need to use the triple angle formula for sin: sin(3θ)=3sin(θ)-4sin³(θ)

  • @georgeaallan
    @georgeaallan 23 ชั่วโมงที่ผ่านมา

    I literally watched the cubic formula videos before this video was uploaded

  • @rob876
    @rob876 15 ชั่วโมงที่ผ่านมา

    What's the catch?

  • @scottleung9587
    @scottleung9587 วันที่ผ่านมา

    I got x={-6,2,4} for my solution set using RRT and long division.

  • @PK-dp5wo
    @PK-dp5wo วันที่ผ่านมา

    How about if p>0...

  • @LittleBlueGrape
    @LittleBlueGrape วันที่ผ่านมา +1

    Thats ALOT OF PENS!!! Money well spent sir

  • @chak-onchow6944
    @chak-onchow6944 วันที่ผ่านมา

    read Tranter's "Techniques of Mathematical Analysis", pp.132-133.

  • @ibnarabi32
    @ibnarabi32 วันที่ผ่านมา

    what a name in your t shirt !!!!

    • @imadmania
      @imadmania วันที่ผ่านมา

      algebra in arabic

  • @imadmania
    @imadmania วันที่ผ่านมา +1

    الجبر shirt ♥♥♥♥

  • @canaldahannah7811
    @canaldahannah7811 วันที่ผ่านมา

    Asiáticos são muito inteligentes mesmo.

  • @kenzou803
    @kenzou803 วันที่ผ่านมา

    Cheese

  • @TaiserBinJafor
    @TaiserBinJafor วันที่ผ่านมา

    I didn't even need to use Wikipedia.

  • @matei_woold_wewu
    @matei_woold_wewu วันที่ผ่านมา +1

    Do with the quartic formula or the quintic

    • @ggaattyy2
      @ggaattyy2 วันที่ผ่านมา +1

      there exists no quintic formula and this is impossible to do with the quartic

    • @matei_woold_wewu
      @matei_woold_wewu วันที่ผ่านมา

      @ggaattyy2 ok i forgot that the quintic formula doesnt exist

    • @blackpenredpen
      @blackpenredpen  วันที่ผ่านมา

      This is the best that I can offer: th-cam.com/video/L8W684pCHyc/w-d-xo.html

  • @TaiserBinJafor
    @TaiserBinJafor วันที่ผ่านมา

    I also discovered it earlier.

  • @LitDit
    @LitDit วันที่ผ่านมา +1

    I was watching your video "th-cam.com/video/-EDdRZcgLa4/w-d-xo.html - solving equations but they get increasingly awesome" and wondered if it would be possible to solve the equation x^6+x^5+x^4+x^3+x^2+x+1=0. I came up with this solution:
    x^3+x^2+x+1+1/x+1/x^2+1/x^3 (/x^3)
    (x+1/x)^3+(x+1/x)^2+(x+1/x)-3x-3/x-2+1=0
    (x+1/x)^3+(x+1/x)^2+(x+1/x)-3(x+1/x)-1=0
    (x+1/x)^3+(x+1/x)^2-2(x+1/x)-1=0. Then substitution (x+1/x)=y and
    y^3+y^2-2y-1=0 - cubic equation and I don't know what to do with it (maybe cubic formula). Maybe this solution is wrong, but if you find one, please put it on TH-cam.